权限22
This commit is contained in:
@@ -157,10 +157,20 @@ export default {
|
||||
color: 'primary',
|
||||
},
|
||||
{
|
||||
type: (this.$auth.hasPermi('equipment:maintain-confirm:confirm') || this.$auth.hasPermi('equipment:maintain-confirm:confirm') || this.$auth.hasPermi('equipment:maintain-confirm:export')) ? 'separate' : '',
|
||||
type: (this.$auth.hasPermiAnd([
|
||||
'equipment:maintain-record:create',
|
||||
'base:core-worker:query',
|
||||
'base:core-production-line:query',
|
||||
'base:core-department:query'
|
||||
]) || this.$auth.hasPermi('equipment:maintain-record:update') || this.$auth.hasPermi('equipment:maintain-record:export')) ? 'separate' : '',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('equipment:maintain-confirm:create')
|
||||
type: this.$auth.hasPermiAnd([
|
||||
'equipment:maintain-record:create',
|
||||
'base:core-worker:query',
|
||||
'base:core-production-line:query',
|
||||
'base:core-department:query'
|
||||
])
|
||||
? 'button'
|
||||
: '',
|
||||
btnName: '新增',
|
||||
@@ -169,7 +179,7 @@ export default {
|
||||
color: 'success',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('equipment:maintain-confirm:confirm')
|
||||
type: this.$auth.hasPermi('equipment:maintain-record:update')
|
||||
? 'button'
|
||||
: '',
|
||||
btnName: '批量确认',
|
||||
@@ -178,7 +188,7 @@ export default {
|
||||
plain: true,
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('equipment:maintain-confirm:export')
|
||||
type: this.$auth.hasPermi('equipment:maintain-record:export')
|
||||
? 'button'
|
||||
: '',
|
||||
btnName: '导出',
|
||||
|
||||
Reference in New Issue
Block a user