From 15dafc301d9d2ede984e887507415a1f89608924 Mon Sep 17 00:00:00 2001 From: fan Date: Mon, 28 Nov 2022 10:46:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=B7=AF=E7=A5=A8=E7=B0=BF?= =?UTF-8?q?=E5=86=8C=E5=AE=A2=E6=88=B7=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scripts/errorTip.js | 54 +++- .../newMap/display/newSimulationMenu.vue | 300 ++++++++++++++++++ src/views/newMap/display/setTime.vue | 48 +-- src/views/newMap/display/terminals/index.vue | 8 +- .../newMap/display/terminals/registerBook.vue | 166 ++++++++++ .../newMap/display/terminals/terminalMenu.vue | 34 +- .../terminals/trainTicket/greenLicence.vue | 91 ++++++ .../display/terminals/trainTicket/index.vue | 256 +++++++++++++++ .../terminals/trainTicket/redLicence.vue | 119 +++++++ .../terminals/trainTicket/trainTicket.vue | 95 ++++++ src/views/trainingPlatform/simulation.vue | 2 + 11 files changed, 1108 insertions(+), 65 deletions(-) create mode 100644 src/views/newMap/display/newSimulationMenu.vue create mode 100644 src/views/newMap/display/terminals/registerBook.vue create mode 100644 src/views/newMap/display/terminals/trainTicket/greenLicence.vue create mode 100644 src/views/newMap/display/terminals/trainTicket/index.vue create mode 100644 src/views/newMap/display/terminals/trainTicket/redLicence.vue create mode 100644 src/views/newMap/display/terminals/trainTicket/trainTicket.vue diff --git a/src/scripts/errorTip.js b/src/scripts/errorTip.js index d08104b56..eccf7bfcc 100644 --- a/src/scripts/errorTip.js +++ b/src/scripts/errorTip.js @@ -1,6 +1,48 @@ -export default { - 10002: '您权限已领取权限!', - 10003: '您的权限数量不足!', - 10013: '很抱歉,未查找到您的权限!', - 10014: '很抱歉,您的权限暂不可用!' -}; +export default function getErrorTip(code) { + let message = ''; + switch (code) { + case '10002': + message = '您权限已领取!'; + break; + case '10003': + message = '你的权限数据不足!'; + break; + case '10013': + message = '很抱歉,未查找到您的权限!'; + break; + case '10014': + message = '很抱歉,您的权限暂不可用!'; + break; + case '5001': + message = this.$t('error.mapDataError'); + break; + case '5002': + message = this.$t('error.runningChartDataError'); + break; + case '5003': + message = this.$t('error.runningChartIsNotLoaded'); + break; + case '5004': + message = this.$t('error.runningDataError'); + break; + case '5000': + message = this.$t('error.systemError'); + break; + case '4000': + message = this.$t('error.simulationDoesNotExist'); + break; + case '4001': + message = this.$t('error.simulationOperationIsNotDefined'); + break; + case '4002': + message = this.$t('error.simulationOperationProcessingMethodNotFound'); + break; + case '4003': + message = this.$t('error.simulationOperationFailed'); + break; + case '4004': + message = this.$t('error.operationConflict'); + break; + } + return message; +} diff --git a/src/views/newMap/display/newSimulationMenu.vue b/src/views/newMap/display/newSimulationMenu.vue new file mode 100644 index 000000000..9a6f905bf --- /dev/null +++ b/src/views/newMap/display/newSimulationMenu.vue @@ -0,0 +1,300 @@ + + + + diff --git a/src/views/newMap/display/setTime.vue b/src/views/newMap/display/setTime.vue index d9f8ebf46..663c604c7 100644 --- a/src/views/newMap/display/setTime.vue +++ b/src/views/newMap/display/setTime.vue @@ -1,18 +1,13 @@