|
|
@ -257,27 +257,32 @@ |
|
|
|
if (this.form.sid) { |
|
|
|
userUpdatauserUpdata(this.form).then(res => { |
|
|
|
if (res.code == '200') { |
|
|
|
this.reset() |
|
|
|
this.$message({ |
|
|
|
message: res.msg, |
|
|
|
type: 'success' |
|
|
|
}) |
|
|
|
let arr = [] |
|
|
|
this.$refs.Tree.setCheckedKeys(arr); |
|
|
|
this.$emit('status', false) |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
userAdd(this.form).then(res => { |
|
|
|
if (res.code == '200') { |
|
|
|
this.reset() |
|
|
|
this.$message({ |
|
|
|
message: res.msg, |
|
|
|
type: 'success' |
|
|
|
}) |
|
|
|
let arr = [] |
|
|
|
this.$refs.Tree.setCheckedKeys(arr); |
|
|
|
this.$emit('status', false) |
|
|
|
} |
|
|
|
}) |
|
|
|
let arr = [] |
|
|
|
this.$refs.Tree.setCheckedKeys(arr); |
|
|
|
|
|
|
|
} |
|
|
|
this.reset() |
|
|
|
|
|
|
|
}, |
|
|
|
reset() { |
|
|
|
this.accountType = false |
|
|
|