From 968d588914ec84a078a679e3b6588a1f29bd0fe5 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Wed, 5 Aug 2020 13:23:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=92=A4=E9=94=80=E6=9C=AA=E5=AE=8C=E4=BB=BF?= =?UTF-8?q?=E7=9C=9F=E7=8A=B6=E6=80=81=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/index_Common.js | 4 +- src/store/index_HEB.js | 4 +- src/store/modules/simulation.js | 131 -------------------------------- 3 files changed, 2 insertions(+), 137 deletions(-) delete mode 100644 src/store/modules/simulation.js diff --git a/src/store/index_Common.js b/src/store/index_Common.js index 2b2447d26..3d4220bed 100644 --- a/src/store/index_Common.js +++ b/src/store/index_Common.js @@ -16,7 +16,6 @@ import scriptRecord from './modules/scriptRecord'; import ibp from './modules/ibp'; import order from './modules/order'; import iscs from './modules/iscs'; -import simulation from './modules/simulation'; import getters from './getters'; @@ -39,8 +38,7 @@ const store = new Vuex.Store({ scriptRecord, ibp, order, - iscs, - simulation + iscs }, getters }); diff --git a/src/store/index_HEB.js b/src/store/index_HEB.js index 5fd5a9773..295be5d36 100644 --- a/src/store/index_HEB.js +++ b/src/store/index_HEB.js @@ -16,7 +16,6 @@ import scriptRecord from './modules/scriptRecord'; import ibp from './modules/ibp'; import order from './modules/order'; import iscs from './modules/iscs'; -import simulation from './modules/simulation'; import getters from './getters'; @@ -39,8 +38,7 @@ const store = new Vuex.Store({ scriptRecord, ibp, order, - iscs, - simulation + iscs }, getters }); diff --git a/src/store/modules/simulation.js b/src/store/modules/simulation.js deleted file mode 100644 index cce55226b..000000000 --- a/src/store/modules/simulation.js +++ /dev/null @@ -1,131 +0,0 @@ - -const simulation = { - namespaced: true, - state: { - operateMode: null, // 综合演练操作模式(普通模式、故障模式、指令模式) - start: false, // 仿真开始标志 - startCount: 0, // 仿真开始计数器 - overCount: 0, // 仿真结束计数器 - initTime: 0, // 仿真开始时间 - timeInterval: null, // 时间计算定时器 - prdType: '', // 产品类型 - roles: '', // 仿真角色类型 - group: '', // 仿真group - centerStationCode: '', // 显示居中集中站 - memberList: [], // 综合仿真成员列表 - memberData: {}, // 综合仿真成员列表 - simulationUserList: [] // 综合仿真用户列表 - }, - getters: { - operateMode: (state) => { - return state.operateMode; - }, - start: (state) => { - return state.start; - }, - startCount: (state) => { - return state.startCount; - }, - overCount: (state) => { - return state.overCount; - }, - initTime: (state) => { - return state.initTime; - }, - prdType: (state) => { - return state.prdType; - }, - roles: (state) => { - return state.roles; - }, - group: (state) => { - return state.group; - }, - centerStationCode: (state) => { - return state.centerStationCode; - }, - memberList: (state) => { - return state.memberList; - }, - memberData: (state) => { - return state.memberData; - }, - simulationUserList: (state) => { - return state.simulationUserList; - } - }, - mutations: { - setOperateMode: (state, operateMode) => { - state.operateMode = operateMode; - }, - simulationStart: (state) => { - state.start = true; - state.startCount++; - }, - simulationOver: (state) => { - state.start = false; - state.overCount++; - }, - countTime: (state, type) => { - if (state.timeInterval) { - clearInterval(state.timeInterval); - state.timeInterval = null; - } - if (type == 'Lesson') { - state.timeInterval = setInterval(() => { - state.usedTime++; - }, 1000); - } else { - state.timeInterval = setInterval(() => { - state.initTime += 1000; - }, 1000); - } - }, - stopCountTime: (state) => { - if (state.timeInterval) { - clearInterval(state.timeInterval); - state.timeInterval = null; - } - }, - setPrdType: (state, prdType) => { - state.prdType = prdType; - }, - setGroup: (state, group) => { - state.group = group; - }, - setCenterStationCode: (state, centerStationCode) => { - state.centerStationCode = centerStationCode; - } - }, - actions: { - // 修改操作模式 - setOperateMode: ({ commit }, operateMode) => { - commit('setOperateMode', operateMode); - }, - // 仿真开始 - simulationStart: ({ commit }) => { - commit('simulationStart'); - }, - // 仿真结束 - simulationOver: ({ commit }) => { - commit('simulationOver'); - }, - // 停止计时 - setStopCountTime: ({ commit }) => { - commit('stopCountTime'); - }, - // 修改产品 - setPrdType: ({ commit }, prdType) => { - commit('setPrdType', prdType); - }, - // 修改放真group - setGroup: ( { commit }, group ) =>{ - commit('setGroup', group); - }, - // 设置显示集中站 - setCenterStationCode: ( { commit }, group ) => { - commit('setCenterStationCode', group); - } - } -}; -export default simulation;