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 | 21 +++++++++++++++------ 1 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/views/signProject/components/record.vue b/src/views/signProject/components/record.vue index fcfe30f..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,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) } -- Gitblit v1.9.2