答卷导出

This commit is contained in:
caoqianming 2021-03-21 12:56:23 +08:00
parent 27123fb3ec
commit 52edb6a399
3 changed files with 3 additions and 1 deletions

View File

@ -233,12 +233,14 @@ export default {
const loading = this.$loading({text: '正在生成word...',});
exportwTest(scope.row.id).then(res=>{
loading.close()
window.open(res.data.path, "_blank");
}).catch(e=>{loading.close()})
},
handleExport2(scope) {
const loading = this.$loading({text: '正在重新生成word...',});
exportwTest(scope.row.id, {anew:true}).then(res=>{
loading.close()
window.open(res.data.path, "_blank");
}).catch(e=>{loading.close()})
},
exportTest() {

View File

@ -443,7 +443,7 @@ class ExamTestViewSet(ModelViewSet):
path = exportw_test(obj, True)
else:
path = exportw_test(obj, False)
# return res
return Response({'path': path})
class PaperViewSet(ModelViewSet):
"""