From df4113ff2923b83da71558d8053b98a5a8eb0cd4 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Tue, 22 Oct 2019 14:43:27 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=BB=93=E6=9E=84?= =?UTF-8?q?=E6=95=B4=E7=90=86=20=E4=BF=AE=E6=94=B9=20=E9=80=80=E5=87=BA?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E4=BB=8D=E7=84=B6=E8=87=AA=E5=8A=A8=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E7=9A=84bug=20=E5=AD=90=E7=B3=BB=E7=BB=9F=E7=94=9F?= =?UTF-8?q?=E6=88=90=E6=8E=A5=E5=8F=A3=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/langs/en/systemGenerate.js | 3 +- src/i18n/langs/zh/systemGenerate.js | 3 +- src/scripts/DeviceTypeDic.js | 26 ---- src/store/modules/user.js | 9 +- src/views/designPlatform/home.vue | 2 +- src/views/scriptManage/category/tree.vue | 147 ------------------ src/views/scriptManage/create.vue | 7 +- src/views/scriptManage/home.vue | 47 ------ src/views/scriptManage/index.vue | 60 ------- .../scriptManage/scriptRecord/addAction.vue | 9 -- src/views/systemGenerate/create.vue | 2 +- src/views/systemGenerate/index.vue | 50 ++---- 12 files changed, 29 insertions(+), 336 deletions(-) delete mode 100644 src/scripts/DeviceTypeDic.js delete mode 100644 src/views/scriptManage/category/tree.vue delete mode 100644 src/views/scriptManage/index.vue diff --git a/src/i18n/langs/en/systemGenerate.js b/src/i18n/langs/en/systemGenerate.js index cf112ff3f..4fb398a34 100644 --- a/src/i18n/langs/en/systemGenerate.js +++ b/src/i18n/langs/en/systemGenerate.js @@ -22,5 +22,6 @@ export default { getSubSystemInfoFail: 'Get subsystem infomation failed', updateMapSystemSuccess: 'Update map system success', updateMapSystemFail: 'Update map system failed', - generation: 'One-click Generation' + generation: 'One-click Generation', + deleteData: 'Delete' }; diff --git a/src/i18n/langs/zh/systemGenerate.js b/src/i18n/langs/zh/systemGenerate.js index bf4a97b44..c948c889e 100644 --- a/src/i18n/langs/zh/systemGenerate.js +++ b/src/i18n/langs/zh/systemGenerate.js @@ -22,6 +22,7 @@ export default { getSubSystemInfoFail: '获取子系统信息失败', updateMapSystemSuccess: '更新地图系统成功', updateMapSystemFail: '更新地图系统失败', - generation: '一键生成' + generation: '一键生成', + deleteData: '删除' }; diff --git a/src/scripts/DeviceTypeDic.js b/src/scripts/DeviceTypeDic.js deleted file mode 100644 index 68be8bc23..000000000 --- a/src/scripts/DeviceTypeDic.js +++ /dev/null @@ -1,26 +0,0 @@ -export default { - ConstSelect: { - // 剧本录制模块枚举 - deviceType: [ - {label: '进路', value: 'Route'}, - {label: '区段', value: 'Section'}, - {label: '信号机', value: 'Signal'}, - {label: '站台', value: 'StationStand'}, - {label: '集中站', value: 'Station'}, - {label: '控制模式', value: 'StationControl'}, - {label: '道岔', value: 'Switch'}, - {label: '列车', value: 'Train'} - ], - // 行为触发条件类型 - triggerType: [ - {label: '对话', value: 'Conversation'}, - {label: '设备', value: 'DeviceCondition'}, - {label: '无', value: 'None'} - ], - // 动作类型 - actionType: [ - {label: '对话', value: 'Conversation'}, - {label: '指令', value: 'Command'} - ] - } -}; diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 4a9d2ec3e..dddc1bdf3 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -4,6 +4,7 @@ import { getToken, setToken, removeToken, removeScreenToken, setScreenToken, get import { getUserConfigInfo } from '@/api/management/user'; import { LoginParams } from '@/utils/login'; import { creatSubscribe, perpetualTopic } from '@/utils/stomp'; +import Cookies from 'js-cookie'; const user = { state: { @@ -174,10 +175,10 @@ const user = { FedLogOut({ commit }, clientId) { return new Promise(resolve => { if (clientId == LoginParams.DaPing.clientId) { - commit('SET_TOKENDESIGN', ''); + commit('SET_TOKENSCREEN', ''); removeScreenToken(); } else if (clientId == LoginParams.Design.clientId) { - commit('SET_TOKENSCREEN', ''); + commit('SET_TOKENDESIGN', ''); removeDesignToken(); } // else if (clientId == LoginParams.LianJiHua.clientId) { @@ -201,6 +202,10 @@ const user = { commit('SET_ROLES', []); commit('SET_ID', ''); removeSessionStorage('design'); + Cookies.remove('UserDesignName'); + Cookies.remove('UserDesignToken'); + Cookies.remove('UserName'); + Cookies.remove('UserToken'); handleRemoveToken(); resolve(); }).catch(error => { diff --git a/src/views/designPlatform/home.vue b/src/views/designPlatform/home.vue index b73cbfa7e..76c1054a8 100644 --- a/src/views/designPlatform/home.vue +++ b/src/views/designPlatform/home.vue @@ -4,7 +4,7 @@

城市轨道交通设计平台 - +

diff --git a/src/views/scriptManage/category/tree.vue b/src/views/scriptManage/category/tree.vue deleted file mode 100644 index a31f89370..000000000 --- a/src/views/scriptManage/category/tree.vue +++ /dev/null @@ -1,147 +0,0 @@ - - - diff --git a/src/views/scriptManage/create.vue b/src/views/scriptManage/create.vue index 24a9aa1d9..759fdb286 100644 --- a/src/views/scriptManage/create.vue +++ b/src/views/scriptManage/create.vue @@ -25,8 +25,7 @@ name: '', mapId: '', description:'' - }, - isShow: false, + } } }, props: { @@ -59,9 +58,6 @@ } return crules }, - // title() { - // return '创建剧本' - // } }, mounted() { this.loadInitData(); @@ -101,7 +97,6 @@ }, doClose() { this.$refs.dataform.resetForm(); - this.isShow = false; this.dialogVisible = false } } diff --git a/src/views/scriptManage/home.vue b/src/views/scriptManage/home.vue index ad5ae03fc..661db766e 100644 --- a/src/views/scriptManage/home.vue +++ b/src/views/scriptManage/home.vue @@ -1,56 +1,10 @@