projects/mesxc-zwq
into projects/mesxc-test
5 months ago
@@ -92,7 +92,7 @@ export default { | |||||
param: 'searchTime', | param: 'searchTime', | ||||
}, | }, | ||||
{ | { | ||||
type: this.$auth.hasPermi('cost:energyCost:query') | |||||
type: this.$auth.hasPermi('extend:cost-energy-search:query') | |||||
? 'button' | ? 'button' | ||||
: '', | : '', | ||||
btnName: '查询', | btnName: '查询', | ||||
@@ -100,7 +100,7 @@ export default { | |||||
color: 'primary', | color: 'primary', | ||||
}, | }, | ||||
{ | { | ||||
type: this.$auth.hasPermi('cost:energyCost:export') | |||||
type: this.$auth.hasPermi('extend:cost-energy-search:export') | |||||
? 'button' | ? 'button' | ||||
: '', | : '', | ||||
btnName: '导出', | btnName: '导出', | ||||
@@ -116,7 +116,7 @@ export default { | |||||
defaultSelect: [], | defaultSelect: [], | ||||
}, | }, | ||||
{ | { | ||||
type: this.$auth.hasPermi('cost:energyCostHis:query') | |||||
type: this.$auth.hasPermi('extend:cost-enery-auto-report:query') | |||||
? 'button' | ? 'button' | ||||
: '', | : '', | ||||
btnName: '查询', | btnName: '查询', | ||||
@@ -124,7 +124,7 @@ export default { | |||||
color: 'primary', | color: 'primary', | ||||
}, | }, | ||||
{ | { | ||||
type: this.$auth.hasPermi('cost:energyCostHis:export') | |||||
type: this.$auth.hasPermi('extend:cost-enery-auto-report:export') | |||||
? 'button' | ? 'button' | ||||
: '', | : '', | ||||
btnName: '导出', | btnName: '导出', | ||||
@@ -101,13 +101,13 @@ export default { | |||||
}, | }, | ||||
tableProps, | tableProps, | ||||
tableBtn: [ | tableBtn: [ | ||||
this.$auth.hasPermi(`cost:rawMaterialConfig:update`) | |||||
this.$auth.hasPermi(`extend:cost-material-set:update`) | |||||
? { | ? { | ||||
type: 'edit', | type: 'edit', | ||||
btnName: '编辑', | btnName: '编辑', | ||||
} | } | ||||
: undefined, | : undefined, | ||||
this.$auth.hasPermi(`cost:rawMaterialConfig:delete`) | |||||
this.$auth.hasPermi(`extend:cost-material-set:delete`) | |||||
? { | ? { | ||||
type: 'delete', | type: 'delete', | ||||
btnName: '删除', | btnName: '删除', | ||||
@@ -124,7 +124,7 @@ export default { | |||||
filterable: true, | filterable: true, | ||||
}, | }, | ||||
{ | { | ||||
type: this.$auth.hasPermi('cost:rawMaterialConfig:query') | |||||
type: this.$auth.hasPermi('extend:cost-material-set:query') | |||||
? 'button' | ? 'button' | ||||
: '', | : '', | ||||
btnName: '查询', | btnName: '查询', | ||||
@@ -133,13 +133,13 @@ export default { | |||||
}, | }, | ||||
{ | { | ||||
type: | 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' | ? 'separate' | ||||
: '', | : '', | ||||
}, | }, | ||||
{ | { | ||||
type: this.$auth.hasPermi('cost:rawMaterialConfig:create') | |||||
type: this.$auth.hasPermi('extend:cost-material-set:create') | |||||
? 'button' | ? 'button' | ||||
: '', | : '', | ||||
btnName: '新增', | btnName: '新增', | ||||
@@ -97,7 +97,7 @@ export default { | |||||
param: 'searchTime', | param: 'searchTime', | ||||
}, | }, | ||||
{ | { | ||||
type: this.$auth.hasPermi('cost:rawMaterialCost:query') | |||||
type: this.$auth.hasPermi('extend:cost-material-search:query') | |||||
? 'button' | ? 'button' | ||||
: '', | : '', | ||||
btnName: '查询', | btnName: '查询', | ||||
@@ -105,7 +105,7 @@ export default { | |||||
color: 'primary', | color: 'primary', | ||||
}, | }, | ||||
{ | { | ||||
type: this.$auth.hasPermi('cost:rawMaterialCost:export') | |||||
type: this.$auth.hasPermi('extend:cost-material-search:export') | |||||
? 'button' | ? 'button' | ||||
: '', | : '', | ||||
btnName: '导出', | btnName: '导出', | ||||
@@ -115,7 +115,7 @@ export default { | |||||
defaultSelect: [], | defaultSelect: [], | ||||
}, | }, | ||||
{ | { | ||||
type: this.$auth.hasPermi('cost:rawMaterialCostHis:query') | |||||
type: this.$auth.hasPermi('extend:cost-material-auto-report:query') | |||||
? 'button' | ? 'button' | ||||
: '', | : '', | ||||
btnName: '查询', | btnName: '查询', | ||||
@@ -123,7 +123,7 @@ export default { | |||||
color: 'primary', | color: 'primary', | ||||
}, | }, | ||||
{ | { | ||||
type: this.$auth.hasPermi('cost:rawMaterialCostHis:export') | |||||
type: this.$auth.hasPermi('extend:cost-material-auto-report:export') | |||||
? 'button' | ? 'button' | ||||
: '', | : '', | ||||
btnName: '导出', | btnName: '导出', | ||||