From 5ccb9297e11314a903de819a04db1c44b736ef04 Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Thu, 11 Apr 2024 11:18:08 +0800 Subject: [PATCH 1/2] 4.11 --- .../contrastAnalysis/components/barChart.vue | 4 ---- .../trendAnalysis/components/lineChart.vue | 6 +++--- .../energy/analysis/trendAnalysis/index.vue | 4 +++- .../components/AddTable.vue | 8 +++++++ .../components/energyQuantityManualAdd.vue | 1 + .../energyLimit/components/energyLimitAdd.vue | 21 +++++++++++++++---- 6 files changed, 32 insertions(+), 12 deletions(-) diff --git a/src/views/energy/analysis/contrastAnalysis/components/barChart.vue b/src/views/energy/analysis/contrastAnalysis/components/barChart.vue index c612503c..714f516f 100644 --- a/src/views/energy/analysis/contrastAnalysis/components/barChart.vue +++ b/src/views/energy/analysis/contrastAnalysis/components/barChart.vue @@ -76,10 +76,6 @@ export default { name: this.chartData[i].objName + this.chartData[i].objCode, type: 'bar', barMaxWidth: 20, - label: { - show: true, - position: 'top', - }, data: [], }; legendData.push(this.chartData[i].objName + this.chartData[i].objCode); diff --git a/src/views/energy/analysis/trendAnalysis/components/lineChart.vue b/src/views/energy/analysis/trendAnalysis/components/lineChart.vue index ce62c734..a49b6246 100644 --- a/src/views/energy/analysis/trendAnalysis/components/lineChart.vue +++ b/src/views/energy/analysis/trendAnalysis/components/lineChart.vue @@ -68,9 +68,9 @@ export default { var option = { color: ['#288AFF'], - // tooltip: { - // trigger: 'axis' - // }, + tooltip: { + trigger: 'axis', + }, grid: { left: '4%', right: '1%', diff --git a/src/views/energy/analysis/trendAnalysis/index.vue b/src/views/energy/analysis/trendAnalysis/index.vue index a06bc090..d42b7b55 100644 --- a/src/views/energy/analysis/trendAnalysis/index.vue +++ b/src/views/energy/analysis/trendAnalysis/index.vue @@ -57,8 +57,10 @@ export default { let listObj = { useNum: '消耗量' }; // 数据 for (let i = 0; i < arr.length; i++) { let obj = {}; + let fName = arr[i].time.slice(0, 4); + let lName = arr[i].time.slice(4, 6); obj.prop = arr[i].time; - obj.label = arr[i].time; + obj.label = fName + ' 第 ' + lName + ' 周'; obj.minWidth = 100; tempX.push(obj); listObj[arr[i].time] = arr[i].useNum || null; diff --git a/src/views/energy/base/energyQuantityManual/components/AddTable.vue b/src/views/energy/base/energyQuantityManual/components/AddTable.vue index 2b2c463a..b56df97d 100644 --- a/src/views/energy/base/energyQuantityManual/components/AddTable.vue +++ b/src/views/energy/base/energyQuantityManual/components/AddTable.vue @@ -45,6 +45,7 @@ @@ -70,6 +71,13 @@ export default { return []; }, }, + isEdit: { + type: Boolean, + required: true, + default: () => { + return false; + }, + }, }, data() { return {}; diff --git a/src/views/energy/base/energyQuantityManual/components/energyQuantityManualAdd.vue b/src/views/energy/base/energyQuantityManual/components/energyQuantityManualAdd.vue index ceeb44c8..e2f3bc22 100644 --- a/src/views/energy/base/energyQuantityManual/components/energyQuantityManualAdd.vue +++ b/src/views/energy/base/energyQuantityManual/components/energyQuantityManualAdd.vue @@ -42,6 +42,7 @@ diff --git a/src/views/energy/monitoring/energyLimit/components/energyLimitAdd.vue b/src/views/energy/monitoring/energyLimit/components/energyLimitAdd.vue index 531b29c0..7ed3e7ee 100644 --- a/src/views/energy/monitoring/energyLimit/components/energyLimitAdd.vue +++ b/src/views/energy/monitoring/energyLimit/components/energyLimitAdd.vue @@ -66,7 +66,7 @@ placeholder="请选择" style="width: 100%"> @@ -154,6 +154,7 @@ import { createEnergyLimit, getEnergyParamList, } from '@/api/monitoring/energyLimit'; +import { energyTableGet } from '@/api/base/energyQuantityManual'; export default { name: 'energyLimitAdd', props: { @@ -203,6 +204,7 @@ export default { { required: true, message: '指标类型不能为空', trigger: 'change' }, ], }, + tableNameList: [], detailList: [], }; }, @@ -267,11 +269,22 @@ export default { } }, toggleType() { - if (this.form.energyTypeId && this.form.type) { - this.getDetailList(); - this.form.plcParamId = ''; + if (this.form.energyTypeId && this.form.method == 2) { + this.form.tableName = ''; + this.getTableNameList(this.form.energyTypeId); } }, + // 获取能源表名list + getTableNameList(id) { + energyTableGet({ energyTypeId: id }).then((res) => { + this.tableNameList = res.data.tableObjs || []; + if (this.tableNameList.length === 0) { + this.$modal.msgWarning( + '当前能源类型暂无配置表名,请先到《表名配置》页面配置' + ); + } + }); + }, // 递归处理分类回显问题 changeDetSelect(key, treeData) { let arr = []; // 递归时操作的数组 -- 2.45.2 From 5d3622bf6277f6ccfb85ee02eb7acb2dbd64cb9e Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Thu, 11 Apr 2024 15:22:09 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/groupTeam/components/statusBtn.vue | 86 +- .../groupTeam/components/workerOperate.vue | 74 +- src/views/group/base/groupTeam/index.vue | 2 +- .../group/base/groupTeamScheduling/index.vue | 1112 +++++++++-------- .../group/monitoring/groupTeamView/index.vue | 2 +- .../group/monitoring/teamProduction/index.vue | 2 +- src/views/order/base/orderGroup/index.vue | 43 +- src/views/order/base/orderManage/index.vue | 42 +- .../orderCompletionMonitoring/index.vue | 11 +- .../voc/vocDetectionHistory/index.vue | 8 +- .../voc/vocDetectionIndication/index.vue | 15 +- .../wasteGasDetectionHistory/index.vue | 8 +- .../wasteGasDetectionIndication/index.vue | 15 +- .../wasteWaterDetectionHistory/index.vue | 6 +- .../wasteWaterDetectionIndication/index.vue | 10 +- 15 files changed, 829 insertions(+), 607 deletions(-) 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: '删除', -- 2.45.2