Commit 9da3a95d authored by 18224442217's avatar 18224442217

no message

parent 24e2ba2c
......@@ -171,16 +171,37 @@
}
},
setCensus(){
uni.showModal({
title: '提示',
content: '此操作将生成统计表的1-8题统计分析,是否继续?',
success: function(res) {
if (res.confirm) {
//1、调用后台生成接口
uni.showLoading({
title:'正在生成中...'
})
setExamStatAnalysis({'CourseId':props.CourseId}).then(r=>{
setExamStatAnalysis({
'CourseId':props.CourseId,
'AnalysisType':1
}).then(r=>{
setTimeout(()=>{
uni.hideLoading()
},3000)
ctx.emit('change')
})
} else if (res.cancel) {
setExamStatAnalysis({
'CourseId':props.CourseId,
'AnalysisType':2
}).then(r=>{
setTimeout(()=>{
uni.hideLoading()
},3000)
ctx.emit('change')
})
}
}
});
//2、重新调用列表接口请求
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment