xiangpei
2025-02-20 fc678c5088b084311f7c11cb2793dbe62049ca9e
src/views/system/dept/index.vue
@@ -56,7 +56,7 @@
      :default-expand-all="isExpandAll"
      :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
    >
      <el-table-column prop="deptName" label="部门名称" width="260"></el-table-column>
      <el-table-column prop="deptName" label="部门名称" width="500"></el-table-column>
      <el-table-column prop="orderNum" label="排序" width="200"></el-table-column>
      <el-table-column prop="status" label="状态" width="100">
        <template slot-scope="scope">
@@ -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: []
            });
          }
        });
      });
    },