From d3d93acd0fbf72d8e9520e0b409fd390035f48f1 Mon Sep 17 00:00:00 2001 From: zwq Date: Wed, 10 Apr 2024 14:48:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=88=90=E6=9C=AC=E6=96=B0?= =?UTF-8?q?=E7=9A=84=E6=9D=83=E9=99=90=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/cost/energyCost/index.vue | 4 ++-- src/views/cost/energyCostHis/index.vue | 4 ++-- src/views/cost/rawMaterialConfig/index.vue | 12 ++++++------ src/views/cost/rawMaterialCost/index.vue | 4 ++-- src/views/cost/rawMaterialCostHis/index.vue | 4 ++-- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/views/cost/energyCost/index.vue b/src/views/cost/energyCost/index.vue index 1b685d13..9d657c09 100644 --- a/src/views/cost/energyCost/index.vue +++ b/src/views/cost/energyCost/index.vue @@ -92,7 +92,7 @@ export default { param: 'searchTime', }, { - type: this.$auth.hasPermi('cost:energyCost:query') + type: this.$auth.hasPermi('extend:cost-energy-search:query') ? 'button' : '', btnName: '查询', @@ -100,7 +100,7 @@ export default { color: 'primary', }, { - type: this.$auth.hasPermi('cost:energyCost:export') + type: this.$auth.hasPermi('extend:cost-energy-search:export') ? 'button' : '', btnName: '导出', diff --git a/src/views/cost/energyCostHis/index.vue b/src/views/cost/energyCostHis/index.vue index 82947416..736f1e5f 100644 --- a/src/views/cost/energyCostHis/index.vue +++ b/src/views/cost/energyCostHis/index.vue @@ -116,7 +116,7 @@ export default { defaultSelect: [], }, { - type: this.$auth.hasPermi('cost:energyCostHis:query') + type: this.$auth.hasPermi('extend:cost-enery-auto-report:query') ? 'button' : '', btnName: '查询', @@ -124,7 +124,7 @@ export default { color: 'primary', }, { - type: this.$auth.hasPermi('cost:energyCostHis:export') + type: this.$auth.hasPermi('extend:cost-enery-auto-report:export') ? 'button' : '', btnName: '导出', diff --git a/src/views/cost/rawMaterialConfig/index.vue b/src/views/cost/rawMaterialConfig/index.vue index ca800c14..6d5c73a3 100644 --- a/src/views/cost/rawMaterialConfig/index.vue +++ b/src/views/cost/rawMaterialConfig/index.vue @@ -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: '新增', diff --git a/src/views/cost/rawMaterialCost/index.vue b/src/views/cost/rawMaterialCost/index.vue index 0acb7d76..2bd3b67c 100644 --- a/src/views/cost/rawMaterialCost/index.vue +++ b/src/views/cost/rawMaterialCost/index.vue @@ -97,7 +97,7 @@ export default { param: 'searchTime', }, { - type: this.$auth.hasPermi('cost:rawMaterialCost:query') + type: this.$auth.hasPermi('extend:cost-material-search:query') ? 'button' : '', btnName: '查询', @@ -105,7 +105,7 @@ export default { color: 'primary', }, { - type: this.$auth.hasPermi('cost:rawMaterialCost:export') + type: this.$auth.hasPermi('extend:cost-material-search:export') ? 'button' : '', btnName: '导出', diff --git a/src/views/cost/rawMaterialCostHis/index.vue b/src/views/cost/rawMaterialCostHis/index.vue index bf005423..79cd2fe4 100644 --- a/src/views/cost/rawMaterialCostHis/index.vue +++ b/src/views/cost/rawMaterialCostHis/index.vue @@ -115,7 +115,7 @@ export default { defaultSelect: [], }, { - type: this.$auth.hasPermi('cost:rawMaterialCostHis:query') + type: this.$auth.hasPermi('extend:cost-material-auto-report:query') ? 'button' : '', btnName: '查询', @@ -123,7 +123,7 @@ export default { color: 'primary', }, { - type: this.$auth.hasPermi('cost:rawMaterialCostHis:export') + type: this.$auth.hasPermi('extend:cost-material-auto-report:export') ? 'button' : '', btnName: '导出',