权限22
This commit is contained in:
@@ -71,7 +71,7 @@ export default {
|
||||
addOrUpdateVisible: false,
|
||||
searchBarKeys: ['maintenanceResult', 'createTime', 'equipmentId'],
|
||||
tableBtn: [
|
||||
this.$auth.hasPermi('equipment:repair:update')
|
||||
this.$auth.hasPermi('equipment:repair:query')
|
||||
? {
|
||||
type: 'detail',
|
||||
btnName: '详情',
|
||||
@@ -173,7 +173,12 @@ export default {
|
||||
color: 'primary',
|
||||
},
|
||||
{
|
||||
type: (this.$auth.hasPermi('equipment:repair:export') || this.$auth.hasPermi('equipment:repair:create')) ? 'separate' : '',
|
||||
type: (this.$auth.hasPermi('equipment:repair:export') ||
|
||||
this.$auth.hasPermiAnd([
|
||||
'equipment:repair:create',
|
||||
'base:core-worker:query',
|
||||
'system:user:list'
|
||||
])) ? 'separate' : '',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('equipment:repair:export') ? 'button' : '',
|
||||
@@ -183,7 +188,11 @@ export default {
|
||||
color: 'primary',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('equipment:repair:create') ? 'button' : '',
|
||||
type: this.$auth.hasPermiAnd([
|
||||
'equipment:repair:create',
|
||||
'base:core-worker:query',
|
||||
'system:user:list'
|
||||
]) ? 'button' : '',
|
||||
btnName: '新增',
|
||||
name: 'add',
|
||||
plain: true,
|
||||
|
||||
Reference in New Issue
Block a user