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

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

parent 4318dcc5
...@@ -150,7 +150,7 @@ export default { ...@@ -150,7 +150,7 @@ export default {
this.tableData.loading = false; this.tableData.loading = false;
}, },
renderContent: function(h, { node, data, store }) { renderContent: function (h, { node, data, store }) {
return ( return (
<span> <span>
<i style="font-size:16px;color:#409EFF" class={data.icon}></i> <i style="font-size:16px;color:#409EFF" class={data.icon}></i>
...@@ -221,32 +221,32 @@ export default { ...@@ -221,32 +221,32 @@ export default {
} catch (error) { } catch (error) {
this.$message.error(error.message); this.$message.error(error.message);
} }
this.tableData.loading = false; this.tableData.loading = false;
}, },
async distributeDept(row) { async distributeDept(row) {
console.log("分配部门");
this.tableData.loading = true; this.tableData.loading = true;
this.userDeptDialog.data = row; this.userDeptDialog.data = row;
this.$nextTick(() => { this.$nextTick(() => {
this.$get("/dept/getListByParentId", { this.$get("/dept/getListByParentId", {
parentId: 0, parentId: 0,
}).then(({ data }) => { })
this.data = data.result; .then(({ data }) => {
this.node = {}; this.data = data.result;
}); console.log(this.data);
this.node = {};
})
.catch((error) => {
this.$message.error(error.message);
});
this.userDeptDialog.open = true; this.userDeptDialog.open = true;
}).catch((error) => {
this.$message.error(error.message);
}); });
this.tableData.loading = false; this.tableData.loading = false;
}, },
updatePassword(row) { updatePassword(row) {
console.log("修改密码");
try { try {
const dataCopy = Object.assign({}, row); const dataCopy = Object.assign({}, row);
this.userPasswordDialog.data = dataCopy; 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