答卷导出
This commit is contained in:
parent
27123fb3ec
commit
52edb6a399
|
@ -233,12 +233,14 @@ export default {
|
||||||
const loading = this.$loading({text: '正在生成word...',});
|
const loading = this.$loading({text: '正在生成word...',});
|
||||||
exportwTest(scope.row.id).then(res=>{
|
exportwTest(scope.row.id).then(res=>{
|
||||||
loading.close()
|
loading.close()
|
||||||
|
window.open(res.data.path, "_blank");
|
||||||
}).catch(e=>{loading.close()})
|
}).catch(e=>{loading.close()})
|
||||||
},
|
},
|
||||||
handleExport2(scope) {
|
handleExport2(scope) {
|
||||||
const loading = this.$loading({text: '正在重新生成word...',});
|
const loading = this.$loading({text: '正在重新生成word...',});
|
||||||
exportwTest(scope.row.id, {anew:true}).then(res=>{
|
exportwTest(scope.row.id, {anew:true}).then(res=>{
|
||||||
loading.close()
|
loading.close()
|
||||||
|
window.open(res.data.path, "_blank");
|
||||||
}).catch(e=>{loading.close()})
|
}).catch(e=>{loading.close()})
|
||||||
},
|
},
|
||||||
exportTest() {
|
exportTest() {
|
||||||
|
|
|
@ -443,7 +443,7 @@ class ExamTestViewSet(ModelViewSet):
|
||||||
path = exportw_test(obj, True)
|
path = exportw_test(obj, True)
|
||||||
else:
|
else:
|
||||||
path = exportw_test(obj, False)
|
path = exportw_test(obj, False)
|
||||||
# return res
|
return Response({'path': path})
|
||||||
|
|
||||||
class PaperViewSet(ModelViewSet):
|
class PaperViewSet(ModelViewSet):
|
||||||
"""
|
"""
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue