答卷导出
This commit is contained in:
parent
27123fb3ec
commit
52edb6a399
|
@ -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() {
|
||||
|
|
|
@ -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):
|
||||
"""
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue