From 592c1750b148874737cdfba4b22b6229f9805fe6 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期三, 02 七月 2025 14:55:27 +0800
Subject: [PATCH] 新增

---
 src/views/build/conpanyFunctionConsult/orgStructure/departManage/index.vue |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/views/build/conpanyFunctionConsult/orgStructure/departManage/index.vue b/src/views/build/conpanyFunctionConsult/orgStructure/departManage/index.vue
index 83ec96e..f66da1c 100644
--- a/src/views/build/conpanyFunctionConsult/orgStructure/departManage/index.vue
+++ b/src/views/build/conpanyFunctionConsult/orgStructure/departManage/index.vue
@@ -18,7 +18,7 @@
         <el-form-item >
           <el-button v-if="isAdmin" type="primary" @click="getList">查询</el-button>
           <el-button v-if="isAdmin" type="primary" plain @click="reset">重置</el-button>
-          <el-button type="primary" @click="initDistribute">生成智能分配表</el-button>
+          <el-button type="primary" @click="initDistribute">生成职能分配表</el-button>
         </el-form-item>
       </el-form>
     </div>
@@ -219,6 +219,7 @@
         tableData.tableData = sortResponsibilities(res.data.sysDeptResponsibilitys.map(i=>{
           return {
             ...i,
+            leader: i.leader || '',
             evidenceMaterials: i.evidenceMaterials || '',
             managementDocuments: i.managementDocuments || '',
             technicalDocuments: i.technicalDocuments || '',
@@ -226,15 +227,16 @@
           }
         }))
       }else{
-        tableData.tableData = [...data.firstFive,...res.data.sysDeptResponsibilitys.map(i=>{
+        tableData.tableData = [...data.firstFive,...res.data.sysDeptResponsibilitys,...data.lastTwo].map(i=>{
           return {
             ...i,
+            leader: i.leader || '',
             evidenceMaterials: i.evidenceMaterials || '',
             managementDocuments: i.managementDocuments || '',
             technicalDocuments: i.technicalDocuments || '',
             existingRecords: i.existingRecords || '',
           }
-        }),...data.lastTwo]
+        })
       }
       return tableData
     }else{

--
Gitblit v1.9.2