Explorar o código

fix: 部门等级更新至10级

qindao hai 1 ano
pai
achega
72f889d680
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) => {