弹框提示文案
This commit is contained in:
@@ -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(()=> {
|
||||||
|
|||||||
Reference in New Issue
Block a user