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"
>
-
+
- 曲线图
+
+ {{ $t('defalult.qxt') }}
+
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"
>
-
+
- 曲线图
+
+ {{ $t('dfunction.qxt') }}
+
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 @@
-
+
-
+
diff --git a/src/views/analysis/energy/index.vue b/src/views/analysis/energy/index.vue
index 8c8740f..da98a92 100644
--- a/src/views/analysis/energy/index.vue
+++ b/src/views/analysis/energy/index.vue
@@ -7,12 +7,12 @@
- 查询
- 导出
+ {{ $t('defalult.cx') }}
+ {{ $t('defalult.dc') }}
@@ -167,7 +167,7 @@
@@ -183,12 +183,12 @@
- 查询
- 导出
+ {{ $t('defalult.cx') }}
+ {{ $t('defalult.dc') }}
@@ -367,12 +367,12 @@
- 查询
- 导出
+ {{ $t('defalult.cx') }}
+ {{ $t('defalult.dc') }}
diff --git a/src/views/analysis/equipmentfunction/index.vue b/src/views/analysis/equipmentfunction/index.vue
index 3a4c8bc..cc72eba 100644
--- a/src/views/analysis/equipmentfunction/index.vue
+++ b/src/views/analysis/equipmentfunction/index.vue
@@ -7,12 +7,12 @@
- 查询
- 导出
+ {{ $t('defalult.cx') }}
+ {{ $t('defalult.dc') }}
@@ -114,12 +114,12 @@
- 查询
- 导出
+ {{ $t('defalult.cx') }}
+ {{ $t('defalult.dc') }}
diff --git a/src/views/analysis/facilitiesfunction/index.vue b/src/views/analysis/facilitiesfunction/index.vue
index ba1d6c7..a886394 100644
--- a/src/views/analysis/facilitiesfunction/index.vue
+++ b/src/views/analysis/facilitiesfunction/index.vue
@@ -3,13 +3,13 @@
-
+
-
+
-
+
-
+
- 查询
- 重置
- 导出
+
+ {{ $t('defalult.cx') }}
+
+
+ {{ $t('defalult.chongz') }}
+
+
+ {{ $t('defalult.dc') }}
+
@@ -50,19 +56,19 @@
>
@@ -102,9 +108,11 @@
width="200"
align="center"
>
-
+
- 删除
+
+ {{ $t('defalult.sc') }}
+
diff --git a/src/views/analysis/factoryData/index.vue b/src/views/analysis/factoryData/index.vue
index af2a07d..10da37e 100644
--- a/src/views/analysis/factoryData/index.vue
+++ b/src/views/analysis/factoryData/index.vue
@@ -19,7 +19,9 @@
- 查询
+
+ {{ $t('defalult.cx') }}
+
@@ -37,7 +39,7 @@
style="width: 100%; margin: 10px 0"
>
-
+
{{ row.basic['date'] }}
@@ -82,10 +84,19 @@
-
+
- 编辑
- 删除
+
+ {{ $t('defalult.bj') }}
+
+
+ {{ $t('defalult.sc') }}
+
@@ -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"
>
-
+
- 曲线图
+
+ {{ $t('dfunction.qxt') }}
+
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"
>
-
+
- 曲线图
+
+ {{ $t('dfunction.qxt') }}
+
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 @@
-
+
-
+
-
+
diff --git a/src/views/analysis/sensoriotdata/currentData.vue b/src/views/analysis/sensoriotdata/currentData.vue
index 0f45fee..8829ad3 100644
--- a/src/views/analysis/sensoriotdata/currentData.vue
+++ b/src/views/analysis/sensoriotdata/currentData.vue
@@ -2,7 +2,7 @@
-
+
- 重置
+
+ {{ $t('defalult.chongz') }}
+
- 查询
+ {{ $t('defalult.cx') }}
- 导出
+ {{ $t('defalult.dc') }}
@@ -35,7 +37,7 @@
>
@@ -59,7 +61,7 @@
>
diff --git a/src/views/analysis/sensoriotdata/historyData.vue b/src/views/analysis/sensoriotdata/historyData.vue
index 86fca71..02557ca 100644
--- a/src/views/analysis/sensoriotdata/historyData.vue
+++ b/src/views/analysis/sensoriotdata/historyData.vue
@@ -2,7 +2,7 @@
-
+
-
+
- 查询
+ {{ $t('defalult.cx') }}
@@ -41,7 +45,7 @@
>
diff --git a/src/views/analysis/sensoriotdata/index.vue b/src/views/analysis/sensoriotdata/index.vue
index adbb678..5e4a910 100644
--- a/src/views/analysis/sensoriotdata/index.vue
+++ b/src/views/analysis/sensoriotdata/index.vue
@@ -9,7 +9,7 @@
>
@@ -33,11 +33,11 @@
>
-
+
历史数据
diff --git a/src/views/analysis/site/components/copyDevice.vue b/src/views/analysis/site/components/copyDevice.vue
index 7413d6a..dac0cde 100644
--- a/src/views/analysis/site/components/copyDevice.vue
+++ b/src/views/analysis/site/components/copyDevice.vue
@@ -12,7 +12,7 @@
label-width="80px"
label-position="left"
>
-
+
diff --git a/src/views/analysis/site/components/deviceEdit.vue b/src/views/analysis/site/components/deviceEdit.vue
index 314002a..5282114 100644
--- a/src/views/analysis/site/components/deviceEdit.vue
+++ b/src/views/analysis/site/components/deviceEdit.vue
@@ -28,13 +28,13 @@
>
-
+
-
+
-
+
@@ -66,13 +66,13 @@
>
-
+
-
+
-
+
-
+
@@ -119,10 +119,10 @@
>
-
+
-
+
@@ -134,7 +134,7 @@
type="primary"
@click="searchAddress"
>
- 查询
+ {{ $t('defalult.cx') }}
diff --git a/src/views/analysis/site/components/realIndex.vue b/src/views/analysis/site/components/realIndex.vue
index 3a6e2fc..16af740 100644
--- a/src/views/analysis/site/components/realIndex.vue
+++ b/src/views/analysis/site/components/realIndex.vue
@@ -9,7 +9,7 @@
>
@@ -21,13 +21,13 @@
>
diff --git a/src/views/analysis/site/components/siteIndex.vue b/src/views/analysis/site/components/siteIndex.vue
index 4f87824..ea15fc4 100644
--- a/src/views/analysis/site/components/siteIndex.vue
+++ b/src/views/analysis/site/components/siteIndex.vue
@@ -4,25 +4,37 @@
@@ -102,25 +130,25 @@
>
@@ -132,7 +160,7 @@
type="success"
size="mini"
>
- 已连接
+ {{ $t('dataEnquiry.ylj') }}
- 未连接
+ {{ $t('dataEnquiry.wlj') }}
@@ -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 @@
- 编辑
+
+ {{ $t('defalult.bj') }}
+
删除
diff --git a/src/views/dev/alarm/components/add.vue b/src/views/dev/alarm/components/add.vue
index 805d39b..2391ce8 100644
--- a/src/views/dev/alarm/components/add.vue
+++ b/src/views/dev/alarm/components/add.vue
@@ -12,7 +12,7 @@
label-width="80px"
label-position="left"
>
-
+
-
+
-
+
-
+
- 已派工
+ {{ $t('alarm.ypg') }}
- 未派工
+ {{ $t('alarm.wpg') }}
-
+
- 删除
+
+ {{ $t('defalult.sc') }}
+
- 转工单
+ {{ $t('alarm.zgd') }}
@@ -130,7 +137,7 @@ export default {
statusData: [
{
value: 3,
- label: '全部',
+ label: 'all',
},
{
value: 0,
diff --git a/src/views/dev/alarm/components/history.vue b/src/views/dev/alarm/components/history.vue
index 9259276..7aa7b11 100644
--- a/src/views/dev/alarm/components/history.vue
+++ b/src/views/dev/alarm/components/history.vue
@@ -3,28 +3,32 @@
@@ -39,68 +45,70 @@
-
+
- 删除
- 编辑
+
+ {{ $t('defalult.sc') }}
+
+
+ {{ $t('defalult.bj') }}
+
diff --git a/src/views/dev/maintenance/components/online.vue b/src/views/dev/maintenance/components/online.vue
index edeea83..e07197b 100644
--- a/src/views/dev/maintenance/components/online.vue
+++ b/src/views/dev/maintenance/components/online.vue
@@ -3,18 +3,26 @@
-
+
- 反馈
- 编辑
- 删除
+
+ {{ $t('task.fk') }}
+
+
+ {{ $t('defalult.bj') }}
+
+
+ {{ $t('defalult.sc') }}
+
@@ -167,7 +186,7 @@ export default {
},
statusData: [
{
- label: '全部',
+ label: 'all',
value: 3,
},
{
diff --git a/src/views/dev/task/components/main/alarmAdd.vue b/src/views/dev/task/components/main/alarmAdd.vue
index 71041fa..970bcaf 100644
--- a/src/views/dev/task/components/main/alarmAdd.vue
+++ b/src/views/dev/task/components/main/alarmAdd.vue
@@ -31,10 +31,10 @@
>
-
+
-
+
-
+
diff --git a/src/views/dev/task/components/main/feedback.vue b/src/views/dev/task/components/main/feedback.vue
index ec4a1c2..31d7e88 100644
--- a/src/views/dev/task/components/main/feedback.vue
+++ b/src/views/dev/task/components/main/feedback.vue
@@ -7,7 +7,7 @@
label-width="80px"
label-position="left"
>
-
+
@@ -20,7 +20,7 @@
>
-
+
-
+
-
+
- 重置
- 查询
+
+ {{ $t('defalult.chongz') }}
+
+
+ {{ $t('defalult.cx') }}
+
- 导出
+ {{ $t('defalult.dc') }}
- 批量删除
+ {{ $t('defalult.plsc') }}
@@ -48,55 +56,55 @@
@@ -110,15 +118,17 @@
-
+
- 反馈
+ {{ $t('task.fk') }}
- 编辑
+ {{ $t('defalult.bj') }}
+
+
+ {{ $t('defalult.sc') }}
- 删除
@@ -165,7 +175,7 @@ export default {
},
statusData: [
{
- label: '全部',
+ label: 'all',
value: 3,
},
{
@@ -209,7 +219,7 @@ export default {
search() {
this.fetchData();
},
- //导出
+ // {{ $t('defalult.dc')}}
async exportData() {
const url = await taskExport(this.queryForm);
ajax.downloadFile(url, { fileName: '任务.xls' });
diff --git a/src/views/dev/task/components/other/alarmAdd.vue b/src/views/dev/task/components/other/alarmAdd.vue
index 6d44121..7bd358d 100644
--- a/src/views/dev/task/components/other/alarmAdd.vue
+++ b/src/views/dev/task/components/other/alarmAdd.vue
@@ -23,14 +23,14 @@
>
-
+
-
+
-
+
@@ -75,12 +75,12 @@
-
+
diff --git a/src/views/dev/task/components/other/feedback.vue b/src/views/dev/task/components/other/feedback.vue
index f600874..59a1d6c 100644
--- a/src/views/dev/task/components/other/feedback.vue
+++ b/src/views/dev/task/components/other/feedback.vue
@@ -7,7 +7,7 @@
label-width="80px"
label-position="left"
>
-
+
-
+
-
+
-
+
- 重置
-
- 新建
+
+ {{ $t('defalult.chongz') }}
+
+
+ {{ $t('defalult.xj') }}
+
+
+ {{ $t('defalult.cx') }}
- 查询
- 导出
+ {{ $t('defalult.dc') }}
- 批量删除
+ {{ $t('defalult.plsc') }}
@@ -57,55 +65,55 @@
@@ -119,11 +127,17 @@
-
+
- 反馈
- 编辑
- 删除
+
+ {{ $t('task.fk') }}
+
+
+ {{ $t('defalult.bj') }}
+
+
+ {{ $t('defalult.sc') }}
+
@@ -170,7 +184,7 @@ export default {
},
statusData: [
{
- label: '全部',
+ label: 'all',
value: 3,
},
{
diff --git a/src/views/dev/task/index.vue b/src/views/dev/task/index.vue
index 6ce2cfa..996c251 100644
--- a/src/views/dev/task/index.vue
+++ b/src/views/dev/task/index.vue
@@ -1,13 +1,13 @@
-
+
-
+
-
+
diff --git a/src/views/dev/vehicle/index.vue b/src/views/dev/vehicle/index.vue
index e1f8518..2d6d531 100644
--- a/src/views/dev/vehicle/index.vue
+++ b/src/views/dev/vehicle/index.vue
@@ -16,11 +16,15 @@
-
+
{{ item }} ,
diff --git a/src/views/index/chart/alarm.vue b/src/views/index/chart/alarm.vue
index 97a3bfc..ba05dcf 100644
--- a/src/views/index/chart/alarm.vue
+++ b/src/views/index/chart/alarm.vue
@@ -78,7 +78,7 @@ export default {
this.chartPie = echarts.init(document.getElementById('alarm'));
this.chartPie.setOption({
title: {
- text: '告警统计',
+ text: 'Alarm Statistics',
left: 'center',
},
tooltip: {
diff --git a/src/views/index/chart/maintenance-personnel.vue b/src/views/index/chart/maintenance-personnel.vue
index 605631d..600df9b 100644
--- a/src/views/index/chart/maintenance-personnel.vue
+++ b/src/views/index/chart/maintenance-personnel.vue
@@ -72,6 +72,7 @@ export default {
this.yData = yData;
},
drawPieChart() {
+ debugger;
this.chartPie = echarts.init(document.getElementById('personnel'));
this.chartPie.setOption({
tooltip: {
@@ -82,7 +83,7 @@ export default {
},
title: {
left: 'center',
- text: '按人员统计',
+ text: 'Statistics by personnel',
},
grid: {
left: '3%',
diff --git a/src/views/index/chart/maintenance-site.vue b/src/views/index/chart/maintenance-site.vue
index 9608bfc..30016f3 100644
--- a/src/views/index/chart/maintenance-site.vue
+++ b/src/views/index/chart/maintenance-site.vue
@@ -80,7 +80,7 @@ export default {
this.chartPie.setOption({
title: {
left: 'center',
- text: '按站点统计',
+ text: 'Statistics by site',
},
toolbox: {
feature: {
diff --git a/src/views/index/chart/work.vue b/src/views/index/chart/work.vue
index e616325..b08bd36 100644
--- a/src/views/index/chart/work.vue
+++ b/src/views/index/chart/work.vue
@@ -79,7 +79,7 @@ export default {
this.chartPie = echarts.init(document.getElementById('work'));
this.chartPie.setOption({
title: {
- text: '工单统计',
+ text: 'Work order statistics',
left: 'center',
},
tooltip: {
diff --git a/src/views/index/components/SiteSearch.vue b/src/views/index/components/SiteSearch.vue
index 343cb25..d8a10b3 100644
--- a/src/views/index/components/SiteSearch.vue
+++ b/src/views/index/components/SiteSearch.vue
@@ -19,7 +19,7 @@
v-show="expand"
ref="searchInputRef"
v-model="filterText"
- placeholder="请输入站点名称"
+ :placeholder="$t('dataEnquiry.qsrzdmc')"
@input="onSearchInput"
@click.stop="false"
/>
diff --git a/src/views/index/index.vue b/src/views/index/index.vue
index fc096c2..fed7825 100644
--- a/src/views/index/index.vue
+++ b/src/views/index/index.vue
@@ -3,7 +3,7 @@
-
所有项目
+
{{ $t('index.allTxt') }}
-
基础信息
+ {{ $t('index.jjxx') }}
-
所有项目运行率
+ {{ $t('index.syxmyxl') }}
@@ -67,13 +67,13 @@
-
能耗指标
+ {{ $t('index.nhzb') }}
@@ -86,7 +86,7 @@
- 累积用电量
+ {{ $t('index.ljydl') }}
- 累积用水量
+ {{ $t('index.ljysl') }}
- {{ labelText[0] }}
+
+ {{ $t('index.jd') }}
+
+
+ {{ $t('index.yd') }}
+
-
+
{{ consumptionData.conserveElec }}Kwh
{{ consumptionData.elecUse }}Kwh
@@ -139,26 +144,31 @@
- {{ labelText[1] }}
+
+ {{ $t('index.js') }}
+
+
+ {{ $t('index.ys') }}
+
-
+
{{ consumptionData.conserveWater }}m³/d
{{ consumptionData.waterUse }}m³/d
-
+
- {{ labelText[2] }}
+ {{ $t('index.jt') }}
-
+
@@ -211,13 +191,13 @@
-
巡检填报
+ {{ $t('index.xjtb') }}
@@ -249,13 +229,13 @@
-
考勤打卡
+ {{ $t('index.kqdk') }}
@@ -267,13 +247,13 @@
class="wrap-content-item-h2"
style="font-size: 14px; font-weight: 500"
>
- 已打卡: {{ attendanceData.sign }}
+ {{ $t('index.ydk') }}: {{ attendanceData.sign }}
- 未打卡: {{ attendanceData.unSign }}
+ {{ $t('index.wdk') }}: {{ attendanceData.unSign }}
@@ -281,7 +261,7 @@
-
考勤打卡次数统计
+ {{ $t('index.kqdkcstj') }}
@@ -326,19 +306,19 @@ export default {
isAllProject: false,
projectId: '',
labelText: [],
+ isQDF: true,
};
},
created() {
this.projectId = sessionStorage.getItem('projectId');
this.projectName = sessionStorage.getItem('projectName');
- let labelText1 = ['节电', '节水', '节碳'],
- labelText2 = ['用电', '用水'];
+
if (this.projectName.indexOf('清道夫') != -1) {
- this.labelText = labelText1;
+ this.isQDF = true;
} else if (this.projectName.indexOf('一体化') != -1) {
- this.labelText = labelText2;
+ this.isQDF = false;
} else {
- this.labelText = labelText2;
+ this.isQDF = false;
}
this.defaultTime();
this.getIndexData();
diff --git a/src/views/index/index1.vue b/src/views/index/index1.vue
index 00f3768..1728cbb 100644
--- a/src/views/index/index1.vue
+++ b/src/views/index/index1.vue
@@ -64,6 +64,8 @@ export default {
new T.LngLat(initLngLat.longitude, initLngLat.latitude),
initLngLat.zoom
);
+ debugger;
+ console.log(this.$i18n);
// http://lbs.tianditu.gov.cn/api/js4.0/class.html
const ctrl = new T.Control.MapType([
diff --git a/src/views/iot/alarmuser.vue b/src/views/iot/alarmuser.vue
index 58c39f8..25ade17 100644
--- a/src/views/iot/alarmuser.vue
+++ b/src/views/iot/alarmuser.vue
@@ -12,7 +12,7 @@
>
@@ -24,7 +24,7 @@
>
@@ -36,20 +36,24 @@
>
-
+
- 编辑
- 删除
+
+ {{ $t('defalult.bj') }}
+
+
+ {{ $t('defalult.sc') }}
+
diff --git a/src/views/iot/alarmuser/bindDevice.vue b/src/views/iot/alarmuser/bindDevice.vue
index 2c9f2a7..25b97bd 100644
--- a/src/views/iot/alarmuser/bindDevice.vue
+++ b/src/views/iot/alarmuser/bindDevice.vue
@@ -6,7 +6,7 @@
@close="close"
>
-
+
-->
-
+
@@ -31,25 +31,27 @@
>
-
+
- 绑定项目
+
+ {{ $t('staff.bdxm') }}
+
diff --git a/src/views/iot/alarmuser/userEdit.vue b/src/views/iot/alarmuser/userEdit.vue
index 152f1e7..ec78a9c 100644
--- a/src/views/iot/alarmuser/userEdit.vue
+++ b/src/views/iot/alarmuser/userEdit.vue
@@ -12,19 +12,19 @@
label-width="80px"
label-position="left"
>
-
+
-
+
-
+
-
+
-
+
diff --git a/src/views/iot/device/components/deviceEdit.vue b/src/views/iot/device/components/deviceEdit.vue
index 0a19f50..6d4e133 100644
--- a/src/views/iot/device/components/deviceEdit.vue
+++ b/src/views/iot/device/components/deviceEdit.vue
@@ -29,16 +29,16 @@
>
-
+
-
+
-
+
-
+
-
+
@@ -117,17 +117,17 @@
>
-
+
-
+
-
+
-
+
-->
-
+
-
+
-
+
@@ -222,10 +222,18 @@
-
+
-
+
diff --git a/src/views/iot/device/components/frameMap.vue b/src/views/iot/device/components/frameMap.vue
index 4193794..0b6f9aa 100644
--- a/src/views/iot/device/components/frameMap.vue
+++ b/src/views/iot/device/components/frameMap.vue
@@ -10,9 +10,14 @@
- 查询
+ {{ $t('defalult.cx') }}
-
+
清空
-
+
-
+
-
+
-
+
-
+
-
+
-
+
- 重置
- 查询
+
+ {{ $t('defalult.chongz') }}
+
+
+ {{ $t('defalult.cx') }}
+
- 添加站点
+ {{ $t('device.tjzd') }}
- 批量删除
+ {{ $t('defalult.plsc') }}
- 导出
+ {{ $t('defalult.dc') }}
- 盒子同步
+ {{ $t('device.hztb') }}
@@ -140,7 +160,7 @@
type="success"
size="mini"
>
- 已连接
+ {{ $t('dataEnquiry.ylj') }}
- 未连接
+ {{ $t('dataEnquiry.wlj') }}
-
+
-
+
- 数据
- 传感器
- 复制
- 编辑
- 删除
+
+ {{ $t('device.sj') }}
+
+
+ {{ $t('device.cgq') }}
+
+
+ {{ $t('device.fz') }}
+
+
+ {{ $t('defalult.bj') }}
+
+
+ {{ $t('defalult.sc') }}
+
@@ -364,7 +403,7 @@ export default {
elementLoadingText: '正在加载...',
statusData: [
{
- label: '全部',
+ label: 'all',
value: 3,
},
{
diff --git a/src/views/iot/group.vue b/src/views/iot/group.vue
index 1a8b7ad..bab8200 100644
--- a/src/views/iot/group.vue
+++ b/src/views/iot/group.vue
@@ -18,12 +18,12 @@
发布
运行
- 编辑
+ {{ $t('defalult.bj') }}
分享
下架
设置
- 复制
- 删除
+ {{ $t('device.fz') }}
+ {{ $t('defalult.sc') }}
diff --git a/src/views/iot/group/components/groupEdit.vue b/src/views/iot/group/components/groupEdit.vue
index d9a577c..0082b79 100644
--- a/src/views/iot/group/components/groupEdit.vue
+++ b/src/views/iot/group/components/groupEdit.vue
@@ -6,7 +6,7 @@
@close="close"
>
-
+
diff --git a/src/views/iot/group/index.vue b/src/views/iot/group/index.vue
index ca4f5a1..b4c5d3a 100644
--- a/src/views/iot/group/index.vue
+++ b/src/views/iot/group/index.vue
@@ -24,19 +24,21 @@
>
-
+
- 删除
+
+ {{ $t('defalult.sc') }}
+
diff --git a/src/views/iot/grouping.vue b/src/views/iot/grouping.vue
index 703d773..9b4f59a 100644
--- a/src/views/iot/grouping.vue
+++ b/src/views/iot/grouping.vue
@@ -12,26 +12,30 @@
>
-
+
- 编辑
- 删除
+
+ {{ $t('defalult.bj') }}
+
+
+ {{ $t('defalult.sc') }}
+
diff --git a/src/views/iot/grouping/groupEdit.vue b/src/views/iot/grouping/groupEdit.vue
index 0da8376..8d7ef9a 100644
--- a/src/views/iot/grouping/groupEdit.vue
+++ b/src/views/iot/grouping/groupEdit.vue
@@ -12,7 +12,7 @@
label-width="80px"
label-position="left"
>
-
+
-
+
- 重置
- 查询
+
+ {{ $t('defalult.chongz') }}
+
+
+ {{ $t('defalult.cx') }}
+
- 批量删除
+ {{ $t('defalult.plsc') }}
- 添加项目组
+ {{ $t('grouping.tjxmz') }}
@@ -42,27 +46,33 @@
>
-
+
- 编辑
- 项目
- 删除
+
+ {{ $t('defalult.bj') }}
+
+
+ {{ $t('dataEnquiry.xm') }}
+
+
+ {{ $t('defalult.sc') }}
+
diff --git a/src/views/iot/police/components/index.vue b/src/views/iot/police/components/index.vue
index 8d4bd4f..c45706c 100644
--- a/src/views/iot/police/components/index.vue
+++ b/src/views/iot/police/components/index.vue
@@ -19,22 +19,22 @@
>
- 查询
+ {{ $t('defalult.cx') }}
- 添加触发器
+ {{ $t('trigger.tjcfq') }}
@@ -46,13 +46,13 @@
>
@@ -70,13 +70,18 @@
>
-
- 编辑
- 删除
+
+ {{ $t('defalult.bj') }}
+ {{ $t('defalult.sc') }}
diff --git a/src/views/iot/police/index.vue b/src/views/iot/police/index.vue
index 41def1f..7bad9fe 100644
--- a/src/views/iot/police/index.vue
+++ b/src/views/iot/police/index.vue
@@ -19,11 +19,11 @@
>
- 查询
+ {{ $t('defalult.cx') }}
- 添加触发器
+ {{ $t('trigger.tjcfq') }}
@@ -36,13 +36,13 @@
>
@@ -54,13 +54,13 @@
>
@@ -78,13 +78,18 @@
>
-
- 编辑
- 删除
+
+ {{ $t('defalult.bj') }}
+ {{ $t('defalult.sc') }}
-
+
- 删除
+
+ {{ $t('defalult.sc') }}
+
diff --git a/src/views/iot/project/components/groupEdit.vue b/src/views/iot/project/components/groupEdit.vue
index 0d69d94..c921512 100644
--- a/src/views/iot/project/components/groupEdit.vue
+++ b/src/views/iot/project/components/groupEdit.vue
@@ -12,7 +12,7 @@
label-width="80px"
label-position="left"
>
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -30,11 +30,11 @@
-
+
- 重置
- 查询
+
+ {{ $t('defalult.chongz') }}
+
+
+ {{ $t('defalult.cx') }}
+
- 添加项目
+ {{ $t('project.tjxm') }}
- 批量删除
+ {{ $t('defalult.plsc') }}
- 导出
+ {{ $t('defalult.dc') }}
-
+
- 站点
- 报警用户
- 编辑
- 删除
+
+ {{ $t('project.zd') }}
+
+
+ {{ $t('project.bjyh') }}
+
+
+ {{ $t('defalult.bj') }}
+
+
+ {{ $t('defalult.sc') }}
+
diff --git a/src/views/iot/sensor.vue b/src/views/iot/sensor.vue
index 3e9dc1e..22d62e1 100644
--- a/src/views/iot/sensor.vue
+++ b/src/views/iot/sensor.vue
@@ -4,7 +4,7 @@
添加传感器
-
+
@@ -36,7 +36,7 @@
>
-
+
-
+
-
+
-
+
-
+
-
-
+
+
-
-
+
+
-
+
-
+
-
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 保存
- 返回
+
+ {{ $t('defalult.bc') }}
+
+
+ {{ $t('defalult.fh') }}
+
diff --git a/src/views/iot/sensor/index.vue b/src/views/iot/sensor/index.vue
index a043cc1..f3034ee 100644
--- a/src/views/iot/sensor/index.vue
+++ b/src/views/iot/sensor/index.vue
@@ -4,11 +4,15 @@
-
+
- 重置
- 查询
+
+ {{ $t('defalult.chongz') }}
+
+
+ {{ $t('defalult.cx') }}
+
- 添加传感器
+ {{ $t('sensor.tjcgq') }}
@@ -44,76 +52,50 @@
>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -128,20 +110,24 @@
-
+
- 编辑
- 删除
+
+ {{ $t('defalult.bj') }}
+
+
+ {{ $t('defalult.sc') }}
+
diff --git a/src/views/iot/sensor1.vue b/src/views/iot/sensor1.vue
index b257007..a7a8321 100644
--- a/src/views/iot/sensor1.vue
+++ b/src/views/iot/sensor1.vue
@@ -25,7 +25,7 @@
- 删除
+ {{ $t('defalult.sc') }}
@@ -63,7 +63,7 @@
- 删除
+ {{ $t('defalult.sc') }}
@@ -85,7 +85,7 @@
- 删除
+ {{ $t('defalult.sc') }}
@@ -107,7 +107,7 @@
- 删除
+ {{ $t('defalult.sc') }}
diff --git a/src/views/iot/sensordata.vue b/src/views/iot/sensordata.vue
index e28330d..aded206 100644
--- a/src/views/iot/sensordata.vue
+++ b/src/views/iot/sensordata.vue
@@ -34,10 +34,14 @@
width="200"
align="center"
>
-
+
- 编辑
- 删除
+
+ {{ $t('defalult.bj') }}
+
+
+ {{ $t('defalult.sc') }}
+
diff --git a/src/views/iot/sensordata/currentData.vue b/src/views/iot/sensordata/currentData.vue
index 4e74f47..d6e7b07 100644
--- a/src/views/iot/sensordata/currentData.vue
+++ b/src/views/iot/sensordata/currentData.vue
@@ -2,8 +2,11 @@
-
-
+
+
- 重置
+
+ {{ $t('defalult.chongz') }}
+
- 查询
+ {{ $t('defalult.cx') }}
- 导出
+ {{ $t('defalult.dc') }}
@@ -35,23 +40,28 @@
>
+
-
diff --git a/src/views/iot/sensordata/historyData.vue b/src/views/iot/sensordata/historyData.vue
index 7db66d4..cea4aba 100644
--- a/src/views/iot/sensordata/historyData.vue
+++ b/src/views/iot/sensordata/historyData.vue
@@ -2,18 +2,21 @@
-
+
-
-
+
+
- 查询
+ {{ $t('defalult.cx') }}
@@ -41,23 +44,28 @@
>
+
-
diff --git a/src/views/iot/sensordata/index.vue b/src/views/iot/sensordata/index.vue
index fa7cbcc..c0d8598 100644
--- a/src/views/iot/sensordata/index.vue
+++ b/src/views/iot/sensordata/index.vue
@@ -9,35 +9,40 @@
>
-
+
-
+
- 历史数据
+
+ {{ $t('sensor.lssj') }}
+
diff --git a/src/views/iot/sensordata/showdata.vue b/src/views/iot/sensordata/showdata.vue
index 7d6a6ca..2fa664d 100644
--- a/src/views/iot/sensordata/showdata.vue
+++ b/src/views/iot/sensordata/showdata.vue
@@ -1,10 +1,10 @@
-
+
-
+
diff --git a/src/views/iot/trigger.vue b/src/views/iot/trigger.vue
index 8f6b195..c03f8d3 100644
--- a/src/views/iot/trigger.vue
+++ b/src/views/iot/trigger.vue
@@ -4,10 +4,10 @@
添加触发器信息
-
+
-
+
-
+
触发条件
-
+
-
+
-
+
diff --git a/src/views/iot/trigger/rule.vue b/src/views/iot/trigger/rule.vue
index a72e1b2..b84740e 100644
--- a/src/views/iot/trigger/rule.vue
+++ b/src/views/iot/trigger/rule.vue
@@ -4,11 +4,11 @@
-
+
- 重置
- 查询
+
+ {{ $t('defalult.chongz') }}
+
+
+ {{ $t('defalult.cx') }}
+
- 添加触发器规则
+ {{ $t('trigger.tjcfqgz') }}
- 批量删除
+ {{ $t('defalult.plsc') }}
- 批量应用
+ {{ $t('trigger.plyy') }}
@@ -52,37 +56,37 @@
>
@@ -94,7 +98,7 @@
type="success"
size="mini"
>
- 是
+ {{ $t('trigger.s') }}
- 否
+ {{ $t('trigger.f') }}
-
+
- 编辑
- 删除
+
+ {{ $t('defalult.bj') }}
+
+
+ {{ $t('defalult.sc') }}
+
diff --git a/src/views/iot/trigger/ruleEdit.vue b/src/views/iot/trigger/ruleEdit.vue
index 2e1ed45..8a0df56 100644
--- a/src/views/iot/trigger/ruleEdit.vue
+++ b/src/views/iot/trigger/ruleEdit.vue
@@ -16,7 +16,7 @@
label-width="100px"
label-position="left"
>
-
+
-
+
-
+
-
+
添加触发器规则
- 批量删除
- 批量应用
+
+ {{ $t('defalult.plsc') }}
+
+
+ {{ $t('trigger.plyy') }}
+
-
+
规则
diff --git a/src/views/iot/trigger/trigger.vue b/src/views/iot/trigger/trigger.vue
index ede26af..94a69ce 100644
--- a/src/views/iot/trigger/trigger.vue
+++ b/src/views/iot/trigger/trigger.vue
@@ -4,11 +4,11 @@
-
+
- 重置
- 查询
+
+ {{ $t('defalult.chongz') }}
+
+
+ {{ $t('defalult.cx') }}
+
- 添加触发器
+ {{ $t('trigger.tjcfq') }}
@@ -36,33 +40,41 @@
border
style="width: 100%"
>
-
+
-
+
- 是
+ {{ $t('trigger.s') }}
- 否
+ {{ $t('trigger.f') }}
-
+
- 编辑
- 删除
+
+ {{ $t('defalult.bj') }}
+
+
+ {{ $t('defalult.sc') }}
+
diff --git a/src/views/iot/trigger/triggerEdit.vue b/src/views/iot/trigger/triggerEdit.vue
index e70391b..a71b238 100644
--- a/src/views/iot/trigger/triggerEdit.vue
+++ b/src/views/iot/trigger/triggerEdit.vue
@@ -16,7 +16,7 @@
label-width="100px"
label-position="left"
>
-
+
-
+
-
+
-
+
-
+
- 查询
- 重置
+
+ {{ $t('defalult.cx') }}
+
+ {{ $t('defalult.chongz') }}
- 添加触发器
+
+ {{ $t('trigger.tjcfq') }}
+
@@ -31,33 +35,42 @@
>
-
+
详情
- 编辑
- 删除
+
+ {{ $t('defalult.bj') }}
+
+
+ {{ $t('defalult.sc') }}
+
diff --git a/src/views/iot/trigger/triggerdetail.vue b/src/views/iot/trigger/triggerdetail.vue
index df3a829..4e3cd7e 100644
--- a/src/views/iot/trigger/triggerdetail.vue
+++ b/src/views/iot/trigger/triggerdetail.vue
@@ -16,31 +16,31 @@
>
@@ -73,7 +73,7 @@
diff --git a/src/views/iot/vehicle/bindProject.vue b/src/views/iot/vehicle/bindProject.vue
index d9441b7..3e37df5 100644
--- a/src/views/iot/vehicle/bindProject.vue
+++ b/src/views/iot/vehicle/bindProject.vue
@@ -7,7 +7,7 @@
@close="close"
>
-
+
@@ -69,7 +69,7 @@
@@ -87,69 +87,90 @@
>
- 汽车
- 电动车
- 个人
- 宠物
- 飞机
- 其他
+
+ {{ $t('vehicles.qc') }}
+
+
+ {{ $t('vehicles.ddc') }}
+
+
+ {{ $t('vehicles.gr') }}
+
+
+ {{ $t('vehicles.cw') }}
+
+
+ {{ $t('vehicles.fj') }}
+
+
+ {{ $t('vehicles.qt') }}
+
- 有线
- 无线
+ {{ $t('vehicles.yx') }}
+
+ {{ $t('vehicles.wx') }}
+
-
+
- 绑定项目
+
+ {{ $t('staff.bdxm') }}
+
diff --git a/src/views/log/action/index.vue b/src/views/log/action/index.vue
index f1cd896..2df9e43 100644
--- a/src/views/log/action/index.vue
+++ b/src/views/log/action/index.vue
@@ -3,14 +3,14 @@
-
+
-
+
-
+
- 重置
- 查询
+
+ {{ $t('defalult.chongz') }}
+
+
+ {{ $t('defalult.cx') }}
+
- 导出
+ {{ $t('defalult.dc') }}
@@ -165,12 +173,14 @@
- 删除
+
+ {{ $t('defalult.sc') }}
+
@@ -211,7 +221,7 @@ export default {
statusData: [
{
value: 2,
- label: '全部',
+ label: 'all',
},
{
value: 0,
diff --git a/src/views/log/login/index.vue b/src/views/log/login/index.vue
index e4799f2..fa2a95a 100644
--- a/src/views/log/login/index.vue
+++ b/src/views/log/login/index.vue
@@ -4,14 +4,14 @@
-
+
-
+
- 重置
- 查询
+
+ {{ $t('defalult.chongz') }}
+
+
+ {{ $t('defalult.cx') }}
+
- 导出
+ {{ $t('defalult.dc') }}
@@ -48,7 +52,7 @@
>
@@ -78,7 +82,7 @@
>
@@ -88,9 +92,16 @@
width="180"
align="center"
>
-
+
- 删除
+
+ {{ $t('defalult.sc') }}
+
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 6e66ca7..dc9ece9 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -2,9 +2,9 @@
-
+
-
+
@@ -34,7 +34,7 @@
@@ -48,7 +48,7 @@
:key="passwordType"
ref="password"
v-model="form.passwords"
- placeholder="请输入密码"
+ :placeholder="$t('login.password')"
:type="passwordType"
tabindex="2"
@keyup.enter="handleLogin"
@@ -80,7 +80,7 @@
style="width: 77%; margin-left: 23%"
@click="handleLogin"
>
- 登录
+ {{ $t('login.login') }}
diff --git a/src/views/login/trialAdd.vue b/src/views/login/trialAdd.vue
index 4e8d1f4..cc681dc 100644
--- a/src/views/login/trialAdd.vue
+++ b/src/views/login/trialAdd.vue
@@ -13,7 +13,7 @@
label-width="60px"
label-position="left"
>
-
+
-
+
-
+
-
+
-
+
- 查询
- 导出
+
+ {{ $t('defalult.cx') }}
+
+
+ {{ $t('defalult.dc') }}
+
@@ -48,7 +52,7 @@
>
@@ -72,13 +76,13 @@
>
@@ -102,7 +106,7 @@
>
@@ -112,7 +116,7 @@
width="200"
align="center"
>
-
+
工单进度
diff --git a/src/views/maintenance/team/group/index.vue b/src/views/maintenance/team/group/index.vue
index 9d16c2d..cee2dba 100644
--- a/src/views/maintenance/team/group/index.vue
+++ b/src/views/maintenance/team/group/index.vue
@@ -9,8 +9,12 @@
placeholder="请输入班组名称"
>
- 查询
- 导出
+
+ {{ $t('defalult.cx') }}
+
+
+ {{ $t('defalult.dc') }}
+
@@ -87,9 +91,11 @@
width="200"
align="center"
>
-
+
- 删除
+
+ {{ $t('defalult.sc') }}
+
diff --git a/src/views/maintenance/team/vehicle/index.vue b/src/views/maintenance/team/vehicle/index.vue
index 05dd8c6..59932ac 100644
--- a/src/views/maintenance/team/vehicle/index.vue
+++ b/src/views/maintenance/team/vehicle/index.vue
@@ -9,13 +9,13 @@
>
@@ -31,9 +31,11 @@
width="200"
align="center"
>
-
+
- 删除
+
+ {{ $t('defalult.sc') }}
+
diff --git a/src/views/maintenance/workorder/junction/index.vue b/src/views/maintenance/workorder/junction/index.vue
index 8952f27..ec873b3 100644
--- a/src/views/maintenance/workorder/junction/index.vue
+++ b/src/views/maintenance/workorder/junction/index.vue
@@ -3,7 +3,7 @@
-
+
- 查询
- 导出
+
+ {{ $t('defalult.cx') }}
+
+
+ {{ $t('defalult.dc') }}
+
@@ -38,7 +42,7 @@
>
@@ -56,7 +60,7 @@
>
@@ -92,13 +96,15 @@
>
-
+
- 删除
+
+ {{ $t('defalult.sc') }}
+
diff --git a/src/views/maintenance/workorder/my/index.vue b/src/views/maintenance/workorder/my/index.vue
index 8952f27..ec873b3 100644
--- a/src/views/maintenance/workorder/my/index.vue
+++ b/src/views/maintenance/workorder/my/index.vue
@@ -3,7 +3,7 @@
-
+
- 查询
- 导出
+
+ {{ $t('defalult.cx') }}
+
+
+ {{ $t('defalult.dc') }}
+
@@ -38,7 +42,7 @@
>
@@ -56,7 +60,7 @@
>
@@ -92,13 +96,15 @@
>
-
+
- 删除
+
+ {{ $t('defalult.sc') }}
+
diff --git a/src/views/maintenance/workorder/overdue/index.vue b/src/views/maintenance/workorder/overdue/index.vue
index 8952f27..ec873b3 100644
--- a/src/views/maintenance/workorder/overdue/index.vue
+++ b/src/views/maintenance/workorder/overdue/index.vue
@@ -3,7 +3,7 @@
-
+
- 查询
- 导出
+
+ {{ $t('defalult.cx') }}
+
+
+ {{ $t('defalult.dc') }}
+
@@ -38,7 +42,7 @@
>
@@ -56,7 +60,7 @@
>
@@ -92,13 +96,15 @@
>
-
+
- 删除
+
+ {{ $t('defalult.sc') }}
+
diff --git a/src/views/maintenance/workorder/stay/index.vue b/src/views/maintenance/workorder/stay/index.vue
index 8952f27..ec873b3 100644
--- a/src/views/maintenance/workorder/stay/index.vue
+++ b/src/views/maintenance/workorder/stay/index.vue
@@ -3,7 +3,7 @@
-
+
- 查询
- 导出
+
+ {{ $t('defalult.cx') }}
+
+
+ {{ $t('defalult.dc') }}
+
@@ -38,7 +42,7 @@
>
@@ -56,7 +60,7 @@
>
@@ -92,13 +96,15 @@
>
-
+
- 删除
+
+ {{ $t('defalult.sc') }}
+
diff --git a/src/views/party/flow/bindDevice.vue b/src/views/party/flow/bindDevice.vue
index 48b7410..ab52fe6 100644
--- a/src/views/party/flow/bindDevice.vue
+++ b/src/views/party/flow/bindDevice.vue
@@ -6,7 +6,7 @@
@close="close"
>
-
+
- 重置
- 查询
+
+ {{ $t('defalult.chongz') }}
+
+
+ {{ $t('defalult.cx') }}
+
@@ -72,7 +76,7 @@
>
@@ -133,7 +137,7 @@
-
+
绑定设备
详情
diff --git a/src/views/party/flow/showDetail.vue b/src/views/party/flow/showDetail.vue
index 72bf9a7..9db3b19 100644
--- a/src/views/party/flow/showDetail.vue
+++ b/src/views/party/flow/showDetail.vue
@@ -11,9 +11,11 @@
v-model="queryForm.defaultTime"
type="month"
size="small"
- placeholder="选择日期"
+ :placeholder="$t('defalult.xzrq')"
/>
- 查询
+
+ {{ $t('defalult.cx') }}
+
-
+
设备
- 编辑
- 删除
+
+ {{ $t('defalult.bj') }}
+
+
+ {{ $t('defalult.sc') }}
+
diff --git a/src/views/party/fluorite/videoData.vue b/src/views/party/fluorite/videoData.vue
index ab33318..9b3a142 100644
--- a/src/views/party/fluorite/videoData.vue
+++ b/src/views/party/fluorite/videoData.vue
@@ -4,21 +4,33 @@
-
+
-
+
-
+
- 重置
- 查询
+
+ {{ $t('defalult.chongz') }}
+
+
+ {{ $t('defalult.cx') }}
+
@@ -104,7 +120,12 @@
width="180"
align="center"
>
-
+
绑定站点
播放
@@ -147,7 +168,7 @@ export default {
statusData: [
{
value: 3,
- label: '全部',
+ label: 'all',
},
{
value: 1,
diff --git a/src/views/party/gis/index.vue b/src/views/party/gis/index.vue
index 5d16bfa..88334a5 100644
--- a/src/views/party/gis/index.vue
+++ b/src/views/party/gis/index.vue
@@ -6,7 +6,7 @@
style="margin-bottom: 10px"
@click="dianji"
>
- 全屏
+ {{ $t('defalult.qp') }}
@@ -29,7 +29,7 @@
>
@@ -47,11 +47,16 @@
>
-
+
-
+
- 删除
+
+ {{ $t('defalult.sc') }}
+
-
+
-
+
-
+
-
+
- 重置
- 查询
- 添加
+
+ {{ $t('defalult.chongz') }}
+
+
+ {{ $t('defalult.cx') }}
+
+
+ {{ $t('defalult.tj') }}
+
- 导出
+ {{ $t('defalult.dc') }}
@@ -116,7 +126,7 @@
>
@@ -134,11 +144,16 @@
>
-
+
-
+
- 删除
+
+ {{ $t('defalult.sc') }}
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -28,28 +28,28 @@
-
+
-
+
-
+
-
+
-
+
- 站点信息
+ {{ $t('siteDetails.zdxx') }}
- 站点编号:{{ deviceInfo.code }}
+ {{ $t('siteDetails.zdbh') }}:{{ deviceInfo.code }}
- 序列号:{{ deviceInfo.serial }}
+ {{ $t('siteDetails.xlh') }}:{{ deviceInfo.serial }}
- 物联网卡:{{ deviceInfo.sim }}
+ {{ $t('siteDetails.wlwk') }}:{{ deviceInfo.sim }}
- 运行状态:
- 在线
- 离线
+ {{ $t('siteDetails.yxzt') }}:
+
+ {{ $t('siteDetails.zx') }}
+
+ {{ $t('siteDetails.lx') }}
{{ deviceInfo.statusRemark }}
- 设备规格:{{ deviceInfo.specifications }}
+
+ {{ $t('siteDetails.sbgg') }}:{{ deviceInfo.specifications }}
+
- 出水标准:{{ deviceInfo.outStandard }}
+
+ {{ $t('siteDetails.csbz') }}:{{ deviceInfo.outStandard }}
+
- 服务户数:{{ deviceInfo.userNum }}
+ {{ $t('siteDetails.ffhs') }}:{{ deviceInfo.userNum }}
- 运维人员:{{ deviceInfo.leader }}
+ {{ $t('siteDetails.ywry') }}:{{ deviceInfo.leader }}
- 联系方式:{{ deviceInfo.contact }}
+ {{ $t('siteDetails.lxfs') }}:{{ deviceInfo.contact }}
- 远程控制
+ {{ $t('siteDetails.yckz') }}
-
+
-
+
-
+
{{ row.dataValue }}
-
-
+
+
- 下发指令
+ {{ $t('siteDetails.xfzl') }}
diff --git a/src/views/server/siteDetails/readable.vue b/src/views/server/siteDetails/readable.vue
index b5d692d..8a05814 100644
--- a/src/views/server/siteDetails/readable.vue
+++ b/src/views/server/siteDetails/readable.vue
@@ -8,28 +8,36 @@
>
-
+
{{ row.dataValue }}
-
-
+
+
- 下发指令
+ {{ $t('siteDetails.xfzl') }}
diff --git a/src/views/server/siteDetails/site.vue b/src/views/server/siteDetails/site.vue
index 91d08b4..11f7248 100644
--- a/src/views/server/siteDetails/site.vue
+++ b/src/views/server/siteDetails/site.vue
@@ -6,7 +6,7 @@
style="margin-bottom: 10px"
@click="dianji"
>
- 全屏
+ {{ $t('defalult.qp') }}
@@ -151,23 +167,33 @@
>
-
+
- 编辑
+ {{ $t('defalult.bj') }}
-
+
-
+
@@ -178,7 +204,9 @@
取 消
-
删除
+
+ {{ $t('defalult.sc') }}
+
- 查询
+
+ {{ $t('defalult.cx') }}
+
@@ -255,13 +285,13 @@
>
diff --git a/src/views/set/global.vue b/src/views/set/global.vue
index 7fdbe4f..272322c 100644
--- a/src/views/set/global.vue
+++ b/src/views/set/global.vue
@@ -23,7 +23,7 @@
>
@@ -33,11 +33,17 @@
width="500"
align="center"
>
-
+
- 编辑
+ {{ $t('defalult.bj') }}
+
+
+ {{ $t('defalult.sc') }}
- 删除
群发
diff --git a/src/views/set/global/index.vue b/src/views/set/global/index.vue
index 381538e..3033e3c 100644
--- a/src/views/set/global/index.vue
+++ b/src/views/set/global/index.vue
@@ -66,7 +66,7 @@
>
@@ -76,11 +76,15 @@
width="500"
align="center"
>
-
+
- 编辑
+ {{ $t('defalult.bj') }}
- 删除
+ {{ $t('defalult.sc') }}
群发
diff --git a/src/views/set/intention/add.vue b/src/views/set/intention/add.vue
index c449735..8a9c3ee 100644
--- a/src/views/set/intention/add.vue
+++ b/src/views/set/intention/add.vue
@@ -6,7 +6,7 @@
@close="close"
>
-
+
-
+
diff --git a/src/views/set/intention/index.vue b/src/views/set/intention/index.vue
index 385cae1..4916a4e 100644
--- a/src/views/set/intention/index.vue
+++ b/src/views/set/intention/index.vue
@@ -1,9 +1,11 @@
- 添加
+
+ {{ $t('defalult.tj') }}
+
- 导出
+ {{ $t('defalult.dc') }}
@@ -39,7 +41,7 @@
>
@@ -49,10 +51,14 @@
width="180"
align="center"
>
-
+
- 编辑
- 删除
+
+ {{ $t('defalult.bj') }}
+
+
+ {{ $t('defalult.sc') }}
+
diff --git a/src/views/set/manage.vue b/src/views/set/manage.vue
index ff2a621..4b538b3 100644
--- a/src/views/set/manage.vue
+++ b/src/views/set/manage.vue
@@ -6,8 +6,10 @@
-
查询
-
重置
+
{{ $t('defalult.cx') }}
+
+ {{ $t('defalult.chongz') }}
+
新增用户
@@ -40,13 +42,13 @@
>
@@ -94,12 +96,12 @@
>
- 编辑
+ {{ $t('defalult.bj') }}
@@ -120,7 +122,9 @@
- 删除
+
+ {{ $t('defalult.sc') }}
+
@@ -159,7 +163,7 @@
>
@@ -171,19 +175,27 @@
>
-
- 编辑
- 删除
+
+
+ {{ $t('defalult.bj') }}
+
+
+ {{ $t('defalult.sc') }}
+
角色授权
diff --git a/src/views/set/manage/components/applets/appletsIndex.vue b/src/views/set/manage/components/applets/appletsIndex.vue
index fc39d73..14395d4 100644
--- a/src/views/set/manage/components/applets/appletsIndex.vue
+++ b/src/views/set/manage/components/applets/appletsIndex.vue
@@ -14,7 +14,7 @@
>
@@ -24,7 +24,12 @@
width="150"
align="center"
>
-
+
-
+
- 编辑
- 删除
+
+ {{ $t('defalult.bj') }}
+
+
+ {{ $t('defalult.sc') }}
+
角色授权
diff --git a/src/views/set/manage/components/role/roleIndex.vue b/src/views/set/manage/components/role/roleIndex.vue
index e5d50ca..7eb084e 100644
--- a/src/views/set/manage/components/role/roleIndex.vue
+++ b/src/views/set/manage/components/role/roleIndex.vue
@@ -24,7 +24,12 @@
width="150"
align="center"
>
-
+
-
+
- 编辑
- 删除
+
+ {{ $t('defalult.bj') }}
+
+
+ {{ $t('defalult.sc') }}
+
角色授权
diff --git a/src/views/set/manage/components/user/manageEdit.vue b/src/views/set/manage/components/user/manageEdit.vue
index 4d23270..555e6ca 100644
--- a/src/views/set/manage/components/user/manageEdit.vue
+++ b/src/views/set/manage/components/user/manageEdit.vue
@@ -16,7 +16,7 @@
>
-
+
-
+
-
+
-
+
-
+
-
+
- 重置
- 查询
+
+ {{ $t('defalult.chongz') }}
+
+
+ {{ $t('defalult.cx') }}
+
添加用户
- 批量删除
+ {{ $t('defalult.plsc') }}
@@ -99,7 +103,7 @@
>
@@ -109,7 +113,12 @@
width="120"
align="center"
>
-
+
-
+
- 编辑
- 删除
+
+ {{ $t('defalult.bj') }}
+
+
+ {{ $t('defalult.sc') }}
+
平台角色
小程序角色
diff --git a/src/views/set/manage/components/user/manageProduct.vue b/src/views/set/manage/components/user/manageProduct.vue
index 26db5b9..f7905c6 100644
--- a/src/views/set/manage/components/user/manageProduct.vue
+++ b/src/views/set/manage/components/user/manageProduct.vue
@@ -6,7 +6,7 @@
@close="close"
>
-
+
-
+
-
+
-
+
- 重置
- 查询
+
+ {{ $t('defalult.chongz') }}
+
+
+ {{ $t('defalult.cx') }}
+
添加用户
- 批量删除
+ {{ $t('defalult.plsc') }}
@@ -99,7 +103,7 @@
>
@@ -109,7 +113,12 @@
width="120"
align="center"
>
-
+
-
+
- 编辑
- 删除
+
+ {{ $t('defalult.bj') }}
+
+
+ {{ $t('defalult.sc') }}
+
平台角色
小程序角色
diff --git a/src/views/set/material/components/add.vue b/src/views/set/material/components/add.vue
index f741045..d0c2274 100644
--- a/src/views/set/material/components/add.vue
+++ b/src/views/set/material/components/add.vue
@@ -13,14 +13,14 @@
autocomplete="off"
>
-
+
-
+
- 批量删除
+
+ {{ $t('defalult.plsc') }}
+
-
+
- 编辑
+ {{ $t('defalult.bj') }}
-
+
-
+
- 编辑
- 删除
+
+ {{ $t('defalult.bj') }}
+
+
+ {{ $t('defalult.sc') }}
+
diff --git a/src/views/set/set/components/menuIndex.vue b/src/views/set/set/components/menuIndex.vue
index 5494e80..0fd4979 100644
--- a/src/views/set/set/components/menuIndex.vue
+++ b/src/views/set/set/components/menuIndex.vue
@@ -32,7 +32,7 @@
width="200"
align="center"
>
-
+
-
+
- 编辑
- 删除
+
+ {{ $t('defalult.bj') }}
+
+
+ {{ $t('defalult.sc') }}
+
diff --git a/src/views/set/user/components/basic.vue b/src/views/set/user/components/basic.vue
index efb5617..51ae354 100644
--- a/src/views/set/user/components/basic.vue
+++ b/src/views/set/user/components/basic.vue
@@ -13,7 +13,7 @@
-
+
diff --git a/src/views/wechat/menu/index.vue b/src/views/wechat/menu/index.vue
index 4ad124d..87b0067 100644
--- a/src/views/wechat/menu/index.vue
+++ b/src/views/wechat/menu/index.vue
@@ -85,7 +85,7 @@
-
+
-
+
{{ row.isEdit ? '完成' : '编辑' }}
diff --git a/src/views/wechat/reply/default/selectData.vue b/src/views/wechat/reply/default/selectData.vue
index 2334f8a..45d623c 100644
--- a/src/views/wechat/reply/default/selectData.vue
+++ b/src/views/wechat/reply/default/selectData.vue
@@ -27,8 +27,12 @@
- 重置
- 查询
+
+ {{ $t('defalult.chongz') }}
+
+
+ {{ $t('defalult.cx') }}
+
-
+
diff --git a/src/views/wechat/reply/follow/selectData.vue b/src/views/wechat/reply/follow/selectData.vue
index 5e980ae..70d47e3 100644
--- a/src/views/wechat/reply/follow/selectData.vue
+++ b/src/views/wechat/reply/follow/selectData.vue
@@ -27,8 +27,12 @@
- 重置
- 查询
+
+ {{ $t('defalult.chongz') }}
+
+
+ {{ $t('defalult.cx') }}
+
-
+
diff --git a/src/views/wechat/reply/keywords/index.vue b/src/views/wechat/reply/keywords/index.vue
index 580ef1a..47f75f0 100644
--- a/src/views/wechat/reply/keywords/index.vue
+++ b/src/views/wechat/reply/keywords/index.vue
@@ -5,7 +5,7 @@
添加
- 批量删除
+ {{ $t('defalult.plsc') }}
-
+
- 编辑
- 删除
+
+ {{ $t('defalult.bj') }}
+
+
+ {{ $t('defalult.sc') }}
+
diff --git a/vue.config.js b/vue.config.js
index 0e08b80..83a2247 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -63,7 +63,7 @@ module.exports = {
},
},
api: {
- target: 'http://101.133.141.167:8081',
+ target: 'http://101.46.52.67:8081',
changeOrigin: true, // 使 Origin 请求头中的主机名变为目标 URL 的主机名
secure: false, // 不验证 SSL 证书
logLevel: 'warn', // 代理的日志级别