From 880d4f52416b135debb1f41d8ee9c7ec976a1019 Mon Sep 17 00:00:00 2001 From: xieyonghong <18010623010@163.com> Date: Tue, 28 Mar 2023 10:38:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E8=A7=92=E8=89=B2=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/init-home/data/RoleData.ts | 12 ------------ src/views/init-home/data/baseMenu.ts | 10 ++++++++++ 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/src/views/init-home/data/RoleData.ts b/src/views/init-home/data/RoleData.ts index c4821759..b2d128ad 100644 --- a/src/views/init-home/data/RoleData.ts +++ b/src/views/init-home/data/RoleData.ts @@ -245,12 +245,6 @@ export default { url: '/iot/link/protocol', buttons: [ { id: 'view', name: '查看', enabled: true, granted: true }, - { - id: 'action', - name: '启/禁用', - enabled: true, - granted: true, - }, { id: 'delete', name: '删除', enabled: true, granted: true }, { id: 'update', @@ -651,12 +645,6 @@ export default { url: '/iot/link/protocol', buttons: [ { id: 'view', name: '查看', enabled: true, granted: true }, - { - id: 'action', - name: '启/禁用', - enabled: true, - granted: true, - }, { id: 'delete', name: '删除', enabled: true, granted: true }, { id: 'update', diff --git a/src/views/init-home/data/baseMenu.ts b/src/views/init-home/data/baseMenu.ts index 39df86e4..eafb6658 100644 --- a/src/views/init-home/data/baseMenu.ts +++ b/src/views/init-home/data/baseMenu.ts @@ -1364,6 +1364,16 @@ export default [ }, ], }, + { + id: 'action', + name: '启/禁用', + permissions: [ + { + permission: 'firmware-upgrade-task-manager', + actions: ['save'], + } + ], + }, ], accessSupport: { text: "不支持", value: "unsupported" }, supportDataAccess: false