From fd3ef41e30c4d262ceb5616075daacf61c40d20d Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期五, 21 三月 2025 17:25:12 +0800
Subject: [PATCH] bug修改

---
 src/views/signProject/components/record.vue |   50 +++++++++++++++-----------------------------------
 1 files changed, 15 insertions(+), 35 deletions(-)

diff --git a/src/views/signProject/components/record.vue b/src/views/signProject/components/record.vue
index d15ccf5..dd5b927 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">
+              <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,43 +85,17 @@
   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)
     }
   })
   newArr.sort((a,b) => a.sort - b.sort)
   state.activities = newArr
-
-  // state.activities = [
-    // {
-    //   content: '创建人:张三(综合办)',
-    //   timestamp: '2018-04-03 20:46',
-    //   size: 'large',
-    //   state: 1,
-    // },
-    // {
-    //   content: '最初签署人:李四',
-    //   timestamp: '2018-04-03 20:46',
-    //   size: 'large',
-    //   state: 1,
-    // },
-    // {
-    //   title: '由  XXX 部门 XX 流转',
-    //   content: 'XXXX',
-    //   timestamp: '2018-04-03 20:46',
-    //   size: 'large',
-    //   state: 1,
-    // },
-    // {
-    //   title: '由  XXX 部门 XX 流转',
-    //   content: 'XXXX',
-    //   timestamp: '2018-04-03 20:46',
-    //   size: 'large',
-    //   state: 1,
-    // },
-  // ]
   dialogVisible.value = true;
 }
 

--
Gitblit v1.9.2