Browse Source

fix: 部门等级更新至10级

qindao 1 year ago
parent
commit
72f889d680
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/system/user/user.vue

+ 1 - 1
src/views/system/user/user.vue

@@ -293,7 +293,7 @@
   onMounted(async () => {
     loadPageData();
     getAllDepartments().then((res) => {
-      departmentList.value = calculateTreeData(res, { level: 3, valueKey: 'id', labelKey: 'deptName' }, 1);
+      departmentList.value = calculateTreeData(res, { level: 10, valueKey: 'id', labelKey: 'deptName' }, 1);
     });
     const res = (await getRoles()) || [];
     roleData.value = res.map((item: any) => {