fix: 优化初始化角色权限
This commit is contained in:
parent
0a93cd2926
commit
880d4f5241
|
@ -245,12 +245,6 @@ export default {
|
||||||
url: '/iot/link/protocol',
|
url: '/iot/link/protocol',
|
||||||
buttons: [
|
buttons: [
|
||||||
{ id: 'view', name: '查看', enabled: true, granted: true },
|
{ id: 'view', name: '查看', enabled: true, granted: true },
|
||||||
{
|
|
||||||
id: 'action',
|
|
||||||
name: '启/禁用',
|
|
||||||
enabled: true,
|
|
||||||
granted: true,
|
|
||||||
},
|
|
||||||
{ id: 'delete', name: '删除', enabled: true, granted: true },
|
{ id: 'delete', name: '删除', enabled: true, granted: true },
|
||||||
{
|
{
|
||||||
id: 'update',
|
id: 'update',
|
||||||
|
@ -651,12 +645,6 @@ export default {
|
||||||
url: '/iot/link/protocol',
|
url: '/iot/link/protocol',
|
||||||
buttons: [
|
buttons: [
|
||||||
{ id: 'view', name: '查看', enabled: true, granted: true },
|
{ id: 'view', name: '查看', enabled: true, granted: true },
|
||||||
{
|
|
||||||
id: 'action',
|
|
||||||
name: '启/禁用',
|
|
||||||
enabled: true,
|
|
||||||
granted: true,
|
|
||||||
},
|
|
||||||
{ id: 'delete', name: '删除', enabled: true, granted: true },
|
{ id: 'delete', name: '删除', enabled: true, granted: true },
|
||||||
{
|
{
|
||||||
id: 'update',
|
id: 'update',
|
||||||
|
|
|
@ -1364,6 +1364,16 @@ export default [
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'action',
|
||||||
|
name: '启/禁用',
|
||||||
|
permissions: [
|
||||||
|
{
|
||||||
|
permission: 'firmware-upgrade-task-manager',
|
||||||
|
actions: ['save'],
|
||||||
|
}
|
||||||
|
],
|
||||||
|
},
|
||||||
],
|
],
|
||||||
accessSupport: { text: "不支持", value: "unsupported" },
|
accessSupport: { text: "不支持", value: "unsupported" },
|
||||||
supportDataAccess: false
|
supportDataAccess: false
|
||||||
|
|
Loading…
Reference in New Issue