From 84b519872b718eed38e8c7a53282ed510e023571 Mon Sep 17 00:00:00 2001 From: ysn <2126564605@qq.com> Date: Mon, 27 Apr 2026 13:24:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E7=8E=AF=E7=AE=A1=E7=90=86-=E5=AE=89?= =?UTF-8?q?=E5=85=A8=E7=AE=A1=E7=90=86-=E5=AE=89=E5=85=A8=E5=B7=A1?= =?UTF-8?q?=E6=A3=80=E7=82=B9=E9=85=8D=E7=BD=AE-=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../safetyInspectionPoint/index.vue | 25 ++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/src/views/safetyManagement/safetyInspectionPoint/index.vue b/src/views/safetyManagement/safetyInspectionPoint/index.vue index ff93446e..81be3048 100644 --- a/src/views/safetyManagement/safetyInspectionPoint/index.vue +++ b/src/views/safetyManagement/safetyInspectionPoint/index.vue @@ -17,14 +17,25 @@ @refresh-change="refreshChange" @on-load="onLoad" @sort-change="sortChange" + :permission="permissionList" > @@ -52,6 +63,7 @@ import basicImport from '@/components/basic-import/main.vue'; import { getList, add, remove, update } from '@/api/safetyManagement/safetyInspectionPoint.js'; import addInspectDailog from './addInspectDailog.vue'; +import { mapGetters } from 'vuex'; export default { components: { basicImport, @@ -202,6 +214,13 @@ export default { }); return ids.join(','); }, + ...mapGetters(['permission']), + permissionList() { + return { + editBtn: this.validData(this.permission.safetyInspectionPoint_edit, false), + delBtn: this.validData(this.permission.safetyInspectionPoint_del, false), + }; + }, }, methods: { // 点击导入按钮