From d8d68a0aee93073b5ec3195368ca0ed1076f66a2 Mon Sep 17 00:00:00 2001 From: 董国庆 <364620639@qq.com> Date: 星期三, 25 六月 2025 17:58:08 +0800 Subject: [PATCH] 对接评定接口和中台待办事项 --- laboratory/src/views/dataManagement/testResultReport/detail.vue | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/laboratory/src/views/dataManagement/testResultReport/detail.vue b/laboratory/src/views/dataManagement/testResultReport/detail.vue index 9bc9136..c97d8e7 100644 --- a/laboratory/src/views/dataManagement/testResultReport/detail.vue +++ b/laboratory/src/views/dataManagement/testResultReport/detail.vue @@ -178,7 +178,7 @@ </template> <template v-else> <div class="no-data">暂未评定</div> - <!-- <div v-if="canEvaluate" class="to-evaluate" >去评价</div> --> + <div v-if="canEvaluate" class="to-evaluate" @click="handleEvaluate('processEngineer')">去评价</div> </template> </template> </div> @@ -187,7 +187,7 @@ <el-button type="primary" class="save-btn" @click="handleSubmit(1)">提交</el-button> <el-button @click="handleSubmit(-1)">存草稿</el-button> </div> - <div class="add-project-footer" v-if="isView && form.status == 2"> + <div class="add-project-footer" v-if="isView && form.status == 2 &&(userRole==1 || userRole==2)"> <el-button type="primary" class="save-btn" @click="handleEvaluate('processEngineer')">工艺工程师评定</el-button> <!-- <el-button @click="handleSubmit(-1)">存草稿</el-button> --> </div> @@ -289,6 +289,7 @@ "3": "已封存" }, currentEvaluationData: null, // 添加当前评价数据 + userRole:'', }; }, watch: { @@ -308,6 +309,9 @@ if (id) { this.getDetailData(id); } + const userInfo = JSON.parse(sessionStorage.getItem("userInfo")); + console.log('userInfo',userInfo) + this.userRole = userInfo.roleType || ''; }, methods: { handleAddTask() { @@ -469,7 +473,7 @@ }, // 去评价 handleEvaluate(type) { - if(this.$route.query.type == 'view' || type !='processEngineer'){ + if(this.$route.query.type == 'view' && type !='processEngineer'){ this.$message.warning('当前为查看模式,无法进行评价'); return; } -- Gitblit v1.7.1