From 9ada813d51a0a7da7a22143af4b548a44472f0d6 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期二, 25 二月 2025 03:03:08 +0800 Subject: [PATCH] 项目中心分页优化 --- src/views/projectEngineering/projectLibrary/projectDetails.vue | 41 ++++++++++++++++++++++------------------- 1 files changed, 22 insertions(+), 19 deletions(-) diff --git a/src/views/projectEngineering/projectLibrary/projectDetails.vue b/src/views/projectEngineering/projectLibrary/projectDetails.vue index 8ae8fd4..0cec26a 100644 --- a/src/views/projectEngineering/projectLibrary/projectDetails.vue +++ b/src/views/projectEngineering/projectLibrary/projectDetails.vue @@ -30,7 +30,7 @@ :isShow="isShow" class="full-width custom-height" /> - <div v-hasRole="['auditor']" v-if="audit" class="button-container"> + <div v-if="audit" class="button-container"> <el-button class="save-button" type="primary" @@ -42,6 +42,7 @@ @click="showDialog" >椹冲洖</el-button> </div> + <div v-if="!disabled" class="button-container"> <el-button class="save-button" @@ -99,11 +100,11 @@ value: "椤圭洰绠$悊鍩虹淇℃伅", componentName: BasicInfo, }, - { - label: "鎶曡祫绠$悊鍩虹淇℃伅", - value: "鎶曡祫绠$悊鍩虹淇℃伅", - componentName: InvestInfo, - }, + // { + // label: "鎶曡祫绠$悊鍩虹淇℃伅", + // value: "鎶曡祫绠$悊鍩虹淇℃伅", + // componentName: InvestInfo, + // }, { label: "椤圭洰鎶曡祫鍙婅祫閲戞潵婧�", value: "椤圭洰鎶曡祫鍙婅祫閲戞潵婧�", @@ -114,16 +115,16 @@ value: "椤圭洰(娉曚汉)鍗曚綅鐧昏淇℃伅", componentName: LegalPerson, }, - { - label: "鎶曡祫椤圭洰浜т笟鏀跨瓥绗﹀悎鎯呭喌", - value: "鎶曡祫椤圭洰浜т笟鏀跨瓥绗﹀悎鎯呭喌", - componentName: PolicyInfo, - }, - { - label: "鐩稿叧鏂囦功", - value: "鐩稿叧鏂囦功", - componentName: DocumentsInfo, - }, + // { + // label: "鎶曡祫椤圭洰浜т笟鏀跨瓥绗﹀悎鎯呭喌", + // value: "鎶曡祫椤圭洰浜т笟鏀跨瓥绗﹀悎鎯呭喌", + // componentName: PolicyInfo, + // }, + // { + // label: "鐩稿叧鏂囦功", + // value: "鐩稿叧鏂囦功", + // componentName: DocumentsInfo, + // }, ], childRef: null, }; @@ -149,6 +150,7 @@ basicInfoForm(data) { this.projectForm.projectInfoForm = data; this.projectId = data.id; + this.audit = this.$route.query.audit == 1 && this.projectForm.projectInfoForm.auditRole; }, investInfoForm(data) { this.projectForm.projectInvestmentInfoForm = data; @@ -186,16 +188,17 @@ saveProject(num) { this.projectForm.projectInfoForm.usedStatus = num; editProject(this.projectForm).then((res) => { - this.$message.success("鎿嶄綔鎴愬姛"); + this.$message.success("淇濆瓨鎴愬姛"); + this.$store.dispatch("tagsView/delView", this.$route); + this.$router.push('/projectEngineering/project/projectLibrary') }) - this.$router.push('/projectEngineering/project/projectLibrary') + } }, mounted() { if (this.$route.query.disabled) { this.disabled = true; } - this.audit = this.$route.query.audit == 1; }, }; </script> -- Gitblit v1.8.0