能源权限
This commit is contained in:
@@ -107,13 +107,17 @@ export default {
|
||||
param: 'cnName',
|
||||
},
|
||||
{
|
||||
type: 'button',
|
||||
type: this.$auth.hasPermi('base:energy-plc-connect:query')
|
||||
? 'button'
|
||||
: '',
|
||||
btnName: '查询',
|
||||
name: 'search',
|
||||
color: 'primary',
|
||||
},
|
||||
{
|
||||
type: 'separate',
|
||||
type: this.$auth.hasPermi('base:energy-plc-connect:create')
|
||||
? 'separate'
|
||||
: '',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('base:energy-plc-connect:create')
|
||||
@@ -127,17 +131,25 @@ export default {
|
||||
],
|
||||
tableProps,
|
||||
tableBtn: [
|
||||
this.$auth.hasPermi('base:energy-plc-connect:bind')
|
||||
this.$auth.hasPermiAnd([
|
||||
'base:energy-plc-param:query',
|
||||
'base:energy-type:query',
|
||||
])
|
||||
? {
|
||||
type: 'connect',
|
||||
btnName: '绑定',
|
||||
}
|
||||
: undefined,
|
||||
{
|
||||
type: 'detail',
|
||||
btnName: '详情',
|
||||
},
|
||||
this.$auth.hasPermi('base:energy-plc-connect:update')
|
||||
this.$auth.hasPermi('base:energy-plc-param:query')
|
||||
? {
|
||||
type: 'detail',
|
||||
btnName: '详情',
|
||||
}
|
||||
: undefined,
|
||||
this.$auth.hasPermiAnd([
|
||||
'base:energy-plc-connect:update',
|
||||
'base:energy-plc-connect:query',
|
||||
])
|
||||
? {
|
||||
type: 'edit',
|
||||
btnName: '编辑',
|
||||
|
||||
Reference in New Issue
Block a user