Commit d75090ea by 胡悦

提交

1 parent b5885373
......@@ -567,14 +567,11 @@ export default {
type: 'error',
message: res.message
})
this.handleCancel()
} else if (res.code == 0) {
this.$message({
type: 'success',
message: '操作成功!'
})
// this.handleCancel()
this.$router.push('/customerTransform/index')
} else {
this.$message({
type: 'error',
......@@ -582,6 +579,7 @@ export default {
})
}
this.addLoading = false
this.$router.push('/customerTransform/index')
})
}
})
......
......@@ -446,13 +446,18 @@ export default {
}
this.addLoading = true
this.$apis.customerTransform.insert(params).then(res => {
if (res.code == 0) {
if (res.code == '-1') {
this.$message({
type: 'error',
message: res.message
})
// this.$router.push('/customerTransform/index')
} else if (res.code == 0) {
this.$message({
type: 'success',
message: '操作成功!'
})
// this.handleCancel()
this.$router.push('/customerTransform/index')
// this.$router.push('/customerTransform/index')
} else {
this.$message({
type: 'error',
......@@ -460,6 +465,7 @@ export default {
})
}
this.addLoading = false
this.$router.push('/customerTransform/index')
})
})
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!