权限22
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
<method-btn
|
||||
v-if="tableBtn.length"
|
||||
slot="handleBtn"
|
||||
:width="120"
|
||||
:width="180"
|
||||
label="操作"
|
||||
:method-list="tableBtn"
|
||||
@clickBtn="handleClick" />
|
||||
@@ -138,13 +138,25 @@ export default {
|
||||
planName: undefined
|
||||
},
|
||||
tableBtn: [
|
||||
this.$auth.hasPermi(`equipment:plan-config:add`)
|
||||
this.$auth.hasPermiAnd([
|
||||
'equipment:plan-config:query',
|
||||
'equipment:plan-config:create',
|
||||
'equipment:plan-config:update',
|
||||
'equipment:plan-config:delete',
|
||||
'base:core-equipment:query'
|
||||
])
|
||||
? {
|
||||
type: 'add',
|
||||
btnName: '添加内容',
|
||||
}
|
||||
: undefined,
|
||||
this.$auth.hasPermi(`equipment:plan-config:update`)
|
||||
this.$auth.hasPermiAnd([
|
||||
'equipment:plan-config:update',
|
||||
'equipment:plan-config:query',
|
||||
'base:core-worker:query',
|
||||
'base:core-production-line:query',
|
||||
'base:core-department:query'
|
||||
])
|
||||
? {
|
||||
type: 'edit',
|
||||
btnName: '编辑',
|
||||
@@ -172,10 +184,20 @@ export default {
|
||||
color: 'primary',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('equipment:plan-config:create') ? 'separate' : '',
|
||||
type: this.$auth.hasPermiAnd([
|
||||
'equipment:plan-config:create',
|
||||
'base:core-worker:query',
|
||||
'base:core-production-line:query',
|
||||
'base:core-department:query'
|
||||
]) ? 'separate' : '',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('equipment:plan-config:create') ? 'button' : '',
|
||||
type: this.$auth.hasPermiAnd([
|
||||
'equipment:plan-config:create',
|
||||
'base:core-worker:query',
|
||||
'base:core-production-line:query',
|
||||
'base:core-department:query'
|
||||
]) ? 'button' : '',
|
||||
btnName: '新增',
|
||||
name: 'add',
|
||||
color: 'success',
|
||||
|
||||
Reference in New Issue
Block a user