Commit d75090ea by 胡悦

提交

1 parent b5885373
...@@ -567,14 +567,11 @@ export default { ...@@ -567,14 +567,11 @@ export default {
type: 'error', type: 'error',
message: res.message message: res.message
}) })
this.handleCancel()
} else if (res.code == 0) { } else if (res.code == 0) {
this.$message({ this.$message({
type: 'success', type: 'success',
message: '操作成功!' message: '操作成功!'
}) })
// this.handleCancel()
this.$router.push('/customerTransform/index')
} else { } else {
this.$message({ this.$message({
type: 'error', type: 'error',
...@@ -582,6 +579,7 @@ export default { ...@@ -582,6 +579,7 @@ export default {
}) })
} }
this.addLoading = false this.addLoading = false
this.$router.push('/customerTransform/index')
}) })
} }
}) })
......
...@@ -446,13 +446,18 @@ export default { ...@@ -446,13 +446,18 @@ export default {
} }
this.addLoading = true this.addLoading = true
this.$apis.customerTransform.insert(params).then(res => { 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({ this.$message({
type: 'success', type: 'success',
message: '操作成功!' message: '操作成功!'
}) })
// this.handleCancel() // this.$router.push('/customerTransform/index')
this.$router.push('/customerTransform/index')
} else { } else {
this.$message({ this.$message({
type: 'error', type: 'error',
...@@ -460,6 +465,7 @@ export default { ...@@ -460,6 +465,7 @@ export default {
}) })
} }
this.addLoading = false 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!