diff --git a/src/views/group/base/groupTeam/components/statusBtn.vue b/src/views/group/base/groupTeam/components/statusBtn.vue index 539e17fd..c4a75a53 100644 --- a/src/views/group/base/groupTeam/components/statusBtn.vue +++ b/src/views/group/base/groupTeam/components/statusBtn.vue @@ -1,46 +1,52 @@ diff --git a/src/views/group/base/groupTeam/components/workerOperate.vue b/src/views/group/base/groupTeam/components/workerOperate.vue index 956bf89f..76574ad0 100644 --- a/src/views/group/base/groupTeam/components/workerOperate.vue +++ b/src/views/group/base/groupTeam/components/workerOperate.vue @@ -1,41 +1,51 @@ \ No newline at end of file diff --git a/src/views/group/base/groupTeam/index.vue b/src/views/group/base/groupTeam/index.vue index 09be766c..8281ca16 100644 --- a/src/views/group/base/groupTeam/index.vue +++ b/src/views/group/base/groupTeam/index.vue @@ -125,7 +125,7 @@ export default { color: 'primary', }, { - type: 'separate', + type: this.$auth.hasPermi('base:group-team:create') ? 'separate' : '', }, { type: this.$auth.hasPermi('base:group-team:create') ? 'button' : '', diff --git a/src/views/group/base/groupTeamScheduling/index.vue b/src/views/group/base/groupTeamScheduling/index.vue index 184c6d8e..afe84aa8 100644 --- a/src/views/group/base/groupTeamScheduling/index.vue +++ b/src/views/group/base/groupTeamScheduling/index.vue @@ -1,506 +1,634 @@ diff --git a/src/views/group/monitoring/groupTeamView/index.vue b/src/views/group/monitoring/groupTeamView/index.vue index e248bad2..902211d5 100644 --- a/src/views/group/monitoring/groupTeamView/index.vue +++ b/src/views/group/monitoring/groupTeamView/index.vue @@ -88,7 +88,7 @@ export default { workOrderList: [], workOrderName: '', tableBtn: [ - this.$auth.hasPermi('base:group-team-view:detail') + this.$auth.hasPermi('monitoring:group-team-scheduling:query') ? { type: 'detail', btnName: '详情', diff --git a/src/views/group/monitoring/teamProduction/index.vue b/src/views/group/monitoring/teamProduction/index.vue index 48f00b81..921853e0 100644 --- a/src/views/group/monitoring/teamProduction/index.vue +++ b/src/views/group/monitoring/teamProduction/index.vue @@ -97,7 +97,7 @@ export default { }, tableProps, tableBtn: [ - this.$auth.hasPermi('base:team-production:detail') + this.$auth.hasPermi('monitoring:group-team-scheduling:query') ? { type: 'productionDetail', btnName: '查看', diff --git a/src/views/order/base/orderGroup/index.vue b/src/views/order/base/orderGroup/index.vue index 00c41b07..d4fad27a 100644 --- a/src/views/order/base/orderGroup/index.vue +++ b/src/views/order/base/orderGroup/index.vue @@ -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: '编辑', diff --git a/src/views/order/base/orderManage/index.vue b/src/views/order/base/orderManage/index.vue index f2562f6b..227c70b1 100644 --- a/src/views/order/base/orderManage/index.vue +++ b/src/views/order/base/orderManage/index.vue @@ -15,7 +15,7 @@ @@ -169,12 +169,22 @@ export default { color: 'primary', }, { - type: this.$auth.hasPermi('base:order-manage:create') + type: this.$auth.hasPermiAnd([ + 'base:order:query', + 'base:core-product:query', + 'base:order:create', + ]) ? 'separate' : '', }, { - type: this.$auth.hasPermi('base:order-manage:create') ? 'button' : '', + type: this.$auth.hasPermiAnd([ + 'base:order:query', + 'base:core-product:query', + 'base:order:create', + ]) + ? 'button' + : '', btnName: '新增', name: 'add', color: 'success', @@ -210,7 +220,14 @@ export default { }, } : undefined, - this.$auth.hasPermi('base:order-manage:bindWorkOrder') + this.$auth.hasPermiAnd([ + 'base:order:update', + 'base:core-product:query', + 'base:production-line:query', + 'extend:process-flow:query', + 'base:core-work-order:query', + 'base:order:query', + ]) ? { type: 'bind', btnName: '绑定', @@ -227,7 +244,7 @@ export default { }, } : undefined, - this.$auth.hasPermi('base:order-manage:complete') + this.$auth.hasPermi('base:order:update') ? { type: 'complete', btnName: '完成', @@ -244,7 +261,7 @@ export default { }, } : undefined, - this.$auth.hasPermi('base:order-manage:termination') + this.$auth.hasPermi('base:order:update') ? { type: 'termination', btnName: '终止', @@ -261,7 +278,7 @@ export default { }, } : undefined, - this.$auth.hasPermi('base:order-manage:cancel') + this.$auth.hasPermi('base:order:update') ? { type: 'cancel', btnName: '作废', @@ -278,13 +295,20 @@ export default { }, } : undefined, - this.$auth.hasPermi('base:order-manage:detail') + this.$auth.hasPermiAnd([ + 'base:order:query', + 'extend:process-flow:query', + ]) ? { type: 'detail', btnName: '详情', } : undefined, - this.$auth.hasPermi('base:order-manage:edit') + this.$auth.hasPermiAnd([ + 'base:order:query', + 'base:core-product:query', + 'base:order:update', + ]) ? { type: 'edit', btnName: '编辑', diff --git a/src/views/order/monitoring/orderCompletionMonitoring/index.vue b/src/views/order/monitoring/orderCompletionMonitoring/index.vue index 21f092b0..35215ff6 100644 --- a/src/views/order/monitoring/orderCompletionMonitoring/index.vue +++ b/src/views/order/monitoring/orderCompletionMonitoring/index.vue @@ -181,7 +181,10 @@ export default { list: [], total: 0, tableBtn: [ - this.$auth.hasPermi('base:order-completion-monitoring:orderDet') + this.$auth.hasPermiAnd([ + 'base:order:query', + 'extend:process-flow:query', + ]) ? { type: 'orderDetail', btnName: '详情', @@ -198,7 +201,11 @@ export default { }, } : undefined, - this.$auth.hasPermi('base:order-completion-monitoring:qualityDet') + this.$auth.hasPermiAnd([ + 'base:quality-inspection-record:query', + 'base:core-product:query', + 'base:core-work-order:query', + ]) ? { type: 'qualityDetail', btnName: '质量', diff --git a/src/views/safetyEnvironmental/environmental/voc/vocDetectionHistory/index.vue b/src/views/safetyEnvironmental/environmental/voc/vocDetectionHistory/index.vue index 63607311..a7d1a370 100644 --- a/src/views/safetyEnvironmental/environmental/voc/vocDetectionHistory/index.vue +++ b/src/views/safetyEnvironmental/environmental/voc/vocDetectionHistory/index.vue @@ -99,10 +99,14 @@ export default { color: 'primary', }, { - type: this.$auth.hasPermi('base:voc:export') ? 'separate' : '', + type: this.$auth.hasPermi('base:environmental-check-record:export') + ? 'separate' + : '', }, { - type: this.$auth.hasPermi('base:voc:export') ? 'button' : '', + type: this.$auth.hasPermi('base:environmental-check-record:export') + ? 'button' + : '', btnName: '导出', name: 'export', color: 'primary', diff --git a/src/views/safetyEnvironmental/environmental/voc/vocDetectionIndication/index.vue b/src/views/safetyEnvironmental/environmental/voc/vocDetectionIndication/index.vue index 1cf5b343..e7abdb24 100644 --- a/src/views/safetyEnvironmental/environmental/voc/vocDetectionIndication/index.vue +++ b/src/views/safetyEnvironmental/environmental/voc/vocDetectionIndication/index.vue @@ -103,10 +103,14 @@ export default { color: 'primary', }, { - type: this.$auth.hasPermi('base:voc:create') ? 'separate' : '', + type: this.$auth.hasPermi('base:environmental-check:create') + ? 'separate' + : '', }, { - type: this.$auth.hasPermi('base:voc:create') ? 'button' : '', + type: this.$auth.hasPermi('base:environmental-check:create') + ? 'button' + : '', btnName: '新增', name: 'add', color: 'success', @@ -124,13 +128,16 @@ export default { tableProps, list: [], tableBtn: [ - this.$auth.hasPermi('base:voc:update') + this.$auth.hasPermiAnd([ + 'base:environmental-check:update', + 'base:environmental-check:query', + ]) ? { type: 'edit', btnName: '编辑', } : undefined, - this.$auth.hasPermi('base:voc:delete') + this.$auth.hasPermi('base:environmental-check:delete') ? { type: 'delete', btnName: '删除', diff --git a/src/views/safetyEnvironmental/environmental/wasteGas/wasteGasDetectionHistory/index.vue b/src/views/safetyEnvironmental/environmental/wasteGas/wasteGasDetectionHistory/index.vue index 8f15dd1d..3f6898e4 100644 --- a/src/views/safetyEnvironmental/environmental/wasteGas/wasteGasDetectionHistory/index.vue +++ b/src/views/safetyEnvironmental/environmental/wasteGas/wasteGasDetectionHistory/index.vue @@ -99,10 +99,14 @@ export default { color: 'primary', }, { - type: this.$auth.hasPermi('base:waste-gas:export') ? 'separate' : '', + type: this.$auth.hasPermi('base:environmental-check-record:export') + ? 'separate' + : '', }, { - type: this.$auth.hasPermi('base:waste-gas:export') ? 'button' : '', + type: this.$auth.hasPermi('base:environmental-check-record:export') + ? 'button' + : '', btnName: '导出', name: 'export', color: 'primary', diff --git a/src/views/safetyEnvironmental/environmental/wasteGas/wasteGasDetectionIndication/index.vue b/src/views/safetyEnvironmental/environmental/wasteGas/wasteGasDetectionIndication/index.vue index 9fbb59fb..a438a286 100644 --- a/src/views/safetyEnvironmental/environmental/wasteGas/wasteGasDetectionIndication/index.vue +++ b/src/views/safetyEnvironmental/environmental/wasteGas/wasteGasDetectionIndication/index.vue @@ -103,10 +103,14 @@ export default { color: 'primary', }, { - type: this.$auth.hasPermi('base:waste-gas:create') ? 'separate' : '', + type: this.$auth.hasPermi('base:environmental-check:create') + ? 'separate' + : '', }, { - type: this.$auth.hasPermi('base:waste-gas:create') ? 'button' : '', + type: this.$auth.hasPermi('base:environmental-check:create') + ? 'button' + : '', btnName: '新增', name: 'add', color: 'success', @@ -124,13 +128,16 @@ export default { tableProps, list: [], tableBtn: [ - this.$auth.hasPermi('base:waste-gas:update') + this.$auth.hasPermiAnd([ + 'base:environmental-check:update', + 'base:environmental-check:query', + ]) ? { type: 'edit', btnName: '编辑', } : undefined, - this.$auth.hasPermi('base:waste-gas:delete') + this.$auth.hasPermi('base:environmental-check:delete') ? { type: 'delete', btnName: '删除', diff --git a/src/views/safetyEnvironmental/environmental/wasteWater/wasteWaterDetectionHistory/index.vue b/src/views/safetyEnvironmental/environmental/wasteWater/wasteWaterDetectionHistory/index.vue index 76ac6f92..d4d19596 100644 --- a/src/views/safetyEnvironmental/environmental/wasteWater/wasteWaterDetectionHistory/index.vue +++ b/src/views/safetyEnvironmental/environmental/wasteWater/wasteWaterDetectionHistory/index.vue @@ -99,12 +99,14 @@ export default { color: 'primary', }, { - type: this.$auth.hasPermi('base:waste-water:export') + type: this.$auth.hasPermi('base:environmental-check-record:export') ? 'separate' : '', }, { - type: this.$auth.hasPermi('base:waste-water:export') ? 'button' : '', + type: this.$auth.hasPermi('base:environmental-check-record:export') + ? 'button' + : '', btnName: '导出', name: 'export', color: 'primary', diff --git a/src/views/safetyEnvironmental/environmental/wasteWater/wasteWaterDetectionIndication/index.vue b/src/views/safetyEnvironmental/environmental/wasteWater/wasteWaterDetectionIndication/index.vue index 562671d9..b3ecc484 100644 --- a/src/views/safetyEnvironmental/environmental/wasteWater/wasteWaterDetectionIndication/index.vue +++ b/src/views/safetyEnvironmental/environmental/wasteWater/wasteWaterDetectionIndication/index.vue @@ -103,12 +103,14 @@ export default { color: 'primary', }, { - type: this.$auth.hasPermi('base:waste-water:create') + type: this.$auth.hasPermi('base:environmental-check:create') ? 'separate' : '', }, { - type: this.$auth.hasPermi('base:waste-water:create') ? 'button' : '', + type: this.$auth.hasPermi('base:environmental-check:create') + ? 'button' + : '', btnName: '新增', name: 'add', color: 'success', @@ -126,13 +128,13 @@ export default { tableProps, list: [], tableBtn: [ - this.$auth.hasPermi('base:waste-water:update') + this.$auth.hasPermi('base:environmental-check:update') ? { type: 'edit', btnName: '编辑', } : undefined, - this.$auth.hasPermi('base:waste-water:delete') + this.$auth.hasPermi('base:environmental-check:delete') ? { type: 'delete', btnName: '删除',