Browse Source

fix(plan-work): 根据当前用户部门加载可选部门

Zimo 1 week ago
parent
commit
9b2da2c747
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/pms/plan-work/fill.vue

+ 1 - 1
src/views/pms/plan-work/fill.vue

@@ -133,7 +133,7 @@ const loadDeptOptions = async () => {
 
   deptOptionsLoading.value = true
   try {
-    const data = (await DeptApi.specifiedSimpleDepts(TOP_DEPT_ID)) as DeptOption[]
+    const data = (await DeptApi.specifiedSimpleDepts(deptId)) as DeptOption[]
     flatDeptOptions.value = data.map((dept) => ({
       ...dept,
       type: String(dept.type || ''),