|
@@ -799,21 +799,23 @@
|
|
|
message: datas.data.data,
|
|
|
type: 'success'
|
|
|
})
|
|
|
- let params = {
|
|
|
- id: that.instanceChild.bizKey,
|
|
|
- stage: '已驳回'
|
|
|
- }
|
|
|
- apideptAdState(params).then(values =>{
|
|
|
- if (values.success) {
|
|
|
- that.dialogVisible = false
|
|
|
- that.$emit('approveMsg', datas.data.isOk)
|
|
|
- } else {
|
|
|
- that.$message({
|
|
|
- message: values.message,
|
|
|
- type: 'error'
|
|
|
- });
|
|
|
+ if (taskType === 'reject') {
|
|
|
+ let params = {
|
|
|
+ id: that.instanceChild.bizKey,
|
|
|
+ stage: '已驳回'
|
|
|
}
|
|
|
- })
|
|
|
+ apideptAdState(params).then(values =>{
|
|
|
+ if (values.success) {
|
|
|
+ that.dialogVisible = false
|
|
|
+ that.$emit('approveMsg', datas.data.isOk)
|
|
|
+ } else {
|
|
|
+ that.$message({
|
|
|
+ message: values.message,
|
|
|
+ type: 'error'
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
|
|
|
} else {
|
|
|
that.$message({
|