From 199338bd4fe73d295f18b032f8ce65e8e95896b2 Mon Sep 17 00:00:00 2001 From: zhouwx <1175765986@qq.com> Date: 星期五, 16 八月 2024 11:02:23 +0800 Subject: [PATCH] bug修改 --- src/views/safetyReview/projectManage/index.vue | 18 +++++++++++------- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/views/safetyReview/projectManage/index.vue b/src/views/safetyReview/projectManage/index.vue index 275ebeb..248e897 100644 --- a/src/views/safetyReview/projectManage/index.vue +++ b/src/views/safetyReview/projectManage/index.vue @@ -128,8 +128,8 @@ <el-table-column fixed="right" label="操作" align="center" class-name="small-padding fixed-width" width="180"> <template #default="scope"> <el-button link type="primary" @click="toProcess('view',scope.row)">查看</el-button> - <el-button link type="primary" @click="toProcess('edit',scope.row)">编辑</el-button> - <el-button link type="danger" @click="del(scope.row)">删除</el-button> + <el-button link type="primary" v-if="scope.row.reportProgress !== 14" @click="toProcess('edit',scope.row)">编辑</el-button> + <el-button link type="danger" v-if="(isAgency && scope.row.reportProgress !== 14) || (!isAgency && scope.row.reportProgress !== 14)" @click="del(scope.row)">删除</el-button> </template> </el-table-column> </el-table> @@ -287,7 +287,7 @@ const tableHeight = ref(0); const dataList = ref([]); const total = ref(0); - +const isAgency = ref(false); onMounted(() => { Cookies.remove('projectId') Cookies.remove('end') @@ -302,6 +302,8 @@ window.onresize = () => { tableHeight.value = window.innerHeight - tableRef.value.$el.offsetTop - 170; }; + const userInfo = JSON.parse(Cookies.get('userInfo')) + isAgency.value = userInfo.identity === 1; }); const chooseType = ref(''); @@ -323,12 +325,14 @@ filingDate: item.filingDate ? conversionDays(item.filingDate,item.createTime) : conversionDays('',item.createTime), contractMoney: item.contract ? item.contract.contractMoney : '', actualContractMoney: item.contract ? item.contract.actualContractMoney : '', - activeConfirm: item.personRecognition ? item.personRecognition.recognitionCnt + '/' + item.personRecognition.personCnt: '', - missingMaterialCnt: 3-item.materialCnt + activeConfirm: item.personRecognition ? item.personRecognition.recognitionCnt + '/' + item.personRecognition.personCnt: '', + missingMaterialCnt: 3-item.materialCnt, + activeConfirmOut: item.personRecognition ? "\'" + item.personRecognition.recognitionCnt + '/' + item.personRecognition.personCnt: '', } }) total.value = res.data.total loading.value = false; + console.log('11',dataList.value) }else{ ElMessage.warning(res.message) } @@ -491,8 +495,8 @@ '项目实施天数': 'filingDate', '预估金额(万元)': 'contractMoney', '归档金额(万元)': 'actualContractMoney', - '缺失要件': 'materialCnt', - '归档确认': 'activeConfirm' + '缺失要件': 'missingMaterialCnt', + '归档确认': 'activeConfirmOut' }); const goMenu = (toPath,val) => { console.log("val",val) -- Gitblit v1.9.2