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 @@
+
+
+
IBP盘
@@ -43,6 +51,7 @@ import { getToken } from '@/utils/auth';
import { getIbpInfoByStation } from '@/api/ibp';
import { loadRunPlanData } from '@/utils/loaddata';
import { EventBus } from '@/scripts/event-bus';
+import { timesSpeedPlayback } from '@/api/rtSimulation';
// 右上角操作
export default {
@@ -74,7 +83,20 @@ export default {
viewDisabled: true,
swch: '02',
isScriptCommand:false,
- faultMode: false
+ faultMode: false,
+ speedList:[
+ { value: 1, label: '1倍速' },
+ { value: 2, label: '2倍速' },
+ { value: 3, label: '3倍速' },
+ { value: 4, label: '4倍速' },
+ { value: 5, label: '5倍速' },
+ { value: 6, label: '6倍速' },
+ { value: 7, label: '7倍速' },
+ { value: 8, label: '8倍速' },
+ { value: 9, label: '9倍速' },
+ { value: 10, label: '10倍速' }
+ ],
+ speed: 1
// firstLoad: true
};
},
@@ -108,6 +130,9 @@ export default {
},
isContest() {
return this.project === 'drts';
+ },
+ isAdmin() {
+ return this.$store.state.user.roles.includes('04') || this.$store.state.user.roles.includes('05');
}
},
watch: {
@@ -125,6 +150,9 @@ export default {
},
'$store.state.runPlan.loadRunPlanCount': function () {
this.viewDisabled = false;
+ },
+ '$store.state.socket.simulationSpeed': function (val) {
+ this.speed = val;
}
},
mounted() {
@@ -166,6 +194,13 @@ export default {
// }
// this.$store.dispatch('training/changeOperateMode', { mode: mode });
// },
+ speedChange(val) {
+ timesSpeedPlayback(this.$route.query.group, val).then(resp => {
+ this.$message.success(`设置${val}倍速成功!`);
+ }).catch(e => {
+ this.$message.error('设置倍速失败!');
+ });
+ },
setFault() {
this.$refs.faultChoose.doShow();
},
diff --git a/src/views/newMap/displayNew/practiceDisplay.vue b/src/views/newMap/displayNew/practiceDisplay.vue
index 2781760f2..418ba98c3 100644
--- a/src/views/newMap/displayNew/practiceDisplay.vue
+++ b/src/views/newMap/displayNew/practiceDisplay.vue
@@ -289,7 +289,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/jointTrainingNew/index.vue b/src/views/newMap/jointTrainingNew/index.vue
index a746650b6..2c93bd819 100644
--- a/src/views/newMap/jointTrainingNew/index.vue
+++ b/src/views/newMap/jointTrainingNew/index.vue
@@ -314,7 +314,7 @@ export default {
if (resp && resp.code == 200 && resp.data && !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);
if (resp.data.planRunning) {
this.$store.dispatch('training/start');// 仿真开始按计划行车
diff --git a/src/views/newMap/jointTrainingNew/memberManage/membersManage.vue b/src/views/newMap/jointTrainingNew/memberManage/membersManage.vue
index 918b6bd64..67c46434b 100644
--- a/src/views/newMap/jointTrainingNew/memberManage/membersManage.vue
+++ b/src/views/newMap/jointTrainingNew/memberManage/membersManage.vue
@@ -162,7 +162,7 @@ export default {
depotDispatcherList.push(this.memberData[item.id]);
break;
case 'STATION_SUPERVISOR':
- this.memberData[item.id].labelName = '值班员-' + (item.name || device.name);
+ this.memberData[item.id].labelName = '值班员-' + device.name + (item.name ? `-${item.name }` : '');
stationSupervisorList.push(this.memberData[item.id]);
break;
case 'DRIVER':
diff --git a/src/views/newMap/jointTrainingNew/menuSchema.vue b/src/views/newMap/jointTrainingNew/menuSchema.vue
index d7eb53ca2..fdf8bd004 100644
--- a/src/views/newMap/jointTrainingNew/menuSchema.vue
+++ b/src/views/newMap/jointTrainingNew/menuSchema.vue
@@ -4,6 +4,14 @@
+
+
+
IBP盘
大屏
@@ -33,6 +41,7 @@ import SelectIbp from '@/views/newMap/displayNew/demon/selectIbp';
import { getIbpInfoByStation } from '@/api/ibp';
import { loadRunPlanData } from '@/utils/loaddata';
import { EventBus } from '@/scripts/event-bus';
+import { timesSpeedPlayback } from '@/api/rtSimulation';
import { queryHasIscs } from '@/api/iscs';
export default {
name: 'MenuDemonSchema',
@@ -98,7 +107,20 @@ export default {
faultMode: false,
directiveMode: false,
firstLoad: true,
- iscsShow:false
+ iscsShow:false,
+ speedList:[
+ { value: 1, label: '1倍速' },
+ { value: 2, label: '2倍速' },
+ { value: 3, label: '3倍速' },
+ { value: 4, label: '4倍速' },
+ { value: 5, label: '5倍速' },
+ { value: 6, label: '6倍速' },
+ { value: 7, label: '7倍速' },
+ { value: 8, label: '8倍速' },
+ { value: 9, label: '9倍速' },
+ { value: 10, label: '10倍速' }
+ ],
+ speed: 1
};
},
computed: {
@@ -122,6 +144,9 @@ export default {
},
hasBigScreen() {
return this.bigScreenConfig.bigScreenSplitConfig && this.bigScreenConfig.bigScreenSplitConfig.length;
+ },
+ isSystemAdmin() {
+ return this.$store.state.user.roles.includes('04') || this.$store.state.user.roles.includes('05');
}
},
watch: {
@@ -255,6 +280,13 @@ export default {
});
window.open(routeData.href, '_blank');
},
+ speedChange(val) {
+ timesSpeedPlayback(this.$route.query.group, val).then(resp => {
+ this.$message.success(`设置${val}倍速成功!`);
+ }).catch(e => {
+ this.$message.error('设置倍速失败!');
+ });
+ },
// 点击ibp预览
goIbp() {
// this.$refs.selectIbp.doShow();
From 999c0197cf1e4bd8905b8bad5cff476fe048237d Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Wed, 19 May 2021 15:58:52 +0800
Subject: [PATCH 2/3] =?UTF-8?q?=E5=8C=BA=E5=9F=9F=E9=80=89=E6=8B=A9?=
=?UTF-8?q?=E4=B8=8D=E9=9A=8F=E4=BB=BF=E7=9C=9F=E8=A7=92=E8=89=B2=E5=8F=98?=
=?UTF-8?q?=E5=8C=96=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/store/modules/training.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/store/modules/training.js b/src/store/modules/training.js
index b50e3f95d..746f36542 100644
--- a/src/store/modules/training.js
+++ b/src/store/modules/training.js
@@ -237,6 +237,7 @@ const training = {
user.online = item.online;
user.memberId = item.memberId;
user.role = item.role;
+ user.type = item.type;
user.deviceCode = item.deviceCode;
memberIndex = index;
}
From e6e09d24fb6ab44dd26d6b7e16788b6546d94294 Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Wed, 19 May 2021 16:46:07 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/jmapNew/theme/factory.js | 22 +++-
.../theme/nanjing_02/menus/dialog/tra.vue | 116 ++++++++++++++++++
.../theme/nanjing_02/menus/menuBar.vue | 9 +-
src/jmapNew/theme/xian_03/planConfig.js | 104 ++++++++++++++++
4 files changed, 249 insertions(+), 2 deletions(-)
create mode 100644 src/jmapNew/theme/nanjing_02/menus/dialog/tra.vue
create mode 100644 src/jmapNew/theme/xian_03/planConfig.js
diff --git a/src/jmapNew/theme/factory.js b/src/jmapNew/theme/factory.js
index 2b8403844..707164725 100644
--- a/src/jmapNew/theme/factory.js
+++ b/src/jmapNew/theme/factory.js
@@ -52,6 +52,26 @@ class Theme {
'14': 'nanjing_02', // 南京二号线
'15': 'datie_01'
};
+
+ this._runplan = {
+ '00': 'aus_00',
+ '01': 'chengdu_01',
+ '02': 'fuzhou_01',
+ '03': 'beijing_01',
+ '04': 'chengdu_03',
+ '05': 'fuzhou_01', // 国际版运行图皮肤 指向05 福州线路
+ '06': 'ningbo_01',
+ '07': 'haerbin_01', // 哈尔滨培训线路
+ '08': 'foshan_01',
+ '09': 'xian_02',
+ '10': 'xian_01',
+ '11': 'xian_03',
+ '12': 'ningbo_03',
+ '13': 'race_01',
+ '14': 'nanjing_02', // 南京二号线
+ '15': 'datie_01'
+ };
+
this._localShowMode = { // 现地显示模式
'01': 'all', // 成都一 全显
'02': 'all', // 福州一 全显
@@ -78,7 +98,7 @@ class Theme {
// 新版本
loadPlanParser(code) {
- return PlanParser.load(require(`./${this._mapMenu[code || this._code]}/planConfig`).default);
+ return PlanParser.load(require(`./${this._runplan[code || this._code]}/planConfig`).default);
}
// 共有字段转换
diff --git a/src/jmapNew/theme/nanjing_02/menus/dialog/tra.vue b/src/jmapNew/theme/nanjing_02/menus/dialog/tra.vue
new file mode 100644
index 000000000..f7a76b843
--- /dev/null
+++ b/src/jmapNew/theme/nanjing_02/menus/dialog/tra.vue
@@ -0,0 +1,116 @@
+
+
+
+
+
+
+
diff --git a/src/jmapNew/theme/nanjing_02/menus/menuBar.vue b/src/jmapNew/theme/nanjing_02/menus/menuBar.vue
index ec526437a..aaaab5155 100644
--- a/src/jmapNew/theme/nanjing_02/menus/menuBar.vue
+++ b/src/jmapNew/theme/nanjing_02/menus/menuBar.vue
@@ -95,7 +95,7 @@
车场
轨道
系统
- 列车
+ 列车
联锁
@@ -171,6 +171,7 @@
+