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