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/index.vue |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

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"

--
Gitblit v1.8.0