From 1b670dc0ac040c93b8cc044964077e645c4570e8 Mon Sep 17 00:00:00 2001 From: g7hoo Date: Wed, 28 Sep 2022 14:15:16 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E8=AE=BE=E5=A4=87=E5=88=86=E7=BB=84?= =?UTF-8?q?=E6=8A=A5=E8=AD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base-dialog/addOrUpdate/index.vue | 6 +-- src/i18n/en.js | 1 + src/i18n/zh-CN.js | 1 + .../monitoring/equipmentGroupAlarm.vue | 43 +++++++++++++------ 4 files changed, 36 insertions(+), 15 deletions(-) diff --git a/src/components/base-dialog/addOrUpdate/index.vue b/src/components/base-dialog/addOrUpdate/index.vue index 8f7cd52..c6639bd 100644 --- a/src/components/base-dialog/addOrUpdate/index.vue +++ b/src/components/base-dialog/addOrUpdate/index.vue @@ -383,14 +383,14 @@ export default { }).then(({ data: res }) => { if (res && res.code === 0) { const dataFormKeys = Object.keys(this.dataForm) - console.log('data form keys: ', dataFormKeys, pick(res.data, dataFormKeys)) + // console.log('data form keys: ', dataFormKeys, pick(res.data, dataFormKeys)) this.dataForm = pick(res.data, dataFormKeys) // LABEL: FILE_RELATED /** 对文件下载进行分流 */ this.fileList = {} if (this.dataForm.files) { - console.log('files: ', this.dataForm.files) + // console.log('files: ', this.dataForm.files) this.dataForm.files.forEach(file => { // const fileName = file.fileUrl.split('/').pop() /** [1] 处理 fileList */ @@ -465,7 +465,7 @@ export default { this.$set(this.dataForm, 'fileIds', fileIds) } - console.log('before send: ', this.dataForm) + // console.log('before send: ', this.dataForm) this.$http({ url: this.$http.adornUrl(urls[btn.name].url), diff --git a/src/i18n/en.js b/src/i18n/en.js index 86863aa..9386e26 100644 --- a/src/i18n/en.js +++ b/src/i18n/en.js @@ -208,6 +208,7 @@ t.alarm.level = 'Alarm Level' t.alarm.content = 'Alarm Content' t.alarm.source = 'Alarm Source' t.alarm.det = 'Alarm Details' +t.alarm.externalCode = 'External Code' t.report = {} t.report.name = 'Report Name' diff --git a/src/i18n/zh-CN.js b/src/i18n/zh-CN.js index 049d9a1..185f19c 100644 --- a/src/i18n/zh-CN.js +++ b/src/i18n/zh-CN.js @@ -214,6 +214,7 @@ t.alarm.level = '报警级别' t.alarm.content = '报警内容' t.alarm.source = '报警来源' t.alarm.det = '报警详细内容' +t.alarm.externalCode = '外部编码' t.report = {} t.report.name = '报表名称' diff --git a/src/views/modules/monitoring/equipmentGroupAlarm.vue b/src/views/modules/monitoring/equipmentGroupAlarm.vue index 6df3a32..c906148 100644 --- a/src/views/modules/monitoring/equipmentGroupAlarm.vue +++ b/src/views/modules/monitoring/equipmentGroupAlarm.vue @@ -2,26 +2,38 @@
- {{ $route.params.groupName }}{{ $route.params.groupName || '--' }} - {{ $route.params.groupCode }} + {{ $route.params.groupCode || '--' }}
- - {{ $t('add') }} + + + + + {{ $t('query') }} + {{ $t('add') }}
- + { if (data && data.code === 0) { this.dataList = data.data.list