From 915aa9658845f54442ccf2eeb0cc60e97323e808 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: Wed, 26 Mar 2025 10:35:39 +0800
Subject: [PATCH] bug修改
---
src/views/signProject/components/record.vue | 51 ++++++++++++++++-----------------------------------
1 files changed, 16 insertions(+), 35 deletions(-)
diff --git a/src/views/signProject/components/record.vue b/src/views/signProject/components/record.vue
index d15ccf5..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,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;
}
@@ -130,6 +110,7 @@
name: '',
remark: '',
}
+ firstArr.value = []
}
defineExpose({
--
Gitblit v1.9.2