From 64ee3cb64e469b64b298b437477ecc46b11d5ed4 Mon Sep 17 00:00:00 2001 From: g7hoo Date: Fri, 2 Sep 2022 09:49:14 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=AE=8C=E6=88=90=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=9A=84=E5=9B=BD=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/base-detail-page/index.vue | 2 +- src/components/base-dialog/AttrForm/index.vue | 6 +- .../base-dialog/addOrUpdate/index.vue | 2 +- src/i18n/en.js | 4 +- src/i18n/zh-CN.js | 16 +++++ src/views/modules/monitoring/equipment.vue | 72 +++++++++---------- .../equipmentAlarmLog-add-or-update.vue | 2 +- .../modules/monitoring/equipmentAlarmLog.vue | 4 +- .../equipmentAttr-add-or-update.vue | 2 +- .../equipmentFile-add-or-update.vue | 2 +- .../modules/monitoring/equipmentFile.vue | 4 +- .../modules/monitoring/equipmentGroup.vue | 4 +- .../monitoring/equipmentGroupAlarm.vue | 4 +- src/views/modules/monitoring/equipmentPlc.vue | 4 +- .../monitoring/equipmentPlcConnect.vue | 6 +- .../equipmentPlcParam-add-or-update.vue | 2 +- .../modules/monitoring/equipmentPlcParam.vue | 4 +- .../equipmentQuantity-add-or-update.vue | 2 +- .../modules/monitoring/equipmentQuantity.vue | 6 +- .../equipmentStatusLog-add-or-update.vue | 2 +- .../modules/monitoring/equipmentStatusLog.vue | 6 +- .../modules/monitoring/equipmentType.vue | 8 +-- .../equipmentTypeFile-add-or-update.vue | 2 +- .../modules/monitoring/equipmentTypeFile.vue | 4 +- .../modules/monitoring/equipmentattr.vue | 4 +- src/views/modules/monitoring/factory.vue | 4 +- src/views/modules/monitoring/product.vue | 4 +- src/views/modules/monitoring/productArrt.vue | 4 +- .../modules/monitoring/productionLine.vue | 4 +- .../monitoring/productionLineRecSch.vue | 4 +- .../productionlinerecsch-add-or-update.vue | 2 +- .../monitoring/qualityInspectionDet.vue | 4 +- .../monitoring/qualityInspectionRecord.vue | 4 +- .../monitoring/qualityInspectionType.vue | 4 +- .../modules/monitoring/reportCategory.vue | 4 +- src/views/modules/monitoring/reportDetail.vue | 4 +- .../monitoring/reportSheet-add-or-update.vue | 2 +- src/views/modules/monitoring/reportSheet.vue | 4 +- .../reportSheetCategory-add-or-update.vue | 2 +- .../monitoring/reportSheetCategory.vue | 4 +- .../monitoring/sysfile-add-or-update.vue | 2 +- src/views/modules/monitoring/sysfile.vue | 4 +- src/views/modules/monitoring/sysfileType.vue | 4 +- .../monitoring/sysfiletype-add-or-update.vue | 2 +- .../modules/monitoring/workShopSection.vue | 4 +- .../monitoring/workShopSectionEquipment.vue | 4 +- .../monitoring/workshopSectionDialog.vue | 8 +-- .../workshopSectionDialogAttrForm.vue | 2 +- ...workshopsectionequipment-add-or-update.vue | 2 +- 49 files changed, 139 insertions(+), 121 deletions(-) diff --git a/src/components/base-detail-page/index.vue b/src/components/base-detail-page/index.vue index 5688371..59aa109 100644 --- a/src/components/base-detail-page/index.vue +++ b/src/components/base-detail-page/index.vue @@ -93,7 +93,7 @@ import { pick } from 'lodash/object' // 标题 for i18n const title = { - detail: '详情', + detail: i18n.t('detail'), add: i18n.t('add'), edit: '编辑' } diff --git a/src/components/base-dialog/AttrForm/index.vue b/src/components/base-dialog/AttrForm/index.vue index f54a0e2..0abe88f 100644 --- a/src/components/base-dialog/AttrForm/index.vue +++ b/src/components/base-dialog/AttrForm/index.vue @@ -201,7 +201,7 @@ export default { deleteHandle(id) { var ids = id ? [id] : [] - this.$confirm(`确定对id=${ids.join(',')}进行${id ? i18n.t('delete') : i18n.t('deleteBatch')}操作?`, '提示', { + this.$confirm(`确定对id=${ids.join(',')}进行${id ? i18n.t('delete') : i18n.t('deleteBatch')}操作?`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -213,7 +213,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { @@ -246,7 +246,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/components/base-dialog/addOrUpdate/index.vue b/src/components/base-dialog/addOrUpdate/index.vue index 174403c..d62fba8 100644 --- a/src/components/base-dialog/addOrUpdate/index.vue +++ b/src/components/base-dialog/addOrUpdate/index.vue @@ -108,7 +108,7 @@ import { pick } from 'lodash/object' import i18n from '@/i18n' // 标题 for i18n const title = { - detail: '详情', + detail: i18n.t('detail'), add: i18n.t('add'), edit: '编辑' } diff --git a/src/i18n/en.js b/src/i18n/en.js index 73147aa..ba8a06f 100644 --- a/src/i18n/en.js +++ b/src/i18n/en.js @@ -86,6 +86,8 @@ t.login.captcha = 'Validation Code' t.login.demo = 'Demo' t.login.copyright = 'CNBM' - +t.prompt = {} +t.prompt.title = 'Prompt' +t.prompt.info = 'Are you sure to {handle}?' export default t \ No newline at end of file diff --git a/src/i18n/zh-CN.js b/src/i18n/zh-CN.js index 3afdf01..ff6d384 100644 --- a/src/i18n/zh-CN.js +++ b/src/i18n/zh-CN.js @@ -104,6 +104,12 @@ t.produceTime = '生产日期' t.enterTime = '进厂日期' t.manufacturer = '制造商' +t.hints = {} +t.hints.date = '请选择日期' +t.hints.number = '请输入正确的数值' +t.hints.upload2m = '上传文件大小不要超过 2mb (2048kb)' +t.hints.upload2mPic = '上传图片文件,且大小不要超过 2mb (2048kb)' + t.factory = {} t.factory.title = '工厂' t.factory.name = '工厂名称' @@ -179,6 +185,16 @@ t.eq.groupcode = '分组编码' t.eq.excode = '设备外部代码' t.eq.input = '上片数据设备' t.eq.output = '下片数据设备' +t.eq.tvalue = '设备TT值' +t.eq.processingTime = '单件产品加工时间(秒)' +t.eq.dtype = '数据类别' +t.eq.dtypenone = '无类别' +t.eq.dtypeinput = '上片数据设备' +t.eq.dtypeoutput = '下片数据设备' +t.eq.upload = '上传资料' +t.eq.image = '设备图片' +t.eq.viewattr = '查看设备属性' + t.pl = {} t.pl.title = '产线' diff --git a/src/views/modules/monitoring/equipment.vue b/src/views/modules/monitoring/equipment.vue index 30731a9..6045a09 100644 --- a/src/views/modules/monitoring/equipment.vue +++ b/src/views/modules/monitoring/equipment.vue @@ -52,15 +52,15 @@ const tableConfigs = [ name: i18n.t('createTime'), filter: timeFilter }, - { prop: 'name', name: '设备名称' }, - { prop: 'code', name: '设备编码' }, - { prop: 'equipmentTypeName', name: '设备类型' }, - { prop: 'groupName', name: '设备分组' }, + { prop: 'name', name: i18n.t('eq.name') }, + { prop: 'code', name: i18n.t('eq.code') }, + { prop: 'equipmentTypeName', name: i18n.t('eq.type') }, + { prop: 'groupName', name: i18n.t('eq.group') }, { prop: 'enName', name: i18n.t('enname') }, - { prop: 'abbr', name: '缩写' }, + { prop: 'abbr', name: i18n.t('abbr') }, { prop: 'details', - name: '详情', + name: i18n.t('detail'), subcomponent: TableTextComponent, actionName: 'view-detail' }, @@ -78,31 +78,31 @@ const addOrUpdateConfigs = { type: 'dialog', infoUrl: '/monitoring/equipment', fields: [ - { name: 'name', label: '设备名称', required: true }, - { name: 'code', label: '设备编码' }, + { name: 'name', label: i18n.t('eq.name'), required: true }, + { name: 'code', label: i18n.t('eq.code') }, { name: 'enName', label: i18n.t('enname') }, - { name: 'abbr', label: '缩写' }, + { name: 'abbr', label: i18n.t('abbr') }, { name: 'equipmentTypeId', - label: '设备类型', + label: i18n.t('eq.type'), required: true, type: 'select', options: [] }, { name: 'groupId', - label: '设备分组', + label: i18n.t('eq.group'), required: true, type: 'select', options: [] }, { name: 'productionTime', - label: '生产日期', + label: i18n.t('produceTime'), type: 'date', props: { 'type': 'date', // element-ui 的配置 - 'placeholder': '请选择日期', + 'placeholder': i18n.t('hints.date'), 'value-format': 'yyyy-MM-ddTHH:mm:ss', 'style': { width: '100%' @@ -111,11 +111,11 @@ const addOrUpdateConfigs = { }, { name: 'enterTime', - label: '进厂日期', + label: i18n.t('enterTime'), type: 'date', props: { 'type': 'date', // element-ui 的配置 - 'placeholder': '请选择日期', + 'placeholder': i18n.t('hints.date'), 'value-format': 'yyyy-MM-ddTHH:mm:ss', 'style': { width: '100%' @@ -124,12 +124,12 @@ const addOrUpdateConfigs = { }, { name: 'tvalue', - label: '设备TT值', + label: i18n.t('eq.tvalue'), required: true, rules: [ { type: 'number', - message: '请输入正确的浮点值', + message: i18n.t('hints.number'), trigger: 'blur', transform: val => Number(val) } @@ -137,36 +137,36 @@ const addOrUpdateConfigs = { }, { name: 'processingTime', - label: '单件产品加工时间(秒)', + label: i18n.t('eq.processingTime'), rules: [ { type: 'number', - message: '请输入正确的数值', + message: i18n.t('hints.number'), trigger: 'blur', transform: val => Number(val) } ] }, - { name: 'manufacturer', label: '制造商' }, - { name: 'spec', label: '设备规格' }, + { name: 'manufacturer', label: i18n.t('manufacturer') }, + { name: 'spec', label: i18n.t('eq.grade') }, { name: 'dataType', - label: '数据类别', + label: i18n.t('eq.dtype'), required: true, type: 'select', options: [ - { value: 0, label: '无类别' }, - { value: 1, label: '上片数据设备' }, - { value: 2, label: '下片数据设备' } + { value: 0, label: i18n.t('eq.dtypenone') }, + { value: 1, label: i18n.t('eq.dtypeinput') }, + { value: 2, label: i18n.t('eq.dtypeoutput') } ] }, - { name: 'remark', label: '备注 ' } + { name: 'remark', label: i18n.t('remark') } ], extraComponents: [ { name: 'description', hasModel: true, - label: '功能描述', + label: i18n.t('desc'), fieldType: 'string', component: CKEditor.component, props: { @@ -179,33 +179,33 @@ const addOrUpdateConfigs = { }, { name: 'files', - label: '上传资料', + label: i18n.t('upload'), fieldType: 'array', component: () => import('@/components/base-upload'), props: { // 上传组件需要的 props url: '/monitoring/attachment/uploadFileFormData', extraParams: { typeCode: 'EquipmentInfoFile' }, - buttonContent: '点击上传', - tip: '上传文件大小不要超过 2mb (2048kb)' + buttonContent: i18n.t('upload.button'), + tip: i18n.t('hints.upload2m') } }, { name: 'files', - label: '设备图片', + label: i18n.t('eq.image'), fieldType: 'array', component: () => import('@/components/base-upload'), props: { // 上传组件需要的 props url: '/monitoring/attachment/uploadFileFormData', extraParams: { typeCode: 'EquipmentInfoImage' }, - buttonContent: '点击上传', - tip: '上传图片文件,且大小不要超过 2mb (2048kb)' + buttonContent: i18n.t('upload.button'), + tip: i18n.t('hints.upload2mPic') } } ], subtable: { - title: '查看设备属性', + title: i18n.t('eq.viewattr'), url: '/monitoring/equipmentAttr', relatedField: 'equipmentId', tableConfigs: [ @@ -417,7 +417,7 @@ export default { : this.dataListSelections.map(item => { return item.id }) - this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', { + this.$confirm(`${i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() })}`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -429,7 +429,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/equipmentAlarmLog-add-or-update.vue b/src/views/modules/monitoring/equipmentAlarmLog-add-or-update.vue index a847b3d..9891aa5 100644 --- a/src/views/modules/monitoring/equipmentAlarmLog-add-or-update.vue +++ b/src/views/modules/monitoring/equipmentAlarmLog-add-or-update.vue @@ -143,7 +143,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/equipmentAlarmLog.vue b/src/views/modules/monitoring/equipmentAlarmLog.vue index 3024f1f..bbd3a97 100644 --- a/src/views/modules/monitoring/equipmentAlarmLog.vue +++ b/src/views/modules/monitoring/equipmentAlarmLog.vue @@ -128,7 +128,7 @@ export default { : this.dataListSelections.map(item => { return item.id }) - this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', { + this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -140,7 +140,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/equipmentAttr-add-or-update.vue b/src/views/modules/monitoring/equipmentAttr-add-or-update.vue index f1204df..3e9b339 100644 --- a/src/views/modules/monitoring/equipmentAttr-add-or-update.vue +++ b/src/views/modules/monitoring/equipmentAttr-add-or-update.vue @@ -136,7 +136,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/equipmentFile-add-or-update.vue b/src/views/modules/monitoring/equipmentFile-add-or-update.vue index b60a075..02a8538 100644 --- a/src/views/modules/monitoring/equipmentFile-add-or-update.vue +++ b/src/views/modules/monitoring/equipmentFile-add-or-update.vue @@ -164,7 +164,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/equipmentFile.vue b/src/views/modules/monitoring/equipmentFile.vue index 03fb88e..4e7dc39 100644 --- a/src/views/modules/monitoring/equipmentFile.vue +++ b/src/views/modules/monitoring/equipmentFile.vue @@ -131,7 +131,7 @@ export default { : this.dataListSelections.map(item => { return item.id }) - this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', { + this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -143,7 +143,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/equipmentGroup.vue b/src/views/modules/monitoring/equipmentGroup.vue index 21e602c..a74f9e8 100644 --- a/src/views/modules/monitoring/equipmentGroup.vue +++ b/src/views/modules/monitoring/equipmentGroup.vue @@ -153,7 +153,7 @@ export default { : this.dataListSelections.map(item => { return item.id }) - this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', { + this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -165,7 +165,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/equipmentGroupAlarm.vue b/src/views/modules/monitoring/equipmentGroupAlarm.vue index 001dd08..fa94b02 100644 --- a/src/views/modules/monitoring/equipmentGroupAlarm.vue +++ b/src/views/modules/monitoring/equipmentGroupAlarm.vue @@ -186,7 +186,7 @@ export default { : this.dataListSelections.map(item => { return item.id }) - this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', { + this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -198,7 +198,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/equipmentPlc.vue b/src/views/modules/monitoring/equipmentPlc.vue index c66218f..6f7ef18 100644 --- a/src/views/modules/monitoring/equipmentPlc.vue +++ b/src/views/modules/monitoring/equipmentPlc.vue @@ -166,7 +166,7 @@ export default { : this.dataListSelections.map(item => { return item.id }) - this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', { + this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -178,7 +178,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/equipmentPlcConnect.vue b/src/views/modules/monitoring/equipmentPlcConnect.vue index c75cbc8..a47d47b 100644 --- a/src/views/modules/monitoring/equipmentPlcConnect.vue +++ b/src/views/modules/monitoring/equipmentPlcConnect.vue @@ -44,7 +44,7 @@ const tableConfigs = [ { prop: 'lineName', name: '产线' }, { prop: 'sectionName', name: '工段' }, { prop: 'equName', name: i18n.t('equipment') }, - { prop: 'equCode', name: '设备编码' }, + { prop: 'equCode', name: i18n.t('eq.code') }, { prop: 'plcCode', name: 'PLC编码' }, { prop: 'plcName', name: 'PLC名称' }, { prop: 'plcIp', name: 'PLC IP' }, @@ -232,7 +232,7 @@ export default { : this.dataListSelections.map(item => { return item.id }) - this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', { + this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -244,7 +244,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/equipmentPlcParam-add-or-update.vue b/src/views/modules/monitoring/equipmentPlcParam-add-or-update.vue index 4fb3c6e..018dd39 100644 --- a/src/views/modules/monitoring/equipmentPlcParam-add-or-update.vue +++ b/src/views/modules/monitoring/equipmentPlcParam-add-or-update.vue @@ -234,7 +234,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/equipmentPlcParam.vue b/src/views/modules/monitoring/equipmentPlcParam.vue index b3c7311..9d09379 100644 --- a/src/views/modules/monitoring/equipmentPlcParam.vue +++ b/src/views/modules/monitoring/equipmentPlcParam.vue @@ -130,7 +130,7 @@ export default { : this.dataListSelections.map(item => { return item.id }) - this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', { + this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -142,7 +142,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/equipmentQuantity-add-or-update.vue b/src/views/modules/monitoring/equipmentQuantity-add-or-update.vue index f2d791c..57a1dc4 100644 --- a/src/views/modules/monitoring/equipmentQuantity-add-or-update.vue +++ b/src/views/modules/monitoring/equipmentQuantity-add-or-update.vue @@ -171,7 +171,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/equipmentQuantity.vue b/src/views/modules/monitoring/equipmentQuantity.vue index 17c0915..7d6abb7 100644 --- a/src/views/modules/monitoring/equipmentQuantity.vue +++ b/src/views/modules/monitoring/equipmentQuantity.vue @@ -38,7 +38,7 @@ import TableTextComponent from '@/components/base-table/components/detailCompone const tableConfigs = [ { prop: 'id', name: 'id' }, { prop: 'externalCode', name: '设备外部编码' }, - { prop: 'equipmentName', name: '设备名称' }, + { prop: 'equipmentName', name: i18n.t('eq.name') }, { prop: 'inQuantity', name: '进入设备的数量' }, { prop: 'outQuantity', @@ -136,7 +136,7 @@ export default { : this.dataListSelections.map(item => { return item.id }) - this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', { + this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -148,7 +148,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/equipmentStatusLog-add-or-update.vue b/src/views/modules/monitoring/equipmentStatusLog-add-or-update.vue index 5df35a0..4471bd8 100644 --- a/src/views/modules/monitoring/equipmentStatusLog-add-or-update.vue +++ b/src/views/modules/monitoring/equipmentStatusLog-add-or-update.vue @@ -164,7 +164,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/equipmentStatusLog.vue b/src/views/modules/monitoring/equipmentStatusLog.vue index 0c0a068..6b092b2 100644 --- a/src/views/modules/monitoring/equipmentStatusLog.vue +++ b/src/views/modules/monitoring/equipmentStatusLog.vue @@ -41,7 +41,7 @@ const tableConfigs = [ { prop: 'plcId', name: 'plc id' }, { prop: 'plc', name: 'plc' }, { prop: 'equipmentId', name: '设备id' }, - { prop: 'equipmentName', name: '设备名称' }, + { prop: 'equipmentName', name: i18n.t('eq.name') }, { prop: 'status', name: '状态,0正常 1计划停机 2故障' }, { prop: 'logTime', name: i18n.t('recordTime') }, { prop: 'remark', name: i18n.t('remark') }, @@ -132,7 +132,7 @@ export default { : this.dataListSelections.map(item => { return item.id }) - this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', { + this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -144,7 +144,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/equipmentType.vue b/src/views/modules/monitoring/equipmentType.vue index f46e03c..b4b3a35 100644 --- a/src/views/modules/monitoring/equipmentType.vue +++ b/src/views/modules/monitoring/equipmentType.vue @@ -62,13 +62,13 @@ const addOrUpdateConfigs = { { name: 'files', fieldType: 'array', - label: '上传资料', + label: i18n.t('upload'), component: () => import('@/components/base-upload'), props: { // 上传组件需要的 props url: '/monitoring/attachment/uploadFileFormData', extraParams: { typeCode: 'EquipmentTypeFile' }, - buttonContent: '点击上传', + buttonContent: i18n.t('upload.button'), tip: '上传文件大小不要超过 2mb (2048kb)' } } @@ -177,7 +177,7 @@ export default { : this.dataListSelections.map(item => { return item.id }) - this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', { + this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -189,7 +189,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/equipmentTypeFile-add-or-update.vue b/src/views/modules/monitoring/equipmentTypeFile-add-or-update.vue index 9efa8b0..c5be639 100644 --- a/src/views/modules/monitoring/equipmentTypeFile-add-or-update.vue +++ b/src/views/modules/monitoring/equipmentTypeFile-add-or-update.vue @@ -164,7 +164,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/equipmentTypeFile.vue b/src/views/modules/monitoring/equipmentTypeFile.vue index 8730a53..8db806f 100644 --- a/src/views/modules/monitoring/equipmentTypeFile.vue +++ b/src/views/modules/monitoring/equipmentTypeFile.vue @@ -132,7 +132,7 @@ export default { : this.dataListSelections.map(item => { return item.id }) - this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', { + this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -144,7 +144,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/equipmentattr.vue b/src/views/modules/monitoring/equipmentattr.vue index 2c2c8f2..fd6c8dc 100644 --- a/src/views/modules/monitoring/equipmentattr.vue +++ b/src/views/modules/monitoring/equipmentattr.vue @@ -126,7 +126,7 @@ export default { : this.dataListSelections.map(item => { return item.id }) - this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', { + this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -138,7 +138,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/factory.vue b/src/views/modules/monitoring/factory.vue index 3f66f95..cb865b5 100644 --- a/src/views/modules/monitoring/factory.vue +++ b/src/views/modules/monitoring/factory.vue @@ -155,7 +155,7 @@ export default { : this.dataListSelections.map(item => { return item.id }) - this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', { + this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -167,7 +167,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/product.vue b/src/views/modules/monitoring/product.vue index 5c19d68..37d8f9d 100644 --- a/src/views/modules/monitoring/product.vue +++ b/src/views/modules/monitoring/product.vue @@ -237,7 +237,7 @@ export default { this.dataListSelections.map(item => { return item.id }) - this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', { + this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -252,7 +252,7 @@ export default { .then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/productArrt.vue b/src/views/modules/monitoring/productArrt.vue index a989cec..429323d 100644 --- a/src/views/modules/monitoring/productArrt.vue +++ b/src/views/modules/monitoring/productArrt.vue @@ -192,7 +192,7 @@ export default { : this.dataListSelections.map(item => { return item.id }) - this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', { + this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -204,7 +204,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/productionLine.vue b/src/views/modules/monitoring/productionLine.vue index 7d43794..bc94c4e 100644 --- a/src/views/modules/monitoring/productionLine.vue +++ b/src/views/modules/monitoring/productionLine.vue @@ -181,7 +181,7 @@ export default { : this.dataListSelections.map(item => { return item.id }) - this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', { + this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -193,7 +193,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/productionLineRecSch.vue b/src/views/modules/monitoring/productionLineRecSch.vue index 1c7da16..880a279 100644 --- a/src/views/modules/monitoring/productionLineRecSch.vue +++ b/src/views/modules/monitoring/productionLineRecSch.vue @@ -123,7 +123,7 @@ export default { : this.dataListSelections.map(item => { return item.id }) - this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', { + this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -135,7 +135,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/productionlinerecsch-add-or-update.vue b/src/views/modules/monitoring/productionlinerecsch-add-or-update.vue index fbdace7..ee113ee 100644 --- a/src/views/modules/monitoring/productionlinerecsch-add-or-update.vue +++ b/src/views/modules/monitoring/productionlinerecsch-add-or-update.vue @@ -101,7 +101,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/qualityInspectionDet.vue b/src/views/modules/monitoring/qualityInspectionDet.vue index 49df591..cfbb8bd 100644 --- a/src/views/modules/monitoring/qualityInspectionDet.vue +++ b/src/views/modules/monitoring/qualityInspectionDet.vue @@ -169,7 +169,7 @@ export default { : this.dataListSelections.map(item => { return item.id }) - this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', { + this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -181,7 +181,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/qualityInspectionRecord.vue b/src/views/modules/monitoring/qualityInspectionRecord.vue index 9442973..5a28498 100644 --- a/src/views/modules/monitoring/qualityInspectionRecord.vue +++ b/src/views/modules/monitoring/qualityInspectionRecord.vue @@ -247,7 +247,7 @@ export default { : this.dataListSelections.map(item => { return item.id }) - this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', { + this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -259,7 +259,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/qualityInspectionType.vue b/src/views/modules/monitoring/qualityInspectionType.vue index afb6cfb..3a18527 100644 --- a/src/views/modules/monitoring/qualityInspectionType.vue +++ b/src/views/modules/monitoring/qualityInspectionType.vue @@ -140,7 +140,7 @@ export default { : this.dataListSelections.map(item => { return item.id }) - this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', { + this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -152,7 +152,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/reportCategory.vue b/src/views/modules/monitoring/reportCategory.vue index 3a7ad2d..ee58493 100644 --- a/src/views/modules/monitoring/reportCategory.vue +++ b/src/views/modules/monitoring/reportCategory.vue @@ -138,7 +138,7 @@ export default { : this.dataListSelections.map(item => { return item.id }) - this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', { + this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -150,7 +150,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/reportDetail.vue b/src/views/modules/monitoring/reportDetail.vue index 522683f..5a1e930 100644 --- a/src/views/modules/monitoring/reportDetail.vue +++ b/src/views/modules/monitoring/reportDetail.vue @@ -235,7 +235,7 @@ export default { : this.dataListSelections.map(item => { return item.id }) - this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', { + this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -247,7 +247,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/reportSheet-add-or-update.vue b/src/views/modules/monitoring/reportSheet-add-or-update.vue index 1db459a..1dcaef9 100644 --- a/src/views/modules/monitoring/reportSheet-add-or-update.vue +++ b/src/views/modules/monitoring/reportSheet-add-or-update.vue @@ -171,7 +171,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/reportSheet.vue b/src/views/modules/monitoring/reportSheet.vue index fcda21d..34cb8d6 100644 --- a/src/views/modules/monitoring/reportSheet.vue +++ b/src/views/modules/monitoring/reportSheet.vue @@ -124,7 +124,7 @@ export default { : this.dataListSelections.map(item => { return item.id }) - this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', { + this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -136,7 +136,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/reportSheetCategory-add-or-update.vue b/src/views/modules/monitoring/reportSheetCategory-add-or-update.vue index 1deee6a..d14820e 100644 --- a/src/views/modules/monitoring/reportSheetCategory-add-or-update.vue +++ b/src/views/modules/monitoring/reportSheetCategory-add-or-update.vue @@ -150,7 +150,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/reportSheetCategory.vue b/src/views/modules/monitoring/reportSheetCategory.vue index fdc97ec..9c7f94e 100644 --- a/src/views/modules/monitoring/reportSheetCategory.vue +++ b/src/views/modules/monitoring/reportSheetCategory.vue @@ -118,7 +118,7 @@ export default { : this.dataListSelections.map(item => { return item.id }) - this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', { + this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -130,7 +130,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/sysfile-add-or-update.vue b/src/views/modules/monitoring/sysfile-add-or-update.vue index 1615cb8..ff509ae 100644 --- a/src/views/modules/monitoring/sysfile-add-or-update.vue +++ b/src/views/modules/monitoring/sysfile-add-or-update.vue @@ -143,7 +143,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/sysfile.vue b/src/views/modules/monitoring/sysfile.vue index f0c0e62..5a9300c 100644 --- a/src/views/modules/monitoring/sysfile.vue +++ b/src/views/modules/monitoring/sysfile.vue @@ -129,7 +129,7 @@ export default { : this.dataListSelections.map(item => { return item.id }) - this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', { + this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -141,7 +141,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/sysfileType.vue b/src/views/modules/monitoring/sysfileType.vue index 8adaf68..e64319d 100644 --- a/src/views/modules/monitoring/sysfileType.vue +++ b/src/views/modules/monitoring/sysfileType.vue @@ -126,7 +126,7 @@ export default { : this.dataListSelections.map(item => { return item.id }) - this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', { + this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -138,7 +138,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/sysfiletype-add-or-update.vue b/src/views/modules/monitoring/sysfiletype-add-or-update.vue index f232b04..f41a56e 100644 --- a/src/views/modules/monitoring/sysfiletype-add-or-update.vue +++ b/src/views/modules/monitoring/sysfiletype-add-or-update.vue @@ -129,7 +129,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/workShopSection.vue b/src/views/modules/monitoring/workShopSection.vue index 731b2f9..ac49d08 100644 --- a/src/views/modules/monitoring/workShopSection.vue +++ b/src/views/modules/monitoring/workShopSection.vue @@ -166,7 +166,7 @@ export default { : this.dataListSelections.map(item => { return item.id }) - this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', { + this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -178,7 +178,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/workShopSectionEquipment.vue b/src/views/modules/monitoring/workShopSectionEquipment.vue index 542c26d..7445858 100644 --- a/src/views/modules/monitoring/workShopSectionEquipment.vue +++ b/src/views/modules/monitoring/workShopSectionEquipment.vue @@ -119,7 +119,7 @@ export default { : this.dataListSelections.map(item => { return item.id }) - this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? i18n.t('delete') : i18n.t('deleteBatch')}]操作?`, '提示', { + this.$confirm(`${ i18n.t('prompt.info', { handle: id ? i18n.t('delete').toLowerCase() : i18n.t('deleteBatch').toLowerCase() }) }`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -131,7 +131,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { diff --git a/src/views/modules/monitoring/workshopSectionDialog.vue b/src/views/modules/monitoring/workshopSectionDialog.vue index 5e4e1fc..f7fd6a8 100644 --- a/src/views/modules/monitoring/workshopSectionDialog.vue +++ b/src/views/modules/monitoring/workshopSectionDialog.vue @@ -218,8 +218,8 @@ export default { } }, handleDeleteEq(id) { - this.$confirm(`确定删除这条记录吗?`, '提示', { - // this.$confirm(`确定删除 ${id} 吗?`, '提示', { + this.$confirm(`确定删除这条记录吗?`, i18n.t('prompt.title'), { + // this.$confirm(`确定删除 ${id} 吗?`, i18n.t('prompt.title'), { confirmButtonText: i18n.t('confirm'), cancelButtonText: i18n.t('cancel'), type: 'warning' @@ -231,7 +231,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => { @@ -276,7 +276,7 @@ export default { } }).then(({ data: res }) => { this.$message.success({ - message: '操作成功', + message: i18n.t('prompt.success'), onClose: () => { this.$emit('refreshDataList') this.visible = false diff --git a/src/views/modules/monitoring/workshopSectionDialogAttrForm.vue b/src/views/modules/monitoring/workshopSectionDialogAttrForm.vue index f8e5a6c..3e16afa 100644 --- a/src/views/modules/monitoring/workshopSectionDialogAttrForm.vue +++ b/src/views/modules/monitoring/workshopSectionDialogAttrForm.vue @@ -109,7 +109,7 @@ export default { }).then(({ data: res }) => { if (res.data) { this.$message.success({ - message: '操作成功', + message: i18n.t('prompt.success'), duration: 1500, onClose: () => { this.$emit('refresh-list') diff --git a/src/views/modules/monitoring/workshopsectionequipment-add-or-update.vue b/src/views/modules/monitoring/workshopsectionequipment-add-or-update.vue index 404c56a..9555afc 100644 --- a/src/views/modules/monitoring/workshopsectionequipment-add-or-update.vue +++ b/src/views/modules/monitoring/workshopsectionequipment-add-or-update.vue @@ -136,7 +136,7 @@ export default { }).then(({ data }) => { if (data && data.code === 0) { this.$message({ - message: '操作成功', + message: i18n.t('prompt.success'), type: 'success', duration: 1500, onClose: () => {