权限
This commit is contained in:
@@ -173,12 +173,24 @@ export default {
|
||||
color: 'primary',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('base:order-group:create')
|
||||
type: this.$auth.hasPermiAnd([
|
||||
'base:order-group:create',
|
||||
'base:core-product:query',
|
||||
'base:core-customer:query',
|
||||
'base:order:query',
|
||||
])
|
||||
? 'separate'
|
||||
: '',
|
||||
},
|
||||
{
|
||||
type: this.$auth.hasPermi('base:order-group:create') ? 'button' : '',
|
||||
type: this.$auth.hasPermiAnd([
|
||||
'base:order-group:create',
|
||||
'base:core-product:query',
|
||||
'base:core-customer:query',
|
||||
'base:order:query',
|
||||
])
|
||||
? 'button'
|
||||
: '',
|
||||
btnName: '新增',
|
||||
name: 'add',
|
||||
color: 'success',
|
||||
@@ -197,7 +209,10 @@ export default {
|
||||
tableProps,
|
||||
list: [],
|
||||
tableBtn: [
|
||||
this.$auth.hasPermi('base:order-group:bind')
|
||||
this.$auth.hasPermiAnd([
|
||||
'base:order:query',
|
||||
'base:order-con-group-order:create',
|
||||
])
|
||||
? {
|
||||
type: 'bind',
|
||||
btnName: '绑定',
|
||||
@@ -214,7 +229,7 @@ export default {
|
||||
},
|
||||
}
|
||||
: undefined,
|
||||
this.$auth.hasPermi('base:order-group:complete')
|
||||
this.$auth.hasPermi('base:order-group:update')
|
||||
? {
|
||||
type: 'complete',
|
||||
btnName: '完成',
|
||||
@@ -231,7 +246,7 @@ export default {
|
||||
},
|
||||
}
|
||||
: undefined,
|
||||
this.$auth.hasPermi('base:order-group:termination')
|
||||
this.$auth.hasPermi('base:order-group:update')
|
||||
? {
|
||||
type: 'termination',
|
||||
btnName: '终止',
|
||||
@@ -248,7 +263,7 @@ export default {
|
||||
},
|
||||
}
|
||||
: undefined,
|
||||
this.$auth.hasPermi('base:order-group:cancel')
|
||||
this.$auth.hasPermi('base:order-group:update')
|
||||
? {
|
||||
type: 'cancel',
|
||||
btnName: '作废',
|
||||
@@ -265,11 +280,17 @@ export default {
|
||||
},
|
||||
}
|
||||
: undefined,
|
||||
{
|
||||
type: 'detail',
|
||||
btnName: '详情',
|
||||
},
|
||||
this.$auth.hasPermi('base:order-group:edit')
|
||||
this.$auth.hasPermi('base:order-group:update')
|
||||
? {
|
||||
type: 'detail',
|
||||
btnName: '详情',
|
||||
}
|
||||
: undefined,
|
||||
this.$auth.hasPermiAnd([
|
||||
'base:order-group:update',
|
||||
'base:core-product:query',
|
||||
'base:core-customer:query',
|
||||
])
|
||||
? {
|
||||
type: 'edit',
|
||||
btnName: '编辑',
|
||||
|
||||
Reference in New Issue
Block a user