From bf053efe6fc44e92b8fb859453f3f19f74a15472 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期四, 10 七月 2025 08:56:43 +0800
Subject: [PATCH] 修改

---
 src/views/build/conpanyFunctionConsult/qualityObjectives/table/components/tableDeptDialog.vue |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/views/build/conpanyFunctionConsult/qualityObjectives/table/components/tableDeptDialog.vue b/src/views/build/conpanyFunctionConsult/qualityObjectives/table/components/tableDeptDialog.vue
index 62e740f..3e55bd9 100644
--- a/src/views/build/conpanyFunctionConsult/qualityObjectives/table/components/tableDeptDialog.vue
+++ b/src/views/build/conpanyFunctionConsult/qualityObjectives/table/components/tableDeptDialog.vue
@@ -352,6 +352,9 @@
 
 }
 const getDeptList = async () => {
+  if(state.isAdmin && (state.form.companyId == 0 || state.form.companyId == null)){
+    return
+  }
   const param = {
     pageNum: 1,
     pageSize: 999,
@@ -485,6 +488,7 @@
 
 }
 const selectValueCom = (val) => {
+  state.form.departId = null
   state.form.qualityId = null
   state.qualityList = []
   state.form.qualityTargets = []
@@ -499,6 +503,7 @@
       state.form.companyId = item.id
     }
   })
+  getDeptList()
   getQualityList()
   getPeopleList()
 }

--
Gitblit v1.9.2