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 @@ + + + + + {{ $route.params.id }} + + + + + + + +