export
This commit is contained in:
parent
98b7c5a9d5
commit
875069ac9f
|
@ -10,7 +10,6 @@ Page({
|
|||
questioncat: null,
|
||||
tms: [],
|
||||
ydtms: [],
|
||||
ydtms_old:[],
|
||||
ctms: [],
|
||||
tm_index: 0,
|
||||
answerP: false,
|
||||
|
@ -43,7 +42,6 @@ Page({
|
|||
var value = wx.getStorageSync('cat' + that.data.questioncat.toString())
|
||||
if (value) {
|
||||
that.data.ydtms = value
|
||||
that.data.ydtms_old = value
|
||||
}
|
||||
} catch (e) {}
|
||||
try {
|
||||
|
@ -64,7 +62,7 @@ Page({
|
|||
var that = this
|
||||
var query = {
|
||||
questioncat: that.data.questioncat,
|
||||
ydtms: that.data.ydtms_old
|
||||
ydtms: wx.getStorageSync('cat' + that.data.questioncat.toString())
|
||||
}
|
||||
api.request('/question/question/exercise/?limit=10&page='+that.data.page, 'POST', query).then(res => {
|
||||
that.data.tms = that.data.tms.concat(res.data.results)
|
||||
|
|
|
@ -228,6 +228,11 @@ class ConsumerViewSet(ModelViewSet):
|
|||
m = m + 1
|
||||
return Response(status=status.HTTP_200_OK)
|
||||
|
||||
@action(methods=['get'], detail=False,
|
||||
url_path='export', url_name='export_consumer')
|
||||
def export(self, request):
|
||||
queryset = self.filter_queryset(self.queryset)
|
||||
print(queryset)
|
||||
|
||||
class ConsumerMPLoginView(APIView):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue