Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/jl-client into test
This commit is contained in:
commit
aaa2cdb557
@ -49,7 +49,7 @@
|
|||||||
<div class="runplanClickBtn">阶段记事</div>
|
<div class="runplanClickBtn">阶段记事</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="runplanStatusGroup">
|
<div class="runplanStatusGroup">
|
||||||
<div class="eachRunplanStatus">2020年11月15日22:23:21</div>
|
<div class="eachRunplanStatus">{{ dateString1 + ' ' + time }}</div>
|
||||||
<div class="eachRunplanStatus">与中心通信正常</div>
|
<div class="eachRunplanStatus">与中心通信正常</div>
|
||||||
<div class="eachRunplanStatus">与车站服务器通信正常</div>
|
<div class="eachRunplanStatus">与车站服务器通信正常</div>
|
||||||
</div>
|
</div>
|
||||||
@ -548,6 +548,8 @@ import Rpsa from '@/assets/ctc_icon/rpsa.png';
|
|||||||
import Rpb from '@/assets/ctc_icon/rpb.png';
|
import Rpb from '@/assets/ctc_icon/rpb.png';
|
||||||
import Rpwp from '@/assets/ctc_icon/rpwp.png';
|
import Rpwp from '@/assets/ctc_icon/rpwp.png';
|
||||||
import Rph from '@/assets/ctc_icon/rph.png';
|
import Rph from '@/assets/ctc_icon/rph.png';
|
||||||
|
import { timeFormat } from '@/utils/date';
|
||||||
|
import { prefixIntrger } from '@/utils/date';
|
||||||
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
||||||
import SendRunplan from './dialog/sendRunplan';
|
import SendRunplan from './dialog/sendRunplan';
|
||||||
import StageRunplan from './dialog/stageRunplan';
|
import StageRunplan from './dialog/stageRunplan';
|
||||||
@ -569,6 +571,9 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
time: '00:00:00',
|
||||||
|
dateString: '',
|
||||||
|
dateString1: '',
|
||||||
isShow:false,
|
isShow:false,
|
||||||
rpMenuPopShow:false,
|
rpMenuPopShow:false,
|
||||||
rpMenuPopTop:0,
|
rpMenuPopTop:0,
|
||||||
@ -603,6 +608,11 @@ export default {
|
|||||||
])
|
])
|
||||||
},
|
},
|
||||||
watch:{
|
watch:{
|
||||||
|
'$store.state.socket.simulationTimeSync': function (time) { // 仿真时间更新
|
||||||
|
this.$store.dispatch('training/setInitTime', +new Date(`${new Date().toLocaleDateString()} ${timeFormat(time)}`));
|
||||||
|
const date = new Date(+new Date(`${new Date().toLocaleDateString()} ${timeFormat(time)}`));
|
||||||
|
this.initDate(date);
|
||||||
|
},
|
||||||
'$store.state.socket.railCtcRunplanChange': function (val) {
|
'$store.state.socket.railCtcRunplanChange': function (val) {
|
||||||
this.loadData();
|
this.loadData();
|
||||||
},
|
},
|
||||||
@ -619,6 +629,16 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
initDate(date) {
|
||||||
|
this.time = `${prefixIntrger(date.getHours(), 2)}:${prefixIntrger(date.getMinutes(), 2)}:${prefixIntrger(date.getSeconds(), 2)}`;
|
||||||
|
const years = date.getFullYear() + '';
|
||||||
|
let months = date.getMonth() + 1 + '';
|
||||||
|
let dates = date.getDate() + '';
|
||||||
|
if (months.length < 2) { months = '0' + months; }
|
||||||
|
if (dates.length < 2) { dates = '0' + dates; }
|
||||||
|
this.dateString = years + months + dates;
|
||||||
|
this.dateString1 = years + '年' + months + '月' + dates + '日';
|
||||||
|
},
|
||||||
judgeColor({row, rowIndex}) {
|
judgeColor({row, rowIndex}) {
|
||||||
if (row.effect) {
|
if (row.effect) {
|
||||||
if (row.passenger == 'PASSENGER') {
|
if (row.passenger == 'PASSENGER') {
|
||||||
|
@ -351,6 +351,11 @@ export default {
|
|||||||
this.readOnlyMap = {};
|
this.readOnlyMap = {};
|
||||||
this.standTrackSectionMap = {};
|
this.standTrackSectionMap = {};
|
||||||
this.trackList = [];
|
this.trackList = [];
|
||||||
|
this.sectionList.forEach(item => {
|
||||||
|
if (item.standTrack) {
|
||||||
|
this.standTrackSectionMap[item.code] = { trackName: item.name, occupied: false, belongStation:item.belongStation, lineMap: {}};
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
'$store.state.socket.railCtcStatusMsg': function (val) {
|
'$store.state.socket.railCtcStatusMsg': function (val) {
|
||||||
if (val && val.length) {
|
if (val && val.length) {
|
||||||
|
Loading…
Reference in New Issue
Block a user