From 427c876d16ba2e310b90092ab65af40f96c672f4 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期五, 19 四月 2024 10:47:45 +0800
Subject: [PATCH] 接口权限精确到按钮补充

---
 src/views/system/unit/index.vue |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/views/system/unit/index.vue b/src/views/system/unit/index.vue
index 1cf35f6..1ec0f28 100644
--- a/src/views/system/unit/index.vue
+++ b/src/views/system/unit/index.vue
@@ -44,6 +44,7 @@
           icon="el-icon-plus"
           size="mini"
           @click="handleAdd"
+          v-hasPermi="['unit:add']"
         >鏂板</el-button>
       </el-col>
       <el-col :span="1.5">
@@ -54,6 +55,7 @@
           size="mini"
           :disabled="single"
           @click="handleUpdate"
+          v-hasPermi="['unit:edit']"
         >淇敼</el-button>
       </el-col>
       <el-col :span="1.5">
@@ -64,6 +66,7 @@
           size="mini"
           :disabled="multiple"
           @click="handleDelete"
+          v-hasPermi="['unit:remove']"
         >鍒犻櫎</el-button>
       </el-col>
       <el-col :span="1.5">
@@ -73,6 +76,7 @@
           icon="el-icon-download"
           size="mini"
           @click="handleExport"
+          v-hasPermi="['unit:export']"
         >瀵煎嚭</el-button>
       </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
@@ -94,12 +98,14 @@
             type="text"
             icon="el-icon-edit"
             @click="handleUpdate(scope.row)"
+            v-hasPermi="['unit:edit']"
           >淇敼</el-button>
           <el-button
             size="mini"
             type="text"
             icon="el-icon-delete"
             @click="handleDelete(scope.row)"
+            v-hasPermi="['unit:remove']"
           >鍒犻櫎</el-button>
         </template>
       </el-table-column>

--
Gitblit v1.8.0