export
This commit is contained in:
parent
98b7c5a9d5
commit
875069ac9f
|
@ -10,7 +10,6 @@ Page({
|
||||||
questioncat: null,
|
questioncat: null,
|
||||||
tms: [],
|
tms: [],
|
||||||
ydtms: [],
|
ydtms: [],
|
||||||
ydtms_old:[],
|
|
||||||
ctms: [],
|
ctms: [],
|
||||||
tm_index: 0,
|
tm_index: 0,
|
||||||
answerP: false,
|
answerP: false,
|
||||||
|
@ -43,7 +42,6 @@ Page({
|
||||||
var value = wx.getStorageSync('cat' + that.data.questioncat.toString())
|
var value = wx.getStorageSync('cat' + that.data.questioncat.toString())
|
||||||
if (value) {
|
if (value) {
|
||||||
that.data.ydtms = value
|
that.data.ydtms = value
|
||||||
that.data.ydtms_old = value
|
|
||||||
}
|
}
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
try {
|
try {
|
||||||
|
@ -64,7 +62,7 @@ Page({
|
||||||
var that = this
|
var that = this
|
||||||
var query = {
|
var query = {
|
||||||
questioncat: that.data.questioncat,
|
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 => {
|
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)
|
that.data.tms = that.data.tms.concat(res.data.results)
|
||||||
|
|
|
@ -228,6 +228,11 @@ class ConsumerViewSet(ModelViewSet):
|
||||||
m = m + 1
|
m = m + 1
|
||||||
return Response(status=status.HTTP_200_OK)
|
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):
|
class ConsumerMPLoginView(APIView):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue