Commit 9da3a95d authored by 18224442217's avatar 18224442217

no message

parent 24e2ba2c
...@@ -171,16 +171,37 @@ ...@@ -171,16 +171,37 @@
} }
}, },
setCensus(){ setCensus(){
//1、调用后台生成接口 uni.showModal({
uni.showLoading({ title: '提示',
title:'正在生成中...' content: '此操作将生成统计表的1-8题统计分析,是否继续?',
}) success: function(res) {
setExamStatAnalysis({'CourseId':props.CourseId}).then(r=>{ if (res.confirm) {
setTimeout(()=>{ //1、调用后台生成接口
uni.hideLoading() uni.showLoading({
},3000) title:'正在生成中...'
ctx.emit('change') })
}) 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、重新调用列表接口请求 //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