弹框提示文案

This commit is contained in:
shijingjing
2022-08-09 16:07:26 +08:00
parent 6ddbc2eafa
commit ed8da3617d

View File

@@ -146,14 +146,14 @@ export default {
// 拒绝 // 拒绝
refuseBtn() { refuseBtn() {
this.pass = 0 this.pass = 0
this.$confirm('确定要审核拒绝该数据').then(() => { this.$confirm('确审核拒绝该任务').then(() => {
this.examine() this.examine()
}) })
}, },
// 通过 // 通过
passBtn() { passBtn() {
this.pass = 1 this.pass = 1
this.$confirm('确审核通过该数据').then(() => { this.$confirm('确审核通过该任务').then(() => {
this.examine() this.examine()
}) })
}, },
@@ -166,7 +166,11 @@ export default {
} }
}).then(res => { }).then(res => {
if(res?.code == 0) { if(res?.code == 0) {
this.$u.toast('审批成功') if(this.pass == 0) {
this.$u.toast('任务已拒绝')
} else if(this.pass == 1) {
this.$u.toast('任务审核通过')
}
this.getDetail() this.getDetail()
} }
}).catch(()=> { }).catch(()=> {