Explorar el Código

fix: 部门等级更新至10级

qindao hace 1 año
padre
commit
72f889d680
Se han modificado 1 ficheros con 1 adiciones y 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) => {