From 92b92d9801f45df8e5b56f062e6d459fee4aeac5 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期三, 21 八月 2024 15:01:09 +0800
Subject: [PATCH] feat:数据中心数字增加中文字段

---
 src/views/system/check/result/detail/index.vue |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/src/views/system/check/result/detail/index.vue b/src/views/system/check/result/detail/index.vue
index d9326e2..54c2e87 100644
--- a/src/views/system/check/result/detail/index.vue
+++ b/src/views/system/check/result/detail/index.vue
@@ -57,8 +57,8 @@
         <el-table-column label="鎿嶄綔" align="center">
           <template slot-scope="scope">
             <div style="display: flex;justify-content: center;">
-            <el-button size="small" type="text" @click="handlePublish(scope.row)" v-if="scope.row.publish === 'UNPUBLISHED'" >纭鍙戝竷</el-button>
-            <el-button size="small" type="text" @click="handlePublish(scope.row)" v-if="scope.row.publish === 'PUBLISHED'">鍙栨秷鍙戝竷</el-button>
+            <el-button v-hasPermi="['check:score:publish']" size="small" type="text" @click="handlePublish(scope.row)" v-if="scope.row.publish === 'UNPUBLISHED'" >纭鍙戝竷</el-button>
+            <el-button v-hasPermi="['check:score:publish']" size="small" type="text" @click="handlePublish(scope.row)" v-if="scope.row.publish === 'PUBLISHED'">鍙栨秷鍙戝竷</el-button>
             <el-button
               size="mini"
               type="text"
@@ -84,7 +84,7 @@
 </template>
 
 <script>
-import { listScore, getScore, delScore, addScore, updateScore, publishScore, detailScore } from "@/api/platform/check-score";
+import { chartScore, getScore, delScore, addScore, updateScore, publishScore, detailScore } from "@/api/platform/check-score";
 import { areaSelect } from '@/api/system/dept';
 import * as echarts from 'echarts';
 let lineChart = null;
@@ -126,7 +126,6 @@
   },
   created() {
     //鑰冩牳鎴愮哗璇︽儏璺宠浆鍙傛暟鎺ユ敹
-    console.log(this.$route.query.index)
     if (this.$route.query.index) {
       this.queryParams.deptId = this.$route.query.index
       this.queryParamsList.deptId = this.$route.query.index
@@ -136,9 +135,12 @@
     const month = (date.getMonth() + 1) >= 10 ? date.getMonth() + 1 : '0' + (date.getMonth() + 1);
     this.date = year + '-' + month;
     this.queryParams.date = this.date;
-    this.queryParams.examineTag =this.$route.query.examineTag;
-    this.queryParamsList.examineTag =this.$route.query.examineTag;
-    this.activeIndex = this.$route.query.examineTag;
+    let examineTag = this.$route.query.examineTag;
+    if (examineTag === '2') { examineTag = '0' }
+    if (examineTag === '3') { examineTag = '1' }
+    this.queryParams.examineTag = examineTag;
+    this.queryParamsList.examineTag = examineTag;
+    this.activeIndex = examineTag;
     this.areaSelect();
     this.getList(this.$route.query.index);
   },
@@ -199,7 +201,7 @@
     getChart(deptId) {
       this.loading = true;
       lineChart.showLoading();
-      listScore(this.queryParams).then(response => {
+      chartScore(this.queryParams).then(response => {
         this.initChart(response.data[deptId]);
         this.loading = false;
       });

--
Gitblit v1.8.0