From d5bd0e88c1eec6bb2947d2bfa57348d89edbc1c3 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期五, 18 七月 2025 16:20:45 +0800
Subject: [PATCH] 修改

---
 src/views/build/conpanyFunctionConsult/orgStructure/departManage/components/departDialog.vue |   20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/src/views/build/conpanyFunctionConsult/orgStructure/departManage/components/departDialog.vue b/src/views/build/conpanyFunctionConsult/orgStructure/departManage/components/departDialog.vue
index e6be06a..622b664 100644
--- a/src/views/build/conpanyFunctionConsult/orgStructure/departManage/components/departDialog.vue
+++ b/src/views/build/conpanyFunctionConsult/orgStructure/departManage/components/departDialog.vue
@@ -56,6 +56,12 @@
         <el-form-item label="部门名称:"  prop="deptName">
           <el-input v-model.trim="state.form.deptName" :disabled="state.title =='查看'" placeholder="部门名称"></el-input>
         </el-form-item>
+        <el-form-item label="是否是管理层:"  prop="deptType" v-if="state.title !== '修改密码'">
+          <el-radio-group v-model="state.form.deptType"  :disabled="disabled">
+            <el-radio :label="1">是</el-radio>
+            <el-radio :label="0">否</el-radio>
+          </el-radio-group>
+        </el-form-item>
         <el-form-item label="负责人:" prop="leaderUserId">
           <el-select clearable v-model="state.form.leaderUserId" :disabled="state.title =='查看'" filterable placeholder="负责人" style="width: 100%">
             <el-option
@@ -140,7 +146,8 @@
     companyId: null,
     responsType: 1,
     childDeptIds: [],
-    orderNum: 0
+    orderNum: 0,
+    deptType: 0
   },
   isAdmin: false,
   companyList: [],
@@ -168,7 +175,7 @@
   if(isAdmin){
     state.companyList = companyList
   }
-  await getUserList()
+  await getUserList(companyId)
   await getDepartList(companyId)
   await getSysClauseList()
   state.title = type === 'add' ? '新增' : type ==='edit' ? '编辑' : '查看';
@@ -182,6 +189,7 @@
     state.oldClauseList = value.caluseVO1List
     state.form.childDeptIds = value.sysDeptManageVoList?.map(i=>i.subDeptId)
     state.form.responsType = Number(value.responsType)
+    state.form.deptType = Number(value.deptType)
   }else{
     if(value.deptId && value.companyId){
       state.form.parentId = value.deptId
@@ -193,8 +201,8 @@
   dialogVisible.value = true
 }
 
-const getUserList = async ()=> {
-  const res = await listUser({pageIndex: 1,pageSize: 999})
+const getUserList = async (companyId)=> {
+  const res = await listUser({pageIndex: 1,pageSize: 999, companyId: companyId})
   if(res.code == 200){
     state.userList = res.data.list?res.data.list:[]
   }else{
@@ -204,6 +212,7 @@
 
 const getDeptList = async ()=>{
   await getDepartList(state.form.companyId)
+  await getUserList(state.form.companyId)
 }
 
 const getDepartList = async (companyId)=> {
@@ -270,7 +279,8 @@
     companyId: null,
     responsType: 1,
     childDeptIds: [],
-    orderNum: 0
+    orderNum: 0,
+    deptType: 0
   }
 
   superRef.value.clearValidate();

--
Gitblit v1.9.2