From 2d3b8b9c63120819462fdc10c041eef6782a7d3f Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期二, 09 六月 2026 10:03:55 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev_新疆_大罗素马铃薯new' into dev_新疆_大罗素马铃薯new

---
 src/views/collaborativeApproval/notificationManagement/meetPublish/index.vue |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/src/views/collaborativeApproval/notificationManagement/meetPublish/index.vue b/src/views/collaborativeApproval/notificationManagement/meetPublish/index.vue
index dace531..e2e7566 100644
--- a/src/views/collaborativeApproval/notificationManagement/meetPublish/index.vue
+++ b/src/views/collaborativeApproval/notificationManagement/meetPublish/index.vue
@@ -182,12 +182,12 @@
 </template>
 
 <script setup>
-import {ref, reactive, onMounted} from 'vue'
+import {ref, reactive, onMounted, onActivated} from 'vue'
 import {ElMessage, ElMessageBox} from 'element-plus'
 import Pagination from '@/components/Pagination/index.vue'
 import {getRoomEnum, getMeetingPublish,saveMeetingApplication} from '@/api/collaborativeApproval/meeting.js'
 import dayjs from "dayjs";
-import {staffOnJobListPage} from "@/api/personnelManagement/staffOnJob.js";
+import {userListNoPageByTenantId} from "@/api/system/user.js";
 
 // 鏁版嵁鍒楄〃鍔犺浇鐘舵��
 const loading = ref(false)
@@ -233,13 +233,13 @@
     let room = roomEnum.value.find(room => it.roomId === room.id)
     it.location = `${room.name}(${room.location})`
     let staffs = JSON.parse(it.participants)
-    it.staffCount = staffs.size
+    it.staffCount = staffs.length
     it.status = it.publishStatus
     it.meetingTime = `${it.meetingDate} ${dayjs(it.startTime).format('HH:mm:ss')} ~ ${dayjs(it.endTime).format('HH:mm:ss')}`
-    it.participants = staffList.value.filter(staff => staffs.some(id=>id === staff.id)).map(staff => {
+    it.participants = staffList.value.filter(staff => staffs.some(id => id == staff.userId)).map(staff => {
       return {
-        id: staff.id,
-        name: `${staff.staffName}${staff.postName ? ` (${staff.postName})` : ''}`
+        id: staff.userId,
+        name: `${staff.nickName || staff.userName}${staff.dept?.deptName ? ` (${staff.dept.deptName})` : ''}`
       }
     })
 
@@ -340,11 +340,13 @@
 
 // 椤甸潰鍔犺浇鏃惰幏鍙栨暟鎹�
 onMounted(async () => {
-  const [resp1, resp2]= await Promise.all([getRoomEnum(), staffOnJobListPage({current: -1, size: -1, staffState: 1})])
+  const [resp1, resp2]= await Promise.all([getRoomEnum(), userListNoPageByTenantId()])
   roomEnum.value = resp1.data
-  staffList.value = resp2.data.records
+  staffList.value = resp2.data || []
+})
 
-  await getList()
+onActivated(() => {
+  getList()
 })
 </script>
 

--
Gitblit v1.9.3