From f13ebbc16c9e95a3366ecaef7be3aa1e81929dd1 Mon Sep 17 00:00:00 2001 From: easy <1358086367@qq.com> Date: Wed, 15 Mar 2023 15:05:36 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E5=BA=94=E7=94=A8=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=9D=83=E9=99=90=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/Apply/index.vue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/views/system/Apply/index.vue b/src/views/system/Apply/index.vue index 382985a5..89784329 100644 --- a/src/views/system/Apply/index.vue +++ b/src/views/system/Apply/index.vue @@ -190,7 +190,7 @@ import { useMenuStore } from '@/store/menu'; import { message } from 'ant-design-vue'; const menuStory = useMenuStore(); -const permission = 'system/User'; +const permission = 'system/Apply'; const typeOptions = [ { label: '内部独立应用', @@ -312,7 +312,7 @@ const table = { const result = [ { - permission: true, + permission: `${permission}:update`, key: 'edit', text: '编辑', tooltip: { @@ -322,7 +322,7 @@ const table = { onClick: () => table.toSave(data.id), }, { - permission: true, + permission: `${permission}:update`, key: 'action', text: disabled ? '禁用' : '启用', tooltip: { @@ -335,7 +335,7 @@ const table = { icon: disabled ? 'StopOutlined' : 'PlayCircleOutlined', }, { - permission: true, + permission: `${permission}:delete`, key: 'delete', text: '删除', tooltip: { @@ -348,7 +348,7 @@ const table = { disabled, icon: 'DeleteOutlined', }, - ] as ActionsType[]; + ] as any[]; const otherServers = data.integrationModes.map( (item: any) => item.value as string, ); @@ -356,12 +356,12 @@ const table = { key: 'others', text: '其他', icon: 'EllipsisOutlined', - children: [] as ActionsType[], + children: [] as any[], }; // 有集成菜单权限 if (otherServers.includes('page')) others.children?.push({ - permission: true, + permission: [`${permission}:add`,`${permission}:update`], key: 'page', text: '集成菜单', tooltip: { @@ -378,7 +378,7 @@ const table = { if (otherServers.includes('apiServer')) others.children?.push( { - permission: true, + permission: [`${permission}:add`,`${permission}:update`], key: 'empowerment', text: '赋权', tooltip: { @@ -394,7 +394,7 @@ const table = { }, }, { - permission: true, + permission: [`${permission}:add`,`${permission}:update`], key: 'viewApi', text: '查看API', tooltip: {