From 915aa9658845f54442ccf2eeb0cc60e97323e808 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期三, 26 三月 2025 10:35:39 +0800
Subject: [PATCH] bug修改

---
 src/views/signProject/components/record.vue |   22 ++++++++++++++++------
 1 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/src/views/signProject/components/record.vue b/src/views/signProject/components/record.vue
index fcfe30f..4c016ad 100644
--- a/src/views/signProject/components/record.vue
+++ b/src/views/signProject/components/record.vue
@@ -13,10 +13,15 @@
           <div>创建人:{{state.creatContent}}</div>
         </el-timeline-item>
         <el-timeline-item style="font-size: 16px" :color="state.firstPeopleState == 1 ? '#0bbd87' : '#B4B4B4' " size="large">
-          <div>
-            最初签署人:{{state.firstPeopleContent}}
-            <span v-if="state.firstPeopleState == 1" style="color: #1ab394;font-size: 14px;">[已签]</span>
-            <span v-else style="color: #6d737b;font-size: 14px;">[未签]</span>
+          <div style="display: flex">
+            最初签署人:
+            <div style="display: flex;flex-direction: column;line-height: 25px">
+              <div v-for="item in firstArr">
+                {{item.firstPeopleContent}}
+                <span v-if="item.firstPeopleState == 1" style="color: #1ab394;font-size: 14px;">[已签]</span>
+                <span v-else style="color: #6d737b;font-size: 14px;">[未签]</span>
+              </div>
+            </div>
 
           </div>
         </el-timeline-item>
@@ -71,6 +76,7 @@
 })
 
 
+const firstArr = ref([])
 const openDialog = async (value) => {
   console.log('va',value)
   state.form = JSON.parse(JSON.stringify(value))
@@ -79,8 +85,11 @@
   state.activities.forEach(item => {
     if(item.sort == 1){
       state.creatContent = item.userName + '('+ item.deptName + ')'
-      state.firstPeopleContent =  item.signUserName + '('+ item.signDeptName + ')'
-      state.firstPeopleState = item.signStatus
+      const obj = {
+        firstPeopleContent: item.signUserName + '('+ item.signDeptName + ')',
+        firstPeopleState: item.signStatus
+      }
+      firstArr.value.push(obj)
     }else {
       newArr.push(item)
     }
@@ -101,6 +110,7 @@
     name: '',
     remark: '',
   }
+  firstArr.value = []
 }
 
 defineExpose({

--
Gitblit v1.9.2