From aa2e25f49b08e7b495f160e7e1522954bd2f2aec Mon Sep 17 00:00:00 2001 From: Cc Date: Thu, 10 Oct 2024 08:18:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E6=96=87=E8=8B=B1=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 +- src/api/device.js | 2 +- src/config/setting.config.js | 4 +- src/i18n/index.js | 21 + src/i18n/language/en.js | 391 +++++++++++++++++ src/i18n/language/zh.js | 392 ++++++++++++++++++ src/main.js | 5 +- src/store/index.js | 2 +- src/store/modules/user.js | 2 +- src/vab/components/VabAppMain/index.vue | 1 - src/vab/components/VabAvatar/index.vue | 6 +- src/vab/components/VabNavBar/index.vue | 4 +- .../analysis/dfunction/components/elecDay.vue | 28 +- .../analysis/dfunction/components/siteDay.vue | 20 +- .../dfunction/components/waterDay.vue | 28 +- src/views/analysis/dfunction/index.vue | 4 +- src/views/analysis/energy/index.vue | 20 +- .../analysis/equipmentfunction/index.vue | 12 +- .../analysis/facilitiesfunction/index.vue | 36 +- src/views/analysis/factoryData/index.vue | 25 +- .../mfunction/components/elecMonth.vue | 28 +- .../mfunction/components/siteMonth.vue | 42 +- .../mfunction/components/waterMonth.vue | 28 +- src/views/analysis/mfunction/index.vue | 6 +- .../analysis/sensoriotdata/currentData.vue | 14 +- .../analysis/sensoriotdata/historyData.vue | 12 +- src/views/analysis/sensoriotdata/index.vue | 6 +- .../analysis/site/components/copyDevice.vue | 2 +- .../analysis/site/components/deviceEdit.vue | 20 +- .../analysis/site/components/realIndex.vue | 6 +- .../analysis/site/components/siteIndex.vue | 120 ++++-- src/views/analysis/site/index.vue | 2 +- src/views/analysis/water/index.vue | 32 +- src/views/analysis/weekfunction/index.vue | 18 +- src/views/analysis/workmanship/index.vue | 8 +- src/views/department/list/index.vue | 8 +- src/views/dev/alarm/components/add.vue | 6 +- src/views/dev/alarm/components/current.vue | 37 +- src/views/dev/alarm/components/history.vue | 85 ++-- src/views/dev/alarm/components/toTask.vue | 6 +- src/views/dev/alarm/index.vue | 4 +- src/views/dev/apply/components/apply.vue | 62 +-- .../dev/apply/components/applyDetail.vue | 20 +- src/views/dev/apply/components/applyEdit.vue | 20 +- src/views/dev/apply/components/testing.vue | 91 ++-- src/views/dev/apply/components/testingAdd.vue | 16 +- src/views/dev/apply/index.vue | 4 +- src/views/dev/clock/index.vue | 82 ++-- src/views/dev/clock/trajectory.vue | 10 +- src/views/dev/filling/detail.vue | 70 ++-- src/views/dev/filling/index.vue | 46 +- src/views/dev/knowledge/index.vue | 26 +- src/views/dev/maintenance/components/add.vue | 18 +- .../dev/maintenance/components/equipment.vue | 64 +-- .../dev/maintenance/components/online.vue | 100 +++-- .../dev/maintenance/components/repairEdit.vue | 4 +- .../dev/maintenance/components/totask.vue | 8 +- src/views/dev/maintenance/index.vue | 4 +- .../dev/repair/components/repairEdit.vue | 4 +- src/views/dev/repair/index.vue | 68 ++- src/views/dev/staff/index.vue | 8 +- .../dev/task/components/alarm/alarmAdd.vue | 8 +- .../dev/task/components/alarm/feedback.vue | 4 +- src/views/dev/task/components/alarm/index.vue | 63 ++- .../dev/task/components/main/alarmAdd.vue | 8 +- .../dev/task/components/main/feedback.vue | 4 +- src/views/dev/task/components/main/index.vue | 56 ++- .../dev/task/components/other/alarmAdd.vue | 10 +- .../dev/task/components/other/feedback.vue | 4 +- src/views/dev/task/components/other/index.vue | 62 +-- src/views/dev/task/index.vue | 6 +- src/views/dev/vehicle/index.vue | 8 +- src/views/index/chart/alarm.vue | 2 +- .../index/chart/maintenance-personnel.vue | 3 +- src/views/index/chart/maintenance-site.vue | 2 +- src/views/index/chart/work.vue | 2 +- src/views/index/components/SiteSearch.vue | 2 +- src/views/index/index.vue | 112 ++--- src/views/index/index1.vue | 2 + src/views/iot/alarmuser.vue | 18 +- src/views/iot/alarmuser/bindDevice.vue | 2 +- src/views/iot/alarmuser/index.vue | 14 +- src/views/iot/alarmuser/userEdit.vue | 6 +- .../iot/device/components/copyDevice.vue | 4 +- .../iot/device/components/deviceEdit.vue | 38 +- src/views/iot/device/components/frameMap.vue | 15 +- src/views/iot/device/index.vue | 141 ++++--- src/views/iot/group.vue | 6 +- src/views/iot/group/components/groupEdit.vue | 2 +- src/views/iot/group/index.vue | 10 +- src/views/iot/grouping.vue | 16 +- src/views/iot/grouping/groupEdit.vue | 2 +- src/views/iot/grouping/index.vue | 36 +- src/views/iot/police/components/index.vue | 25 +- src/views/iot/police/index.vue | 25 +- src/views/iot/project/components/group.vue | 12 +- .../iot/project/components/groupEdit.vue | 2 +- .../iot/project/components/projectEdit.vue | 12 +- src/views/iot/project/index.vue | 83 ++-- src/views/iot/sensor.vue | 4 +- src/views/iot/sensor/add.vue | 118 +++--- src/views/iot/sensor/index.vue | 76 ++-- src/views/iot/sensor1.vue | 8 +- src/views/iot/sensordata.vue | 10 +- src/views/iot/sensordata/currentData.vue | 30 +- src/views/iot/sensordata/historyData.vue | 30 +- src/views/iot/sensordata/index.vue | 23 +- src/views/iot/sensordata/showdata.vue | 4 +- src/views/iot/trigger.vue | 8 +- src/views/iot/trigger/index.vue | 4 +- src/views/iot/trigger/rule.vue | 46 +- src/views/iot/trigger/ruleEdit.vue | 8 +- src/views/iot/trigger/sensor.vue | 12 +- src/views/iot/trigger/trigger.vue | 57 ++- src/views/iot/trigger/triggerEdit.vue | 8 +- src/views/iot/trigger/triggerTable.vue | 35 +- src/views/iot/trigger/triggerdetail.vue | 12 +- src/views/iot/vehicle/bindProject.vue | 2 +- src/views/iot/vehicle/index.vue | 65 ++- src/views/log/action/index.vue | 30 +- src/views/log/login/index.vue | 29 +- src/views/login/index.vue | 14 +- src/views/login/trialAdd.vue | 4 +- .../maintenance/problemReporting/index.vue | 26 +- src/views/maintenance/team/group/index.vue | 14 +- src/views/maintenance/team/vehicle/index.vue | 10 +- .../maintenance/workorder/junction/index.vue | 22 +- src/views/maintenance/workorder/my/index.vue | 22 +- .../maintenance/workorder/overdue/index.vue | 22 +- .../maintenance/workorder/stay/index.vue | 22 +- src/views/party/flow/bindDevice.vue | 2 +- src/views/party/flow/index.vue | 16 +- src/views/party/flow/showDetail.vue | 6 +- src/views/party/fluorite/index.vue | 15 +- src/views/party/fluorite/videoData.vue | 35 +- src/views/party/gis/index.vue | 4 +- .../components/alarm/components/current.vue | 25 +- .../components/alarm/components/history.vue | 53 ++- .../components/alarm/components/toTask.vue | 6 +- .../server/assets/components/device/index.vue | 133 +++--- .../server/assets/components/police/index.vue | 15 +- .../assets/components/project/index.vue | 75 ++-- .../server/assets/components/run/index.vue | 22 +- .../assets/components/vehicle/index.vue | 65 ++- src/views/server/dataEnquiry/index.vue | 138 +++--- .../server/monitor/components/SiteSearch.vue | 2 +- src/views/server/monitorVideo/index.vue | 31 +- src/views/server/siteDetails/index.vue | 50 ++- src/views/server/siteDetails/only.vue | 22 +- src/views/server/siteDetails/readable.vue | 20 +- src/views/server/siteDetails/site.vue | 4 +- src/views/server/siteDetails/technology.vue | 4 +- src/views/server/siteDetails/video.vue | 16 +- src/views/server/tablefirst/index.vue | 13 +- src/views/server/tablesecond/index.vue | 11 +- src/views/set/develop.vue | 62 ++- src/views/set/develop/dict/index.vue | 14 +- src/views/set/develop/dictdata/index.vue | 10 +- src/views/set/develop/index.vue | 70 +++- src/views/set/global.vue | 14 +- src/views/set/global/index.vue | 12 +- src/views/set/intention/add.vue | 4 +- src/views/set/intention/index.vue | 20 +- src/views/set/manage.vue | 38 +- .../components/applets/appletsIndex.vue | 23 +- .../set/manage/components/role/roleIndex.vue | 21 +- .../set/manage/components/user/manageEdit.vue | 6 +- .../manage/components/user/manageIndex.vue | 46 +- .../manage/components/user/manageProduct.vue | 2 +- src/views/set/manage/index.vue | 46 +- src/views/set/material/components/add.vue | 4 +- src/views/set/material/index.vue | 6 +- src/views/set/set.vue | 4 +- .../set/components/applets/appletsIndex.vue | 12 +- src/views/set/set/components/menuIndex.vue | 12 +- src/views/set/user/components/basic.vue | 2 +- src/views/wechat/menu/index.vue | 8 +- src/views/wechat/reply/default/selectData.vue | 13 +- src/views/wechat/reply/follow/selectData.vue | 13 +- src/views/wechat/reply/keywords/index.vue | 17 +- vue.config.js | 2 +- 181 files changed, 3438 insertions(+), 1649 deletions(-) create mode 100644 src/i18n/index.js create mode 100644 src/i18n/language/en.js create mode 100644 src/i18n/language/zh.js diff --git a/package.json b/package.json index ba9d63d..9cfc844 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lidinghb", "version": "1.0.0", - "author": "chuzhixin", + "author": "Cc", "license": "Mozilla Public License Version 2.0", "private": true, "participants": [ @@ -61,6 +61,7 @@ "vue": "^3.0.4", "vue-baidu-map": "^0.21.22", "vue-echarts": "^6.0.0-rc.6", + "vue-i18n": "^10.0.3", "vue-quill-editor": "^3.0.6", "vue-router": "^4.0.0-rc.6", "vuex": "^4.0.0-rc.2", diff --git a/src/api/device.js b/src/api/device.js index 9cc2e4a..94e0a35 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -50,7 +50,7 @@ export function getDeviceData(data) { if ( data.commPro != '全部协议' && data.commPro != undefined && - data.commPro != '全部' + data.commPro != 'all' ) { param += '&commPro=' + data.commPro; } diff --git a/src/config/setting.config.js b/src/config/setting.config.js index 24d1d79..a6f625a 100644 --- a/src/config/setting.config.js +++ b/src/config/setting.config.js @@ -3,7 +3,7 @@ */ module.exports = { // 标题,此项修改后需要重启项目 (包括初次加载雪花屏的标题 页面的标题 浏览器的标题) - title: '力鼎环保智慧云平台', + title: '', // 标题分隔符 titleSeparator: ' - ', // 标题是否反转 @@ -13,7 +13,7 @@ module.exports = { // 简写 abbreviation: 'vab-pro', // pro版本copyright可随意修改 - copyright: 'chuzhixin Cc ', + copyright: ' Cc ', // 路由模式,是否为hash模式 isHashRouterMode: false, // 不经过token校验的路由 diff --git a/src/i18n/index.js b/src/i18n/index.js new file mode 100644 index 0000000..0c169bb --- /dev/null +++ b/src/i18n/index.js @@ -0,0 +1,21 @@ +import { createI18n } from 'vue-i18n'; + +// 引入各个语言配置文件 + +import zh from './language/zh'; + +import en from './language/en'; + +// 创建vue-i18n实例i18n +const i18n = createI18n({ + legacy: false, // 设置为 false,启用 composition API 模式 + messages: { + en, + zh, + }, + locale: 'en', +}); + +// 暴露i18n + +export default i18n; diff --git a/src/i18n/language/en.js b/src/i18n/language/en.js new file mode 100644 index 0000000..3b6c7c1 --- /dev/null +++ b/src/i18n/language/en.js @@ -0,0 +1,391 @@ +// 创建文件en.js + +const en = { + login: { + username: 'Please enter username/mobile number', + password: 'Please enter password', + login: 'Login', + }, + defalult: { + grzx: 'Personal Center', + tcdl: 'Sign Out', + qsr: 'Please enter', + rq: 'Date', + xzrq: 'Select date', + ksrq: 'Start date', + z: 'to', + jsrq: 'End date', + qxz: 'Please select', + ss: 'Search', + qp: 'Full screen', + qpxs: 'Full screen display', + bf: 'Play', + tz: 'Stop', + bhtp: 'Capture picture', + cz: 'Operation', + zx: 'Write-only', + zx: 'Online', + lx: 'Offline', + chongz: 'Reset', + cx: 'Query', + bj: 'Edit', + sc: 'Delete', + px: 'Sort', + bc: 'Save', + fh: 'Return', + dc: 'Export', + sj: 'Time', + tj: 'Add', + plsc: 'Batch delete', + xj: 'New', + djsc: 'Click to upload', + xq: 'Details', + bj: 'Edit', + }, + trigger: { + cfqgl: 'Trigger management', + cfqgz: 'Trigger rule', + qxzsb: 'Please select device', + tjcfq: 'Add trigger', + xh: 'Serial number', + mc: 'Name', + cftjlx: 'Trigger condition type', + cs: 'Parameter', + cfzq: 'Trigger cycle', + sffsbj: 'Send alarm or not', + s: 'Yes', + f: 'No', + tjcfqgz: 'Add trigger rule', + plyy: 'Batch application', + cfqmc: 'Trigger name', + cftj: 'Trigger condition', + cfcs: 'Trigger parameter', + }, + device: { + tjzd: 'Add site', + hztb: 'Box synchronization', + zdbm: 'Site code', + sydp: 'Home Large Screen', + xmdp: 'Project large screen', + ljzt: 'Connection status', + ztdp: 'Configuration large screen', + lxys: 'Offline delay', + sj: 'Data', + cgq: 'Sensor', + fz: 'Copy', + }, + project: { + xmmc: 'Project name', + qsrxmcm: 'Please enter project name', + rzr: 'Person in charge', + qsrfzr: 'Please enter person in charge', + lxfs: 'Contact information', + dq: 'Region', + tjxm: 'Add project', + jd: 'Longitude', + wd: 'Latitude', + sbm: 'Province code', + smc: 'Province name', + sbma: 'City code', + smcheng: 'City name', + qxbm: 'County code', + qxmc: 'County name', + lxsj: 'Project establishment time', + xmzmc: 'Project team name', + zd: 'Site', + bjyh: 'Alarm user', + }, + grouping: { + zmc: 'Group name', + qsrzmc: 'Please enter project group name', + tjxmz: 'Add project group', + cjsj: 'Creation time', + gxsj: 'Update time', + }, + vehicle: { + cph: 'License plate number', + gsxm: 'Belonging project', + }, + task: { + gjrw: 'Alarm task', + wbrw: 'Maintenance task', + qtrw: 'Other task', + qxzrwzt: 'Please select task status', + rwlx: 'Task type', + rwnr: 'Task content', + clr: 'Handler', + clrlxfs: 'Handler contact information', + wcsj: 'Completion time', + fknr: 'Feedback content', + fltp: 'Feedback picture', + fk: 'Feedback', + }, + staff: { + yhm: 'Username', + xm: 'Name', + sjhm: 'Mobile number', + yx: 'Email', + bdxm: 'Bound project', + }, + maintenance: { + zxbx: 'Online repair reporting', + sbgl: 'Equipment management', + bxr: 'Reporter', + zdlx: 'Site type', + bxxm: 'Reported project', + bxlx: 'Report type', + zdgg: 'Site specification', + bxsj: 'Report time', + bxsbsj: 'Reported equipment name', + bxsmd: 'Report description', + zrw: 'Transfer to task', + sbmc: 'Equipment name', + qsrsbmc: 'Please enter equipment name', + sb: 'Equipment', + pp: 'Brand', + gys: 'Supplier', + xh: 'Model', + bh: 'Number', + gl: 'Power', + bzq: 'Warranty period', + }, + site: { + zdsjhz: 'Site data summary', + wqy: 'Not enabled', + qy: 'Enabled', + qyzt: 'Enable status', + }, + filling: { + xjr: 'Inspector', + qsrxjr: 'Please enter inspector name', + xjsj: 'Inspection time', + }, + apply: { + szsq: 'Water quality application', + szqc: 'Water quality inspection', + sqr: 'Applicant', + qsrsqr: 'Please enter applicant name', + ypsl: 'Sample quantity', + ypqh: 'Sample retrieval', + yplx: 'Sample type', + jcxm: 'Inspection item', + jcbg: 'Inspection report', + bgcj: 'Report generation', + bgyt: 'Report usage', + jzsj: 'Deadline', + cjsj: 'Collection time', + sqsj: 'Application details', + zd: 'Total nitrogen', + ad: 'Ammonia nitrogen', + zl: 'Total phosphorus', + jcrq: 'Inspection date', + js: 'Influent', + cs: 'Effluent', + }, + dfunction: { + slryxbb: 'Daily water volume operation report', + dlryxbb: 'Daily electricity consumption operation report', + xzsj: 'Select time', + qxt: 'Curve chart', + zdyyxbb: 'Monthly site operation report', + slbb: 'Monthly water volume report', + dlyb: 'Monthly electricity consumption report', + y: 'Month', + xmmc: 'Project name', + zdzs: 'Total number of sites', + gzcs: 'Number of failures', + zyxsc: 'Total operation time', + byyxsc: 'This month operation time', + yxl: 'Operation rate', + gzl: 'Failure rate', + }, + sensor: { + tjcgq: 'Add sensor', + cgqmc: 'Sensor name', + csid: 'Transmission ID', + dz: 'Address', + jcqh: 'Register number', + dw: 'Unit', + dxqx: 'Read-write permission', + sjgs: 'Data format', + sfdtxs: 'Display on map page or not', + sxgs: 'Uplink formula', + xsgs: 'Downlink formula', + qsrcgqmc: 'Please enter sensor name', + cgqtp: 'Sensor picture', + dzh: 'Address number', + srdzj: 'Input address number, slave address', + sjjd: 'Data precision', + qsrsjjd: 'Please select data precision', + sxmrz: 'Attribute default value', + sxdaw: 'Attribute unit', + csbz: 'Parameter remarks', + cgdlx: 'Sensor point type', + qsrcgdlx: 'Please select sensor point type', + cgqdw: 'Sensor unit', + qxzcgqdw: 'Please select sensor unit', + dxcx: 'Read-write permission', + qxzdxqx: 'Please select read-write permission', + dtxs: 'Map display', + dwzh: 'Unit conversion', + sfxygjddwzh: 'Need unit conversion according to or not', + qxzsjgs: 'Please select data format', + lssj: 'Historical data', + dqsj: 'Current data', + tp: 'Picture', + cgqsz: 'Sensor value', + qgq: 'Sensor', + ccsj: 'Transmission time', + qxzqgq: 'Please select sensor', + zhi: 'Value', + }, + vehicles: { + clmc: 'Vehicle name', + cltb: 'Vehicle icon', + sbxh: 'Equipment model', + jx: 'Model', + qc: 'Car', + ddc: 'Electric vehicle', + gr: 'Personal', + cw: 'Pet', + fj: 'Aircraft', + qt: 'Other', + yx: 'Wired', + wx: 'Wireless', + smkh: 'Sim card number', + dqsj: 'Expiration time', + jhsj: 'Activation time', + }, + alarm: { + dqbj: 'Current alarm', + lsbj: 'Historical alarm', + bjsj: 'Alarm time', + bjjb: 'Alarm level', + bjlb: 'Alarm category', + bjnr: 'Alarm content', + clr: 'Handler', + ypg: 'Assigned', + wpg: 'Not assigned', + bz: 'Remarks', + zgd: 'Transfer to work order', + qsrclr: 'Please enter handler', + }, + clock: { + dkr: 'Puncher', + qsrdkr: 'Please enter puncher', + dklx: 'Punch type', + qdsj: 'Sign-in time', + qtsj: 'Sign-out time', + dkdd: 'Punch location', + gj: 'Track', + }, + monitorVideo: { + sbid: 'Device ID', + zh: 'Account', + sbxlh: 'Device serial number', + sbmc: 'Device name', + tjsj: 'Add time', + sszd: 'Belonging site', + ljzt: 'Connection status', + }, + dataEnquiry: { + zdmc: 'Site name', + qsrzdmc: 'Please enter site name', + xlh: 'Serial number', + qsrxlh: 'Please enter serial number', + sq: 'Community', + qsrsq: 'Please enter community', + jd: 'Street', + qxzjd: 'Please select street', + txxy: 'Communication protocol', + qxztxxy: 'Please select communication protocol', + qb: 'All', + qbxy: 'All protocols', + zt: 'Status', + qxzzt: 'Please select status', + zdmc: 'Site name', + zdbm: 'Site code', + xlh: 'Serial number', + ljzt: 'Connection status', + ylj: 'Connected', + wlj: 'Not connected', + txxy: 'Communication protocol', + jd: 'Longitude', + wd: 'Latitude', + lxys: 'Offline delay', + xzjdmc: 'Township street name', + sbgg: 'Equipment specification', + lxyzm: 'Offline delay/second', + xm: 'Project', + sbggd: 'Equipment specification/ton', + skjjhm: 'Sim card access number', + sbgy: 'Equipment technology', + sbcz: 'Equipment material', + csbz: 'Effluent standard', + ywry: 'Operation and maintenance personnel', + lxfs: 'Contact information', + sblx: 'Equipment type', + fwyhs: 'Number of served users', + sxsj: 'Online time', + lxsj: 'Offline time', + lxsc: 'Offline duration/minute', + cgq: 'Sensor', + sj: 'Data', + }, + index: { + allTxt: 'All projects', + jjxx: 'Basic information', + zzd: 'Total sites', + yxzd: 'Running sites', + lxzd: 'Offline sites', + syxmyxl: 'Operation rate of all projects', + nhzb: 'Energy consumption index', + ksri: 'Start date', + ljydl: 'Cumulative electricity consumption', + jd: 'Power saving', + yd: 'Power consumption', + js: 'Water saving', + ys: 'Water consumption', + jt: 'Carbon saving', + ljysl: 'Cumulative water consumption', + xjtb: 'Inspection reporting', + kqdk: 'Attendance punching', + ydk: 'Punched', + wdk: 'Not punched', + kqdkcstj: 'Attendance punching statistics', + }, + index1: { + dt: 'Map', + wx: 'Satellite', + }, + siteDetails: { + zddp: 'Site large screen', + zdzt: 'Site configuration', + jksp: 'Monitoring video', + szdbl: 'Water quality compliance rate', + zptp: 'Captured pictures', + zdxx: 'Site information', + zdbh: 'Site number', + xlh: 'Serial number', + wlwk: 'IoT card', + yxzt: 'Operation status', + zx: 'Online', + lx: 'Offline', + sbgg: 'Equipment specification', + csbz: 'Effluent standard', + ffhs: 'Number of served households', + ywry: 'Operation and maintenance personnel', + lxfs: 'Contact information', + yckz: 'Remote control', + kd: 'Readable', + zx: 'Write-only', + csid: 'Transmission ID', + cgqmc: 'Sensor name', + zhi: 'Value', + dw: 'Unit', + dx: 'Read-write', + xfzl: 'Issue command', + }, +}; + +export default en; diff --git a/src/i18n/language/zh.js b/src/i18n/language/zh.js new file mode 100644 index 0000000..38a67d6 --- /dev/null +++ b/src/i18n/language/zh.js @@ -0,0 +1,392 @@ +// 创建文件zh.js + +const zh = { + login: { + username: '请输入用户名/手机号', + password: '请输入密码', + login: '登录', + }, + defalult: { + grzx: '个人中心', + tcdl: '退出登录', + qsr: '请输入', + rq: '日期', + xzrq: '选择日期', + ksrq: '开始日期', + z: '至', + jsrq: '结束日期', + qxz: '请选择', + ss: '搜索', + qp: '全屏', + qpxs: '全屏显示', + bf: '播放', + tz: '停止', + bhtp: '捕获图片', + cz: '操作', + zx: '只写', + zx: '在线', + lx: '离线', + chongz: '重置', + cx: '查询', + bj: '编辑', + sc: '删除', + px: '排序', + bc: '保存', + fh: '返回', + dc: '导出', + sj: '时间', + tj: '添加', + plsc: '批量删除', + xj: '新建', + djsc: '点击上传', + xq: '详情', + bj: ' 编辑', + }, + trigger: { + cfqgl: '触发器管理', + cfqgz: '触发器规则', + qxzsb: '请选择设备', + tjcfq: '添加触发器', + xh: '序号', + mc: '名称', + cftjlx: '触发条件类型', + cs: '参数', + cfzq: '触发周期', + sffsbj: '是否发送报警', + s: '是', + f: '否', + tjcfqgz: '添加触发器规则', + plyy: '批量应用', + cfqmc: '触发器名称', + cftj: '触发条件', + cfcs: '触发参数', + }, + device: { + tjzd: '添加站点', + hztb: '盒子同步', + zdbm: '站点编码', + ljzt: '连接状态', + ztdp: '组态大屏', + sydp: '首页大屏', + xmdp: '项目大屏', + lxys: '离线延时', + sj: '数据', + cgq: '传感器', + fz: '复制', + }, + project: { + xmmc: '项目名称', + qsrxmcm: '请输入项目名称', + rzr: '负责人', + qsrfzr: '请输入负责人', + lxfs: '联系方式', + dq: '地区', + tjxm: '添加项目', + jd: '经度', + wd: '纬度', + sbm: '省编码', + smc: '省名称', + sbma: '市编码', + smcheng: '市名称', + qxbm: '县区编码', + qxmc: '县区名称', + lxsj: '立项时间', + xmzmc: '项目组名称', + zd: '站点', + bjyh: '报警用户', + }, + grouping: { + zmc: '组名称', + qsrzmc: '请输入项目组名称', + tjxmz: '添加项目组', + cjsj: '创建时间', + gxsj: '更新时间', + }, + vehicle: { + cph: '车牌号', + gsxm: '归属项目', + }, + task: { + gjrw: '告警任务', + wbrw: '维保任务', + qtrw: '其他任务', + qxzrwzt: '请选择任务状态', + rwlx: '任务类型', + rwnr: '任务内容', + clr: '处理人', + clrlxfs: '处理人联系方式', + wcsj: '完成时间', + fknr: '反馈内容', + fltp: '反馈图片', + fk: '反馈', + }, + staff: { + yhm: '用户名', + xm: '姓名', + sjhm: '手机号码', + yx: '邮箱', + bdxm: '绑定项目', + }, + + maintenance: { + zxbx: '在线报修', + sbgl: '设备管理', + bxr: '报修人', + zdlx: '站点类型', + bxxm: '报修项目', + bxlx: '报修类型', + zdgg: '站点规格', + bxsj: '报修时间', + bxsbsj: '报修设备名称', + bxsmd: '报修说明', + zrw: '转任务', + sbmc: '设备名称', + qsrsbmc: '请输入设备名称', + sb: '设备', + pp: '品牌', + gys: '供应商', + xh: '型号', + bh: '编号', + gl: '功率', + bzq: '质保期', + }, + site: { + zdsjhz: '站点数据汇总', + wqy: '未启用', + qy: '启用', + qyzt: '启用状态', + }, + filling: { + xjr: '巡检人', + qsrxjr: '请输入巡检人姓名', + xjsj: '巡检时间', + }, + apply: { + szsq: '水质申请', + szqc: '水质检测', + sqr: '申请人', + qsrsqr: '请输入申请人姓名', + ypsl: '样品数量', + ypqh: '样品取回', + yplx: '样品类型', + jcxm: '检测项目', + jcbg: '检测报告', + bgcj: '报告出具', + bgyt: '报告用途', + jzsj: '截止时间', + cjsj: '采集时间', + sqsj: '申请详情', + zd: '总氮', + ad: '氨氮', + zl: '总磷', + jcrq: '检测日期', + js: '进水', + cs: '出水', + }, + dfunction: { + slryxbb: '水量日运行报表', + dlryxbb: '电量日运行报表', + xzsj: '选择时间', + qxt: '曲线图', + zdyyxbb: '站点月运行报表', + slbb: '水量月报', + dlyb: '电量月报', + y: '月', + xmmc: '项目名称', + zdzs: '站点总数', + gzcs: '故障次数', + zyxsc: '总运行时长', + byyxsc: '本月运行时长', + yxl: '运行率', + gzl: '故障率', + }, + sensor: { + tjcgq: '添加传感器', + cgqmc: '传感器名称', + csid: '传输ID', + dz: '地址', + jcqh: '寄存器号', + dw: '单位', + dxqx: '读写权限', + sjgs: '数据格式', + sfdtxs: '是否在地图页面显示', + sxgs: '上行公式', + xsgs: '下行公式', + qsrcgqmc: '请输入传感器名称', + cgqtp: '传感器图片', + dzh: '地址号', + srdzj: '输入地址号,从机地址', + sjjd: '数据精度', + qsrsjjd: '请选择数据精度', + sxmrz: '属性默认值', + sxdaw: '属性单位', + csbz: '参数备注', + cgdlx: '传感点类型', + qsrcgdlx: '请选择传感点类型', + cgqdw: '传感器单位', + qxzcgqdw: '请选择传感器单位', + dxcx: '读写权限', + qxzdxqx: '请选择读写权限', + dtxs: '地图显示', + dwzh: '单位转换', + sfxygjddwzh: '是否需要根据的单位转换', + qxzsjgs: '请选择数据格式', + lssj: '历史数据', + dqsj: '当前数据', + tp: '图片', + cgqsz: '传感器数值', + qgq: '传感器', + ccsj: '传输时间', + qxzqgq: '请选择传感器', + zhi: '值', + }, + vehicles: { + clmc: '车辆名称', + cltb: '车辆图标', + sbxh: '设备型号', + jx: '机型', + qc: '汽车', + ddc: '电动车', + gr: '个人', + cw: '宠物', + fj: '飞机', + qt: '其他', + yx: '有线', + wx: '无线', + smkh: 'Sim卡号', + dqsj: '到期时间', + jhsj: '激活时间', + }, + alarm: { + dqbj: '当前报警', + lsbj: '历史报警', + bjsj: '报警时间', + bjjb: '报警级别', + bjlb: '报警类别', + bjnr: '告警内容', + clr: '处理人', + ypg: '已派工', + wpg: '未派工', + bz: '备注', + zgd: '转工单', + qsrclr: '请输入处理人', + }, + clock: { + dkr: '打卡人', + qsrdkr: '请输入打卡人', + dklx: '打卡类型', + qdsj: '签到时间', + qtsj: '签退时间', + dkdd: '打卡地点', + gj: '轨迹', + }, + monitorVideo: { + sbid: '设备id', + zh: '账户', + sbxlh: '设备序列号', + sbmc: '设备名称', + tjsj: '添加时间', + sszd: '所属站点', + ljzt: '连接状态', + }, + dataEnquiry: { + zdmc: '站点名称', + qsrzdmc: '请输入站点名称', + xlh: '序列号', + qsrxlh: '请输入序列号', + sq: '社区', + qsrsq: '请输入社区', + jd: '街道', + qxzjd: '请选择街道', + txxy: '通信协议', + qxztxxy: '请选择通信协议', + qb: 'all', + qbxy: '全部协议', + zt: '状态', + qxzzt: '请选择状态', + zdmc: '站点名称', + zdbm: '站点编码', + xlh: '序列号', + ljzt: '连接状态', + ylj: '已连接', + wlj: '未连接', + txxy: '通信协议', + jd: '经度', + wd: '纬度', + lxys: '离线延时', + xzjdmc: '乡镇街道名称', + sbgg: '设备规格', + lxyzm: '离线延时/秒', + xm: '项目', + sbggd: '设备规格/吨', + skjjhm: 'sim卡接入号码', + sbgy: '设备工艺', + sbcz: '设备材质', + csbz: '出水标准', + ywry: '运维人员', + lxfs: '联系方式', + sblx: '设备类型', + fwyhs: '服务用户数', + sxsj: '上线时间', + lxsj: '离线时间', + lxsc: '离线时长/分钟', + cgq: '传感器', + sj: '数据', + }, + index: { + allTxt: '所有项目', + jjxx: '基础信息', + zzd: '总站点', + yxzd: '运行站点', + lxzd: '离线站点', + syxmyxl: '所有项目运行率', + nhzb: '能耗指标', + ksri: '开始日期', + ljydl: '累积用电量', + jd: '节电', + yd: '用电', + js: '节水', + ys: '用水', + jt: '节碳', + ljysl: '累积用水量', + xjtb: '巡检填报', + kqdk: '考勤打卡', + ydk: '已打卡', + wdk: '未打卡', + kqdkcstj: '考勤打卡次数统计', + }, + index1: { + dt: '地图', + wx: '卫星', + }, + siteDetails: { + zddp: '站点大屏', + zdzt: '站点组态', + jksp: '监控视频', + szdbl: '水质达标率', + zptp: '抓拍图片', + zdxx: '站点信息', + zdbh: '站点编号', + xlh: '序列号', + wlwk: '物联网卡', + yxzt: '运行状态', + zx: '在线', + lx: '离线', + sbgg: '设备规格', + csbz: '出水标准', + ffhs: '服务户数', + ywry: '运维人员', + lxfs: '联系方式', + yckz: '远程控制', + kd: '可读', + zx: '只写', + csid: '传输id', + cgqmc: '传感器名称', + zhi: '值', + dw: '单位', + dx: '读写', + xfzl: '下发指令', + }, +}; + +export default zh; diff --git a/src/main.js b/src/main.js index e569f38..0effd13 100644 --- a/src/main.js +++ b/src/main.js @@ -5,10 +5,13 @@ import { setupVab } from '@/vab'; import { setupStore } from '@/store'; import { setupRouter } from '@/router'; import '@/vab/styles/tianditu.scss'; -import locale from 'element-plus/lib/locale/lang/zh-cn'; +import locale from 'element-plus/lib/locale/lang/en'; import CKEditor from '@ckeditor/ckeditor5-vue'; const app = createApp(App); +import i18n from './i18n'; +Vue.prototype.$t = (key, value) => i18n.t(key, value); +app.use(i18n); app.use(ElementPlus, { locale }); app.use(CKEditor); /** diff --git a/src/store/index.js b/src/store/index.js index 75b9280..57249f1 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1,5 +1,5 @@ /** - * @author chuzhixin Cc + * @author Cc * @description 导入所有 vuex 模块,自动加入namespaced:true,用于解决vuex命名冲突,请勿修改。 */ import { createStore } from 'vuex'; diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 37cd5c8..1fd4430 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -62,7 +62,7 @@ const actions = { ? '下午好' : '晚上好'; ElNotification.success({ - title: `欢迎登录${title}`, + title: `welcome login ${title}`, message: `${thisTime}!`, position: 'top-right', }); diff --git a/src/vab/components/VabAppMain/index.vue b/src/vab/components/VabAppMain/index.vue index 9c6526c..1d85e88 100644 --- a/src/vab/components/VabAppMain/index.vue +++ b/src/vab/components/VabAppMain/index.vue @@ -14,7 +14,6 @@ Copyright {{ title }} {{ fullYear }} by {{ copyright }} - 开发 diff --git a/src/vab/components/VabAvatar/index.vue b/src/vab/components/VabAvatar/index.vue index 42e5454..611a437 100644 --- a/src/vab/components/VabAvatar/index.vue +++ b/src/vab/components/VabAvatar/index.vue @@ -7,7 +7,7 @@ @click="jumpAlarm" > - 项目大屏 + {{ $t('device.xmdp') }} @@ -33,13 +33,13 @@ - 个人中心 + {{ $t('defalult.grzx') }} - 退出登录 + {{ $t('defalult.tcdl') }} diff --git a/src/vab/components/VabNavBar/index.vue b/src/vab/components/VabNavBar/index.vue index a4c3784..435557a 100644 --- a/src/vab/components/VabNavBar/index.vue +++ b/src/vab/components/VabNavBar/index.vue @@ -19,7 +19,9 @@ :value="item.id" > - 首页大屏 + + {{ $t('device.sydp') }} + diff --git a/src/views/analysis/dfunction/components/elecDay.vue b/src/views/analysis/dfunction/components/elecDay.vue index 7efb210..0fc90b1 100644 --- a/src/views/analysis/dfunction/components/elecDay.vue +++ b/src/views/analysis/dfunction/components/elecDay.vue @@ -4,19 +4,23 @@
- + - + @@ -24,10 +28,14 @@
- 重置 - 查询 + + {{ $t('defalult.chongz') }} + + + {{ $t('defalult.cx') }} + - 导出 + {{ $t('defalult.dc') }}
@@ -48,9 +56,11 @@ align="center" width="150" > - + diff --git a/src/views/analysis/dfunction/components/siteDay.vue b/src/views/analysis/dfunction/components/siteDay.vue index 33ab9e2..95d3bca 100644 --- a/src/views/analysis/dfunction/components/siteDay.vue +++ b/src/views/analysis/dfunction/components/siteDay.vue @@ -4,19 +4,23 @@
- + - + @@ -24,8 +28,12 @@
- 重置 - 查询 + + {{ $t('defalult.chongz') }} + + + {{ $t('defalult.cx') }} +
- + - + @@ -24,10 +28,14 @@
- 重置 - 查询 + + {{ $t('defalult.chongz') }} + + + {{ $t('defalult.cx') }} + - 导出 + {{ $t('defalult.dc') }}
@@ -48,9 +56,11 @@ align="center" width="150" >
- + diff --git a/src/views/analysis/dfunction/index.vue b/src/views/analysis/dfunction/index.vue index e618ddd..aceb6dd 100644 --- a/src/views/analysis/dfunction/index.vue +++ b/src/views/analysis/dfunction/index.vue @@ -1,10 +1,10 @@ - + @@ -109,11 +120,11 @@ 基础项 - + diff --git a/src/views/analysis/mfunction/components/elecMonth.vue b/src/views/analysis/mfunction/components/elecMonth.vue index ca1a320..fba5643 100644 --- a/src/views/analysis/mfunction/components/elecMonth.vue +++ b/src/views/analysis/mfunction/components/elecMonth.vue @@ -4,19 +4,23 @@
- + - + @@ -24,10 +28,14 @@
- 重置 - 查询 + + {{ $t('defalult.chongz') }} + + + {{ $t('defalult.cx') }} + - 导出 + {{ $t('defalult.dc') }}
@@ -48,9 +56,11 @@ align="center" width="150" >
- + diff --git a/src/views/analysis/mfunction/components/siteMonth.vue b/src/views/analysis/mfunction/components/siteMonth.vue index 90075a4..26c3040 100644 --- a/src/views/analysis/mfunction/components/siteMonth.vue +++ b/src/views/analysis/mfunction/components/siteMonth.vue @@ -4,12 +4,16 @@
- + @@ -17,10 +21,14 @@
- 重置 - 查询 + + {{ $t('defalult.chongz') }} + + + {{ $t('defalult.cx') }} + - 导出 + {{ $t('defalult.dc') }}
@@ -33,52 +41,44 @@ style="width: 100%" > - + - + @@ -24,10 +28,14 @@
- 重置 - 查询 + + {{ $t('defalult.chongz') }} + + + {{ $t('defalult.cx') }} + - 导出 + {{ $t('defalult.dc') }}
@@ -48,9 +56,11 @@ align="center" width="150" >
- + diff --git a/src/views/analysis/mfunction/index.vue b/src/views/analysis/mfunction/index.vue index efe7079..29bd595 100644 --- a/src/views/analysis/mfunction/index.vue +++ b/src/views/analysis/mfunction/index.vue @@ -1,13 +1,13 @@ @@ -159,7 +187,7 @@ type="success" size="mini" > - 启用 + {{ $t('site.qy') }} - 未启用 + {{ $t('site.wqy') }} @@ -348,7 +376,7 @@ export default { elementLoadingText: '正在加载...', statusData: [ { - label: '全部', + label: 'all', value: 3, }, { diff --git a/src/views/analysis/site/index.vue b/src/views/analysis/site/index.vue index d719d9c..e1c6149 100644 --- a/src/views/analysis/site/index.vue +++ b/src/views/analysis/site/index.vue @@ -6,7 +6,7 @@ type="card" @tab-click="handleClick" > - + diff --git a/src/views/analysis/water/index.vue b/src/views/analysis/water/index.vue index 73dac20..916d1f3 100644 --- a/src/views/analysis/water/index.vue +++ b/src/views/analysis/water/index.vue @@ -3,13 +3,13 @@ - + - + - + - + - 查询 - 重置 - 导出 + + {{ $t('defalult.cx') }} + + + {{ $t('defalult.chongz') }} + + + {{ $t('defalult.dc') }} + - + diff --git a/src/views/analysis/weekfunction/index.vue b/src/views/analysis/weekfunction/index.vue index 4b09430..d2a2861 100644 --- a/src/views/analysis/weekfunction/index.vue +++ b/src/views/analysis/weekfunction/index.vue @@ -2,7 +2,7 @@
- + - + - + - + - + - 查询 + {{ $t('defalult.cx') }} @@ -72,7 +72,7 @@ > @@ -84,7 +84,7 @@ > diff --git a/src/views/analysis/workmanship/index.vue b/src/views/analysis/workmanship/index.vue index cbd9e9b..341af8f 100644 --- a/src/views/analysis/workmanship/index.vue +++ b/src/views/analysis/workmanship/index.vue @@ -7,11 +7,11 @@ - 导出 + {{ $t('defalult.dc') }} @@ -161,11 +161,11 @@ - 导出 + {{ $t('defalult.dc') }} diff --git a/src/views/department/list/index.vue b/src/views/department/list/index.vue index c9643b5..178829d 100644 --- a/src/views/department/list/index.vue +++ b/src/views/department/list/index.vue @@ -56,7 +56,7 @@ > @@ -71,12 +71,14 @@