From 1d869cd15beaaf7b369329cdd2204640e84f5c77 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期三, 08 五月 2024 17:30:18 +0800
Subject: [PATCH] 路由和发布按钮权限控制

---
 src/views/system/check/result/detail/detail.vue |    2 +-
 src/views/system/check/result/index.vue         |   17 ++++++++++++-----
 src/views/system/check/result/detail/index.vue  |    4 ++--
 3 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/src/views/system/check/result/detail/detail.vue b/src/views/system/check/result/detail/detail.vue
index 05adf88..b6db3cf 100644
--- a/src/views/system/check/result/detail/detail.vue
+++ b/src/views/system/check/result/detail/detail.vue
@@ -237,7 +237,7 @@
     },
     /** 杩斿洖鎸夐挳 */
     goBack() {
-      const obj = { path: "/examine/detail", query: { index: this.$route.query.deptId, examineTag: this.$route.query.examineTag, pageNum: this.$route.query.pageNum } };
+      const obj = { path: "/check/detail", query: { index: this.$route.query.deptId, examineTag: this.$route.query.examineTag, pageNum: this.$route.query.pageNum } };
       this.$tab.closeOpenPage(obj);
     },
     // 鍏抽棴褰撳墠tab椤电锛屾墦寮�鏂伴〉绛�
diff --git a/src/views/system/check/result/detail/index.vue b/src/views/system/check/result/detail/index.vue
index d9326e2..d6c65b4 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"
diff --git a/src/views/system/check/result/index.vue b/src/views/system/check/result/index.vue
index 090956a..1013586 100644
--- a/src/views/system/check/result/index.vue
+++ b/src/views/system/check/result/index.vue
@@ -43,7 +43,7 @@
                 </div>
               </div>
               <div class="bottom-publish">
-                <el-button size="medium" :type="isAnyUnpublished(city) ? 'success' : 'danger'" @click="publish(city)">
+                <el-button v-hasPermi="['check:score:publish']" size="medium" :type="isAnyUnpublished(city) ? 'success' : 'danger'" @click="publish(city)">
                   {{ isAnyUnpublished(city) ? '鍙戝竷' : '鍙栨秷' }}
                 </el-button>
                 <el-button size="medium" @click="jumpDetail(index)" type="info">璇︽儏</el-button>
@@ -138,6 +138,7 @@
             type: 'bar',
             name: '瑙嗛鑰冩牳',
             data: this.dataList.data1,
+            barWidth: '40',
             itemStyle: {
               color: 'rgba(255, 165, 0, 1)'
             }
@@ -146,6 +147,7 @@
             type: 'bar',
             name: '浜鸿劯鑰冩牳',
             data: this.dataList.data2,
+            barWidth: '40',
             itemStyle: {
               color: 'rgba(85, 192, 191, 1)'
             }
@@ -154,6 +156,7 @@
             type: 'bar',
             name: '杞﹁締鑰冩牳',
             data: this.dataList.data3,
+            barWidth: '40',
             itemStyle: {
               color: 'rgba(62, 144, 247, 1)'
             }
@@ -196,33 +199,37 @@
           axisLabel: {
           },
           data: nameArray
+
         },
         yAxis: {
-          min: 90,
+          min: 60
         },
         series: [
           {
             type: 'bar',
             name: '瑙嗛鑰冩牳',
             data: data1,
+            barWidth: '40',
             itemStyle: {
-              color: 'rgba(255, 165, 0, 1)'
+              color: 'rgba(255, 165, 0, 1)',
             }
           },
           {
             type: 'bar',
             name: '浜鸿劯鑰冩牳',
             data: data2,
+            barWidth: '40',
             itemStyle: {
-              color: 'rgba(85, 192, 191, 1)'
+              color: 'rgba(85, 192, 191, 1)',
             }
           },
           {
             type: 'bar',
             name: '杞﹁締鑰冩牳',
             data: data3,
+            barWidth: '40',
             itemStyle: {
-              color: 'rgba(62, 144, 247, 1)'
+              color: 'rgba(62, 144, 247, 1)',
             }
           },
         ]

--
Gitblit v1.8.0