This commit is contained in:
helloDy
2024-04-12 11:05:11 +08:00
parent 087af452de
commit b41dc9593c
16 changed files with 224 additions and 73 deletions

View File

@@ -123,13 +123,23 @@ export default {
return {
searchBarKeys: ['groupId', 'equipmentName'],
tableBtn: [
this.$auth.hasPermi('equipment:bind-group:update')
this.$auth.hasPermiAnd([
'base:equipment-group-alarm:query',
'base:core-equipment:query'
])
? {
type: 'detail',
btnName: '查看报警',
}
: undefined,
this.$auth.hasPermi('equipment:bind-group:update')
this.$auth.hasPermiAnd([
'equipment:bind-group:update',
'base:core-equipment:query',
'base:equipment-group-alarm:create',
'base:equipment-group-alarm:update',
'base:equipment-group-alarm:delete',
'base:equipment-group-alarm:query'
])
? {
type: 'edit',
btnName: '修改',
@@ -201,12 +211,16 @@ export default {
color: 'primary',
},
{
type: this.$auth.hasPermi('equipment:bind-group:create')
? 'separate' : '',
type: this.$auth.hasPermiAnd([
'equipment:bind-group:create',
'base:core-equipment:query'
]) ? 'separate' : '',
},
{
type: this.$auth.hasPermi('equipment:bind-group:create')
? 'button'
type: this.$auth.hasPermiAnd([
'equipment:bind-group:create',
'base:core-equipment:query'
]) ? 'button'
: '',
btnName: '新增',
name: 'add',