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

@@ -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',