zhouwx
2025-03-21 fd3ef41e30c4d262ceb5616075daacf61c40d20d
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)
    }