From 3d3fa2ccee9a8cb7f776976b96681778e969f853 Mon Sep 17 00:00:00 2001 From: zwq Date: Mon, 8 Apr 2024 09:05:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=90=E6=9C=AC=E6=8C=89=E9=92=AE=E6=9D=83?= =?UTF-8?q?=E9=99=90?= 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 | 4 +++- src/views/cost/rawMaterialCost/index.vue | 4 +++- src/views/cost/rawMaterialCostHis/index.vue | 4 +++- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/views/cost/energyCost/index.vue b/src/views/cost/energyCost/index.vue index 78dd9871..75a4ac39 100644 --- a/src/views/cost/energyCost/index.vue +++ b/src/views/cost/energyCost/index.vue @@ -92,7 +92,9 @@ export default { param: 'searchTime', }, { - type: 'button', + type: this.$auth.hasPermi('cost:energyCost:query') + ? 'button' + : '', btnName: '查询', name: 'search', color: 'primary', diff --git a/src/views/cost/energyCostHis/index.vue b/src/views/cost/energyCostHis/index.vue index 8c13a352..a09303c1 100644 --- a/src/views/cost/energyCostHis/index.vue +++ b/src/views/cost/energyCostHis/index.vue @@ -116,7 +116,9 @@ export default { defaultSelect: [], }, { - type: 'button', + type: this.$auth.hasPermi('cost:energyCostHis:query') + ? 'button' + : '', btnName: '查询', name: 'search', color: 'primary', diff --git a/src/views/cost/rawMaterialConfig/index.vue b/src/views/cost/rawMaterialConfig/index.vue index fec55cfb..b7a6fa7e 100644 --- a/src/views/cost/rawMaterialConfig/index.vue +++ b/src/views/cost/rawMaterialConfig/index.vue @@ -124,7 +124,9 @@ export default { filterable: true, }, { - type: 'button', + type: this.$auth.hasPermi('cost:rawMaterialConfig:query') + ? 'button' + : '', btnName: '查询', name: 'search', color: 'primary', diff --git a/src/views/cost/rawMaterialCost/index.vue b/src/views/cost/rawMaterialCost/index.vue index 1de8f050..3e75cd49 100644 --- a/src/views/cost/rawMaterialCost/index.vue +++ b/src/views/cost/rawMaterialCost/index.vue @@ -97,7 +97,9 @@ export default { param: 'searchTime', }, { - type: 'button', + type: this.$auth.hasPermi('cost:rawMaterialCost:query') + ? 'button' + : '', btnName: '查询', name: 'search', color: 'primary', diff --git a/src/views/cost/rawMaterialCostHis/index.vue b/src/views/cost/rawMaterialCostHis/index.vue index 7a69704a..a0cd6f5d 100644 --- a/src/views/cost/rawMaterialCostHis/index.vue +++ b/src/views/cost/rawMaterialCostHis/index.vue @@ -115,7 +115,9 @@ export default { defaultSelect: [], }, { - type: 'button', + type: this.$auth.hasPermi('cost:rawMaterialCostHis:query') + ? 'button' + : '', btnName: '查询', name: 'search', color: 'primary', -- 2.24.3