|
|
@@ -101,13 +101,13 @@ export default { |
|
|
|
}, |
|
|
|
tableProps, |
|
|
|
tableBtn: [ |
|
|
|
this.$auth.hasPermi(`cost:rawMaterialConfig:update`) |
|
|
|
this.$auth.hasPermi(`extend:cost-material-set:update`) |
|
|
|
? { |
|
|
|
type: 'edit', |
|
|
|
btnName: '编辑', |
|
|
|
} |
|
|
|
: undefined, |
|
|
|
this.$auth.hasPermi(`cost:rawMaterialConfig:delete`) |
|
|
|
this.$auth.hasPermi(`extend:cost-material-set:delete`) |
|
|
|
? { |
|
|
|
type: 'delete', |
|
|
|
btnName: '删除', |
|
|
@@ -124,7 +124,7 @@ export default { |
|
|
|
filterable: true, |
|
|
|
}, |
|
|
|
{ |
|
|
|
type: this.$auth.hasPermi('cost:rawMaterialConfig:query') |
|
|
|
type: this.$auth.hasPermi('extend:cost-material-set:query') |
|
|
|
? 'button' |
|
|
|
: '', |
|
|
|
btnName: '查询', |
|
|
@@ -133,13 +133,13 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
type: |
|
|
|
this.$auth.hasPermi('cost:rawMaterialConfig:create') && |
|
|
|
this.$auth.hasPermi('cost:rawMaterialConfig:query') |
|
|
|
this.$auth.hasPermi('extend:cost-material-set:create') && |
|
|
|
this.$auth.hasPermi('extend:cost-material-set:query') |
|
|
|
? 'separate' |
|
|
|
: '', |
|
|
|
}, |
|
|
|
{ |
|
|
|
type: this.$auth.hasPermi('cost:rawMaterialConfig:create') |
|
|
|
type: this.$auth.hasPermi('extend:cost-material-set:create') |
|
|
|
? 'button' |
|
|
|
: '', |
|
|
|
btnName: '新增', |
|
|
|