填报增加loading
This commit is contained in:
@@ -74,6 +74,7 @@ export default {
|
||||
},
|
||||
handleReject() {
|
||||
if (this.check()) {
|
||||
uni.showLoading({title: "提交中..."})
|
||||
const {$route: {query: {taskDetailId}}, detail: fields} = this
|
||||
this.$http.post("/app/appassessmentscorev2task/examine", {
|
||||
taskDetailId, pass: false, fields
|
||||
@@ -83,11 +84,12 @@ export default {
|
||||
setTimeout(() => uni.reLaunch({url: "./AppRecoScore"}), 1500)
|
||||
|
||||
}
|
||||
})
|
||||
}).finally(uni.hideLoading)
|
||||
}
|
||||
},
|
||||
handlePass() {
|
||||
if (this.check()) {
|
||||
uni.showLoading({title: "提交中..."})
|
||||
const {$route: {query: {taskDetailId}}, detail: fields} = this
|
||||
this.$http.post("/app/appassessmentscorev2task/examine", {
|
||||
taskDetailId, pass: true, fields
|
||||
@@ -96,7 +98,7 @@ export default {
|
||||
this.$u.toast("提交成功!")
|
||||
setTimeout(() => uni.reLaunch({url: "./AppRecoScore"}), 1500)
|
||||
}
|
||||
})
|
||||
}).finally(uni.hideLoading)
|
||||
}
|
||||
},
|
||||
check() {
|
||||
|
||||
@@ -99,6 +99,7 @@ export default {
|
||||
} else return false
|
||||
})) {
|
||||
const {$route: {query: {taskDetailId, taskId}}, detail: fields} = this
|
||||
uni.showLoading({title: "提交中..."})
|
||||
this.$http.post("/app/appassessmentscorev2task/commit", {
|
||||
taskDetailId, taskId, fields
|
||||
}).then(res => {
|
||||
@@ -106,7 +107,7 @@ export default {
|
||||
this.$u.toast("提交成功!")
|
||||
setTimeout(() => uni.navigateBack(), 1500)
|
||||
}
|
||||
})
|
||||
}).finally(uni.hideLoading)
|
||||
}
|
||||
},
|
||||
gotoApprove() {
|
||||
|
||||
Reference in New Issue
Block a user