|
|
@@ -115,7 +115,7 @@ export default { |
|
|
|
} |
|
|
|
this.dataForm.menuIdList = [...this.$refs.menuListTree.getHalfCheckedKeys(), ...this.$refs.menuListTree.getCheckedKeys()] |
|
|
|
this.dataForm.deptIdList = this.$refs.deptListTree.getCheckedKeys() |
|
|
|
this.$http[!this.dataForm.id ? 'post' : 'put']('/sys/role', this.dataForm) |
|
|
|
this.$http[!this.dataForm.id ? 'post' : 'put'](this.$http.adornUrl('/sys/role'), this.dataForm) |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|