fix 修复 编辑顶部部门控制台报错问题
This commit is contained in:
parent
223e73ac41
commit
1d88c54c08
@ -238,7 +238,7 @@ function handleUpdate(row) {
|
|||||||
listDeptExcludeChild(row.deptId).then(response => {
|
listDeptExcludeChild(row.deptId).then(response => {
|
||||||
deptOptions.value = proxy.handleTree(response.data, "deptId");
|
deptOptions.value = proxy.handleTree(response.data, "deptId");
|
||||||
if (deptOptions.value.length == 0) {
|
if (deptOptions.value.length == 0) {
|
||||||
const noResultsOptions = { deptId: proxy.form.parentId, deptName: proxy.form.parentName, children: [] };
|
const noResultsOptions = { deptId: form.value.parentId, deptName: form.value.parentName, children: [] };
|
||||||
deptOptions.value.push(noResultsOptions);
|
deptOptions.value.push(noResultsOptions);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user