From bcc1ce55aa699450905c68f957198428ed251c48 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期三, 12 六月 2024 17:17:35 +0800
Subject: [PATCH] 项目补录

---
 src/views/safetyReview/projectManage/components/signConfirm.vue |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/src/views/safetyReview/projectManage/components/signConfirm.vue b/src/views/safetyReview/projectManage/components/signConfirm.vue
index 9668e5d..d0b7d93 100644
--- a/src/views/safetyReview/projectManage/components/signConfirm.vue
+++ b/src/views/safetyReview/projectManage/components/signConfirm.vue
@@ -5,14 +5,11 @@
       <el-table-column label="人员姓名" prop="planPerson.person.name" align="center"/>
       <el-table-column label="联系电话" prop="planPerson.person.phone" align="center"/>
       <el-table-column label="职位" prop="planPerson.person.post" align="center"/>
-      <el-table-column label="项目担任角色" prop="username" align="center">
+      <el-table-column label="项目担任角色" prop="username" align="center" width="180">
         <template #default="scope">
-          <span>{{ scope.row.planPerson.playRole === 1?'项目负责人': scope.row.planPerson.playRole === 2?
-              '项目组成员':scope.row.planPerson.playRole === 3?
-                  '过程控制负责人':scope.row.planPerson.playRole === 4?
-                      '机构评价负责人':scope.row.planPerson.playRole === 5?
-                          '技术负责人':scope.row.planPerson.playRole === 6?'内部审核员':''}}
-          </span>
+          <div v-for="(item,index) in scope.row.playRolesName" :key="index">
+            <span>{{item.roleName}}</span><span v-if="index!==scope.row.playRolesName.length-1">,</span>
+          </div>
         </template>
       </el-table-column>
       <el-table-column label="评价师等级" prop="planPerson.person.level" align="center"/>
@@ -134,6 +131,12 @@
         facePic: item.faceRecord.facePath ? [import.meta.env.VITE_APP_BASE_API + '/' + item.faceRecord.facePath ] : [],
         signPic: item.signPath ? [import.meta.env.VITE_APP_BASE_API + '/' + item.signPath] : [],
         commitPic: item.insurancePath ? [import.meta.env.VITE_APP_BASE_API + '/' + item.insurancePath] : [],
+        playRolesName: item.planPerson.playRoles.map(role => {
+          const roleName =  role === 1?'项目负责人':role === 2? '项目组成员':role === 3? '过程控制负责人':role === 4? '机构评价负责人':role === 5? '技术负责人':role === 6?'内部审核员':''
+          return{
+            roleName
+          }
+        })
       }
     })
    console.log("res", state.tableData)

--
Gitblit v1.9.2