From af18fd6fb9e1a500be5369550b737ccce12a7d23 Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期二, 18 四月 2023 14:29:22 +0800 Subject: [PATCH] 修改表单校验 --- src/views/analyse/assessApply/components/reportDialog.vue | 21 ++++++++++++++++++++- 1 files changed, 20 insertions(+), 1 deletions(-) diff --git a/src/views/analyse/assessApply/components/reportDialog.vue b/src/views/analyse/assessApply/components/reportDialog.vue index 95b484d..edb56e2 100644 --- a/src/views/analyse/assessApply/components/reportDialog.vue +++ b/src/views/analyse/assessApply/components/reportDialog.vue @@ -172,6 +172,21 @@ <tr> <el-input type="textarea" :autosize="{ minRows: 3}" :disabled="reportDialogState.disabled" v-model="reportDialogState.reportForm.description" placeholder="评定依据(必填)" /> </tr> + <tr v-if="reportDialogState.reportForm.person?.length>0" class="m-color b-font" style="text-align: center">审批内容</tr> + <template v-if="reportDialogState.reportForm.person?.length>0" v-for="item in reportDialogState.reportForm.person"> + <tr> + <td class="w-25 m-color">{{item.approveStage}}</td> + <td class="w-25">{{item.approvePerson}}</td> + <td class="w-25 m-color">审批结果</td> + <td class="w-25" :class="item.approveStatus==3?'redTit':''">{{item.approveStatus==1?'未审批':item.approveStatus==2?'通过':'未通过'}}</td> + </tr> + <tr> + <td class="w-25 m-color autoheight">审批意见</td> + <td class="w-75 autoheight l-border"> + {{ item.approveDesc }} + </td> + </tr> + </template> </table> </el-form> <template #footer> @@ -307,7 +322,7 @@ if(res.data.data&&res.data.data.length==0){ ElMessage({ type: 'warning', - message: '暂时无法获取实验信息,可能与用户身份有关' + message: '暂时无法获取实验信息,可能评估流程未完成,用户无法查看' }); }else{ for(let i in reportDialogState.reportForm) { @@ -514,6 +529,10 @@ width: 75%; } +&.redTit{ + color: red; +} + .ant-input { height: 100%; border: none; -- Gitblit v1.9.2