From 70e78853b25954c916f3a31aa868faea869fce34 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: Tue, 10 Feb 2026 11:08:18 +0800
Subject: [PATCH] 修改

---
 src/views/build/conpanyFunctionConsult/orgStructure/departManage/components/departDialog.vue |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/src/views/build/conpanyFunctionConsult/orgStructure/departManage/components/departDialog.vue b/src/views/build/conpanyFunctionConsult/orgStructure/departManage/components/departDialog.vue
index 2891c48..7164758 100644
--- a/src/views/build/conpanyFunctionConsult/orgStructure/departManage/components/departDialog.vue
+++ b/src/views/build/conpanyFunctionConsult/orgStructure/departManage/components/departDialog.vue
@@ -20,6 +20,9 @@
             </el-option>
           </el-select>
         </el-form-item>
+        <el-form-item label="部门名称:"  prop="deptName">
+          <el-input v-model.trim="state.form.deptName" :disabled="state.title =='查看'" placeholder="部门名称"></el-input>
+        </el-form-item>
         <el-row>
           <el-col :span="12" v-if="state.title == '新增'">
             <el-form-item label="上级部门" prop="parentId">
@@ -54,9 +57,7 @@
           </el-form-item>
           </el-col>
         </el-row>
-        <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>
@@ -179,7 +180,7 @@
   }
   await getUserList(companyId)
   await getDepartList(companyId)
-  await getSysClauseList()
+  await getSysClauseList(companyId)
   state.title = type === 'add' ? '新增' : type ==='edit' ? '编辑' : '查看';
   if(type === 'edit' || type === 'view') {
     state.departList = state.departList.filter(i=>i.deptId !== value.deptId)
@@ -215,6 +216,7 @@
 const getDeptList = async ()=>{
   await getDepartList(state.form.companyId)
   await getUserList(state.form.companyId)
+  await getSysClauseList(state.form.companyId)
 }
 
 const getDepartList = async (companyId)=> {
@@ -229,8 +231,8 @@
   }
 };
 
-const getSysClauseList = async ()=> {
-  const res = await getSysClause()
+const getSysClauseList = async (companyId)=> {
+  const res = await getSysClause({companyId: companyId})
   if(res.code == 200){
     state.sysClauseList = res.data.map(i=>{
       return {

--
Gitblit v1.9.2