From 6b57369b8f6cd1540ffae8f42de53db638e1e111 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Wed, 19 May 2021 15:45:49 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E8=BD=A6=E7=AB=99=E5=80=BC=E7=8F=AD?= =?UTF-8?q?=E5=91=98=E5=90=8D=E7=A7=B0=E6=98=BE=E7=A4=BA=E8=B0=83=E6=95=B4?= =?UTF-8?q?&=E6=9A=82=E5=81=9C=E5=89=8D=E7=AB=AF=E4=BB=BF=E7=9C=9F?= =?UTF-8?q?=E8=AE=A1=E6=97=B6&=E4=BB=BF=E7=9C=9F=E5=80=8D=E9=80=9F?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=91=98=E5=8F=AF=E8=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/training.js | 4 -- src/views/designPlatform/testRunplan.vue | 2 +- src/views/newMap/displayNew/index.vue | 2 +- src/views/newMap/displayNew/menuSchema.vue | 37 ++++++++++++++++++- .../newMap/displayNew/practiceDisplay.vue | 2 +- src/views/newMap/jointTrainingNew/index.vue | 2 +- .../memberManage/membersManage.vue | 2 +- .../newMap/jointTrainingNew/menuSchema.vue | 34 ++++++++++++++++- 8 files changed, 74 insertions(+), 11 deletions(-) diff --git a/src/store/modules/training.js b/src/store/modules/training.js index a19a62253..b50e3f95d 100644 --- a/src/store/modules/training.js +++ b/src/store/modules/training.js @@ -167,10 +167,6 @@ const training = { state.timeInterval = setInterval(() => { state.usedTime++; }, 1000); - } else { - state.timeInterval = setInterval(() => { - state.initTime += 1000; - }, 1000); } }, stopCountTime: (state) => { diff --git a/src/views/designPlatform/testRunplan.vue b/src/views/designPlatform/testRunplan.vue index 82c153a27..b446bfea1 100644 --- a/src/views/designPlatform/testRunplan.vue +++ b/src/views/designPlatform/testRunplan.vue @@ -143,7 +143,7 @@ export default { if (!resp.data.dataError) { this.$store.dispatch('scriptRecord/updateSimulationPause', resp.data.pause); // 是否暂停判断 this.$store.dispatch('training/setInitTime', +new Date(`${new Date().toLocaleDateString()} ${timeFormat(resp.data.systemTime)}`)); - this.$store.dispatch('training/countTime'); + // this.$store.dispatch('training/countTime'); this.planRunning = resp.data.planRunning; if (resp.data.planRunning) { this.$store.commit('training/start'); diff --git a/src/views/newMap/displayNew/index.vue b/src/views/newMap/displayNew/index.vue index 5871bd1f2..0db771748 100644 --- a/src/views/newMap/displayNew/index.vue +++ b/src/views/newMap/displayNew/index.vue @@ -205,7 +205,7 @@ export default { if (!resp.data.dataError) { this.$store.dispatch('scriptRecord/updateSimulationPause', resp.data.pause); // 是否暂停判断 this.$store.dispatch('training/setInitTime', +new Date(`${new Date().toLocaleDateString()} ${timeFormat(resp.data.systemTime)}`)); - this.$store.dispatch('training/countTime'); + // this.$store.dispatch('training/countTime'); this.$store.dispatch('runPlan/setRunPlanInfo', resp.data.runPlan); this.planRunning = resp.data.planRunning; if (resp.data.planRunning) { diff --git a/src/views/newMap/displayNew/menuSchema.vue b/src/views/newMap/displayNew/menuSchema.vue index 68f54761c..a2d4e9c69 100644 --- a/src/views/newMap/displayNew/menuSchema.vue +++ b/src/views/newMap/displayNew/menuSchema.vue @@ -2,6 +2,14 @@
+ + +