From 03eec83e9c533d9fb0a3a21747f1041fce59a64f Mon Sep 17 00:00:00 2001 From: ival <610568032@qq.com> Date: Tue, 20 Aug 2019 14:02:55 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=A4=E8=B7=AF?= =?UTF-8?q?=E7=9B=AE=E7=9A=84=E5=9C=B0=E7=A0=81=E7=9A=84=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/langs/en/error.js | 4 +- src/i18n/langs/en/global.js | 5 +- src/i18n/langs/en/index.js | 4 +- src/i18n/langs/en/map.js | 1 + src/i18n/langs/en/publish.js | 10 +++ src/i18n/langs/zh/error.js | 4 +- src/i18n/langs/zh/global.js | 6 +- src/i18n/langs/zh/index.js | 4 +- src/i18n/langs/zh/map.js | 1 + src/i18n/langs/zh/publish.js | 10 +++ src/scripts/translate.js | 1 + src/utils/baseUrl.js | 4 +- src/utils/lang.js | 1 + .../dataRelation/routingoperate/detail.vue | 4 ++ src/views/publish/publishMap/draft.vue | 13 ++-- src/views/publish/publishMap/index.vue | 64 +++++++++---------- 16 files changed, 87 insertions(+), 49 deletions(-) create mode 100644 src/i18n/langs/en/publish.js create mode 100644 src/i18n/langs/zh/publish.js diff --git a/src/i18n/langs/en/error.js b/src/i18n/langs/en/error.js index 30fa912f3..d35b10195 100644 --- a/src/i18n/langs/en/error.js +++ b/src/i18n/langs/en/error.js @@ -44,6 +44,8 @@ export default { createDetailFailed: 'Failed to create details', updateDetailFailed: 'Failed to update details', addFailed: 'Failure to add', - updateFailed: 'Failure to update' + updateFailed: 'Failure to update', + exportException: 'Export exception', + operationFailure: 'Operation Failure' }; diff --git a/src/i18n/langs/en/global.js b/src/i18n/langs/en/global.js index 5f7dc44cc..9c2b44d60 100644 --- a/src/i18n/langs/en/global.js +++ b/src/i18n/langs/en/global.js @@ -79,6 +79,9 @@ export default { trainingNotStart: "{name}'s room hasn't started yet", inputRoomNumber: 'Please enter the room number.', chooseRoom: 'Choose Room', - month: 'month' + month: 'month', + putaway: 'Putaway', + soldOut: 'Sold out', + exportMap: 'Export Map' }; diff --git a/src/i18n/langs/en/index.js b/src/i18n/langs/en/index.js index 604621405..f1a31378a 100644 --- a/src/i18n/langs/en/index.js +++ b/src/i18n/langs/en/index.js @@ -9,6 +9,7 @@ import scriptRecord from './scriptRecord'; import tip from './tip'; import system from './system'; import orderAuthor from './orderAuthor'; +import publish from './publish'; export default { ...enLocale, @@ -21,5 +22,6 @@ export default { scriptRecord, tip, system, - orderAuthor + orderAuthor, + publish }; diff --git a/src/i18n/langs/en/map.js b/src/i18n/langs/en/map.js index 94037d77d..35b0f72ad 100644 --- a/src/i18n/langs/en/map.js +++ b/src/i18n/langs/en/map.js @@ -468,6 +468,7 @@ export default { startStationCodeColon: 'Originating station:', startStationCode: 'The starting platform', endStationCode: 'Into the platform', + destination: 'destination', routingDirection: 'The direction of', remarks: 'describe', remarksColon: 'describe:', diff --git a/src/i18n/langs/en/publish.js b/src/i18n/langs/en/publish.js new file mode 100644 index 000000000..9298056da --- /dev/null +++ b/src/i18n/langs/en/publish.js @@ -0,0 +1,10 @@ +export default { + name: 'Name', + city: 'City', + skinType: 'Skin Type', + mapName: 'Map Name', + updateMapName: 'Update Map Name', + updateTime: 'Update Time', + operationSuccess: 'Operate successfully', + deleteSuccess: 'Delete successfully' +}; diff --git a/src/i18n/langs/zh/error.js b/src/i18n/langs/zh/error.js index 9d2918ead..30e7903df 100644 --- a/src/i18n/langs/zh/error.js +++ b/src/i18n/langs/zh/error.js @@ -44,6 +44,8 @@ export default { createDetailFailed: '创建明细失败', updateDetailFailed: '更新明细失败', addFailed: '添加失败', - updateFailed: '更新失败' + updateFailed: '更新失败', + exportException: '导出异常', + operationFailure: '操作失败' }; diff --git a/src/i18n/langs/zh/global.js b/src/i18n/langs/zh/global.js index a54e0ebcf..8f6986cd0 100644 --- a/src/i18n/langs/zh/global.js +++ b/src/i18n/langs/zh/global.js @@ -80,5 +80,9 @@ export default { trainingNotStart: '{name}的房间未开始', inputRoomNumber: '请输入房间号', chooseRoom: '选择房间', - month: '月' + month: '月', + putaway: '上 架', + soldOut: '下 架', + exportMap: '导出地图' + }; diff --git a/src/i18n/langs/zh/index.js b/src/i18n/langs/zh/index.js index e1f4f0b32..05e8d3d8f 100644 --- a/src/i18n/langs/zh/index.js +++ b/src/i18n/langs/zh/index.js @@ -9,6 +9,7 @@ import scriptRecord from './scriptRecord'; import tip from './tip'; import system from './system'; import orderAuthor from './orderAuthor'; +import publish from './publish'; export default { ...cnLocale, @@ -21,5 +22,6 @@ export default { scriptRecord, tip, system, - orderAuthor + orderAuthor, + publish }; diff --git a/src/i18n/langs/zh/map.js b/src/i18n/langs/zh/map.js index 715691739..11b0cb335 100644 --- a/src/i18n/langs/zh/map.js +++ b/src/i18n/langs/zh/map.js @@ -468,6 +468,7 @@ export default { startStationCodeColon: '起始站:', startStationCode: '起始站台', endStationCode: '终到站台', + destination: '目的地码', routingDirection: '方向', remarks: '描述', remarksColon: '描述:', diff --git a/src/i18n/langs/zh/publish.js b/src/i18n/langs/zh/publish.js new file mode 100644 index 000000000..c3e7b3fd2 --- /dev/null +++ b/src/i18n/langs/zh/publish.js @@ -0,0 +1,10 @@ +export default { + name: '名称', + city: '所属城市', + skinType: '皮肤类型', + mapName: '地图名称', + updateMapName: '更新地图名称', + updateTime: '更新时间', + operationSuccess: '操作成功', + deleteSuccess: '删除成功' +}; diff --git a/src/scripts/translate.js b/src/scripts/translate.js index 72ebeac4c..582d19873 100644 --- a/src/scripts/translate.js +++ b/src/scripts/translate.js @@ -36,6 +36,7 @@ export const translate = { { key: 'code', tHeader: '交路编号', formatter: (val) => { return val || ''; } }, { key: 'name', tHeader: '交路名称', formatter: (val) => { return val || ''; } }, { key: 'directionCode', tHeader: '方向码', formatter: (val) => { return val || 0; } }, + { key: 'destinationCode', tHeader: '目的地码', formatter: (val) => { return val || ''; } }, { key: 'startSectionCode', tHeader: '起始区段', formatter: (val) => { return val || ''; } }, { key: 'startStationCode', tHeader: '起始车站', formatter: (val) => { return val || ''; } }, { key: 'endSectionCode', tHeader: '终到区段', formatter: (val) => { return val || ''; } }, diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index 4050e7e22..2e575c51e 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -3,9 +3,9 @@ export function getBaseUrl() { let BASE_API; if (process.env.NODE_ENV === 'development') { // BASE_API = 'https://joylink.club/jlcloud'; - // BASE_API = 'https://test.joylink.club/jlcloud'; + BASE_API = 'https://test.joylink.club/jlcloud'; // BASE_API = 'http://192.168.3.5:9000'; // 袁琪 - BASE_API = 'http://192.168.3.6:9000'; // 旭强 + // BASE_API = 'http://192.168.3.6:9000'; // 旭强 // BASE_API = 'http://192.168.3.4:9000' // 琰培 } else { BASE_API = process.env.VUE_APP_BASE_API; diff --git a/src/utils/lang.js b/src/utils/lang.js index e8d13dae2..e15f56d7c 100644 --- a/src/utils/lang.js +++ b/src/utils/lang.js @@ -4,6 +4,7 @@ const I18N_LANG = 'user_lang'; export default { setLang(lang) { Cookies.set(I18N_LANG, lang); + window.location.reload(); }, getLang(defaultLang) { const localLang = Cookies.get(I18N_LANG); diff --git a/src/views/map/mapdraft/mapedit/dataRelation/routingoperate/detail.vue b/src/views/map/mapdraft/mapedit/dataRelation/routingoperate/detail.vue index 8e6ddc5ee..54f410f1e 100644 --- a/src/views/map/mapdraft/mapedit/dataRelation/routingoperate/detail.vue +++ b/src/views/map/mapdraft/mapedit/dataRelation/routingoperate/detail.vue @@ -92,6 +92,10 @@ export default { columnValue: (row) => { return this.$ConstSelect.translate(row.directionCode, 'DirectionCodeList'); }, tagType: (row) => { if (row.directionCode === '0') { return 'primary'; } else { return 'success'; } } }, + { + title: this.$t('map.destination'), + prop: 'destinationCode' + }, { title: this.$t('map.remarks'), prop: 'remarks' diff --git a/src/views/publish/publishMap/draft.vue b/src/views/publish/publishMap/draft.vue index 5a74c191b..72a05ad05 100644 --- a/src/views/publish/publishMap/draft.vue +++ b/src/views/publish/publishMap/draft.vue @@ -1,6 +1,5 @@