Commit 7e70d126 authored by 姬鋆屾's avatar 姬鋆屾

fixed:修改后台用户管理分配部门取消后导致页面崩溃的问题

parent 4318dcc5
......@@ -150,7 +150,7 @@ export default {
this.tableData.loading = false;
},
renderContent: function(h, { node, data, store }) {
renderContent: function (h, { node, data, store }) {
return (
<span>
<i style="font-size:16px;color:#409EFF" class={data.icon}></i>
......@@ -221,32 +221,32 @@ export default {
} catch (error) {
this.$message.error(error.message);
}
this.tableData.loading = false;
},
async distributeDept(row) {
console.log("分配部门");
this.tableData.loading = true;
this.userDeptDialog.data = row;
this.$nextTick(() => {
this.$get("/dept/getListByParentId", {
parentId: 0,
}).then(({ data }) => {
this.data = data.result;
this.node = {};
});
})
.then(({ data }) => {
this.data = data.result;
console.log(this.data);
this.node = {};
})
.catch((error) => {
this.$message.error(error.message);
});
this.userDeptDialog.open = true;
}).catch((error) => {
this.$message.error(error.message);
});
this.tableData.loading = false;
},
updatePassword(row) {
console.log("修改密码");
try {
const dataCopy = Object.assign({}, row);
this.userPasswordDialog.data = dataCopy;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment