xiangpei
2025-02-19 48090e2049aa1a3440da5426d912c1777d91e0bc
部门无上级部门时,修改的回显问题
1个文件已修改
7 ■■■■■ 已修改文件
src/views/system/dept/index.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/dept/index.vue
@@ -303,6 +303,13 @@
            const noResultsOptions = { deptId: this.form.parentId, deptName: this.form.parentName, children: [] };
            this.deptOptions.push(noResultsOptions);
          }
          if (row.parentId === 0) {
            this.deptOptions.push({
              deptId: 0,
              deptName: '无',
              children: []
            });
          }
        });
      });
    },