From e001d36d2afb95425f8c29811b853c0754814cc3 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期三, 22 十月 2025 16:26:59 +0800
Subject: [PATCH] 修改

---
 src/views/work/qualityInfo/infrastructureMng/ledger/index.vue |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/views/work/qualityInfo/infrastructureMng/ledger/index.vue b/src/views/work/qualityInfo/infrastructureMng/ledger/index.vue
index 7612962..069bdd1 100644
--- a/src/views/work/qualityInfo/infrastructureMng/ledger/index.vue
+++ b/src/views/work/qualityInfo/infrastructureMng/ledger/index.vue
@@ -8,6 +8,7 @@
               plain
               icon="Plus"
               @click="openDialog('add',{})"
+              v-hasPermi="['ledger:list:add']"
           >新增</el-button>
         </el-form-item>
         <el-form-item v-if="isAdmin" label="企业:" >
@@ -32,7 +33,7 @@
         <el-form-item>
           <el-button type="primary" @click="getList()">查询</el-button>
           <el-button type="primary" plain @click="reset">重置</el-button>
-          <el-button type="primary" @click="exportInData">导入</el-button>
+          <el-button type="primary" @click="exportInData" v-hasPermi="['ledger:list:add']">导入</el-button>
           <vue3-json-excel
               :json-data="expertData"
               :fields="fields"
@@ -61,8 +62,8 @@
       <el-table-column prop="used" align="center" label="使用情况"></el-table-column>
       <el-table-column label="操作" align="center">
         <template #default="scope">
-          <el-button link type="primary" @click="openDialog('edit',scope.row)">编辑</el-button>
-          <el-button link type="danger" @click="handleDelete(scope.row)">删除</el-button>
+          <el-button link type="primary" @click="openDialog('edit',scope.row)" v-hasPermi="['ledger:list:edit']">编辑</el-button>
+          <el-button link type="danger" @click="handleDelete(scope.row)" v-hasPermi="['ledger:list:del']">删除</el-button>
         </template>
       </el-table-column>
     </el-table>

--
Gitblit v1.9.2