From a0253cc235e0117b642806847449dd697907583d Mon Sep 17 00:00:00 2001 From: g7hoo Date: Tue, 27 Sep 2022 15:32:38 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E8=AE=BE=E5=A4=87=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/en.js | 1 + src/i18n/zh-CN.js | 1 + .../monitoring/equipmentCurrentState.vue | 29 +++--- .../equipmentHistoricalParameters.vue | 97 +++++++++++++++++++ 4 files changed, 115 insertions(+), 13 deletions(-) create mode 100644 src/views/modules/monitoring/equipmentHistoricalParameters.vue diff --git a/src/i18n/en.js b/src/i18n/en.js index 914ef63..b3fd4f7 100644 --- a/src/i18n/en.js +++ b/src/i18n/en.js @@ -58,6 +58,7 @@ t.routes['设备分组'] = 'Equipment Groups' t.routes['设备信息'] = 'Equipment Details' t.routes['设备参数状态监控'] = 'Current Equipment State' t.routes['设备分组报警信息'] = 'Equipment Group Alarm' +t.routes['设备历史参数'] = 'Equipment Historical Parameters' t.routes['质量检测类型'] = 'Quality Inpection Types' t.routes['质量检测信息'] = 'Quality Inpection Details' diff --git a/src/i18n/zh-CN.js b/src/i18n/zh-CN.js index 1762a8d..707fa0d 100644 --- a/src/i18n/zh-CN.js +++ b/src/i18n/zh-CN.js @@ -59,6 +59,7 @@ t.routes['设备分组'] = '设备分组' t.routes['设备信息'] = '设备信息' t.routes['设备参数状态监控'] = '设备参数状态监控' t.routes['设备分组报警信息'] = '设备分组报警信息' +t.routes['设备历史参数'] = '设备历史参数' t.routes['质量检测类型'] = '质量检测类型' t.routes['质量检测信息'] = '质量检测信息' diff --git a/src/views/modules/monitoring/equipmentCurrentState.vue b/src/views/modules/monitoring/equipmentCurrentState.vue index fdc160c..3b73931 100644 --- a/src/views/modules/monitoring/equipmentCurrentState.vue +++ b/src/views/modules/monitoring/equipmentCurrentState.vue @@ -75,7 +75,14 @@ const tableConfigs = [ }, { prop: 'quantityTime', name: i18n.t('realtime.productionSnapshotTime'), filter: timeFilter }, { prop: 'statusTime', name: i18n.t('realtime.statusSnapshotTime'), filter: timeFilter }, - { prop: 'alarm', name: i18n.t('realtime.recentParamValue'), buttonContent: i18n.t('realtime.view'), subcomponent: TableTextComponent, actionName: 'view-alarm' } + { + prop: 'alarm', + name: i18n.t('realtime.recentParamValue'), + buttonContent: i18n.t('realtime.view'), + subcomponent: TableTextComponent, + emitFullData: true, + actionName: 'view-alarm' + } // { prop: 'operations', name: i18n.t('handle'), fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] } ] @@ -186,23 +193,19 @@ export default { selectionChangeHandle(val) { this.dataListSelections = val }, - handleOperations({ type, data: id }) { + handleOperations({ type, data }) { switch (type) { case 'view-alarm': - const { name, code } = this.dataList.find(item => item.id === id) + const { equipmentId: id } = data this.$router.push({ - name: 'monitoring-equipmentGroupAlarm', - params: { - groupName: name, - groupCode: code, - id - } + name: 'monitoring-equipmentHistoricalParameters', + params: { id } }) break - case 'edit': - return this.addOrUpdateHandle(id) - case 'delete': - return this.deleteHandle(id) + // case 'edit': + // return this.addOrUpdateHandle(id) + // case 'delete': + // return this.deleteHandle(id) } }, // 新增 / 修改 diff --git a/src/views/modules/monitoring/equipmentHistoricalParameters.vue b/src/views/modules/monitoring/equipmentHistoricalParameters.vue new file mode 100644 index 0000000..61ec2e3 --- /dev/null +++ b/src/views/modules/monitoring/equipmentHistoricalParameters.vue @@ -0,0 +1,97 @@ + + +