Merge remote-tracking branch 'remotes/origin/test'

This commit is contained in:
dong 2023-01-16 14:20:18 +08:00
commit 47e87c0457
5 changed files with 24 additions and 26 deletions

View File

@ -68,19 +68,19 @@ export default {
tempData: [],
strategyList: [
{
value: '01',
value: 'NONE',
label: '无折返'
},
{
value: '02',
value: 'UNMANNED',
label: '无人折返'
},
{
value: '03',
value: 'AUTO',
label: '自动换端'
},
{
value: '04',
value: 'DEFAULT',
label: '关闭'
}
],

View File

@ -235,7 +235,8 @@ export default {
commit() {
const operate = {
type: MapDeviceType.StationStand.type,
operation: OperationEvent.Command.close.confirm.operation
operation: OperationEvent.Command.close.confirm.operation,
over: true
};
this.loading = true;
@ -252,7 +253,8 @@ export default {
cancel() {
const operate = {
type: MapDeviceType.StationStand.type,
operation: OperationEvent.Command.cancel.menu.operation
operation: OperationEvent.Command.cancel.menu.operation,
cancel: true
};
this.$store.dispatch('trainingNew/next', operate).then(({ valid }) => {

View File

@ -193,6 +193,9 @@ export default {
...mapGetters('map', ['routeList']),
group() {
return this.$route.query.group;
},
roles() {
return this.$store.state.training.roles;
}
},
watch: {
@ -203,8 +206,9 @@ export default {
this.doClose();
}
},
'$store.state.menuOperation.selectedCount': function (val) {
if (this.$store.state.menuOperation.selected._type == 'Signal' && this.$store.state.training.prdType == '09') {
// '$store.state.menuOperation.selectedCount': function (val) {
'$store.state.menuOperation.leftClickCount': function (val) {
if (this.$store.state.menuOperation.selected._type == 'Signal' && this.work == 'localWork' && this.roles == 'DEPOT_DISPATCHER') { //
if (this.buttonOperation) {
this.operationHandler(this.buttonOperation, this.$store.state.menuOperation.selected);
this.$parent.$refs.menuDeplotButton.clearCountDown();
@ -278,7 +282,7 @@ export default {
initMenu() {
this.menu = [];
this.menuNormal.forEach(menuItem => {
menuItem.disabled = !judgeStationControl(this.selected.belongStationCode, this.selected.stationCode, this.work) || menuItem.isDisabled(this.selected, this.work);
menuItem.disabled = (!judgeStationControl(this.selected.belongStationCode, this.selected.stationCode, this.work) && this.roles !== 'DEPOT_DISPATCHER') || menuItem.isDisabled(this.selected, this.work);
menuItem.show = menuItem.isShow(this.selected, this.work);
this.menu.push(menuItem);
});

View File

@ -145,7 +145,6 @@ export default {
},
watch: {
'$store.state.map.mapViewLoadedCount': function (val) { //
this.subscribe('STATE');
this.subscribe('ATS_STATUS');
if (this.isFirst) {
this.$store.dispatch('training/setMapDefaultState');
@ -183,6 +182,7 @@ export default {
this.group = this.$route.query.group;
this.isFirst = true;
this.subscribe('COMMON');
this.subscribe('STATE');
},
beforeDestroy() {
this.clearSubscribe();

View File

@ -46,25 +46,17 @@ export default {
const repaint = this.$store.state.map.initJlmapLoadedCount === 1;
this.$jlmap.setMap(this.mapData, this.mapDevice, logicData, repaint);
if (this.mapData && this.mapData.pictureList) {
const picture = this.mapData.pictureList.find(picture => picture.type === 'dispatchWork');
const picture = this.$store.state.map.map.pictureList.find(picture => picture.type === 'bigScreen');
if (picture) {
this.handlerPictureShow(picture);
} else {
this.$jlmap.amendDevice([...this.sectionList, ...this.signalList, ...this.trainWindowList]);
const list = [];
for (const key in this.mapDevice) {
list.push(this.mapDevice[key]);
this.$store.dispatch('map/setPictureDeviceMap', picture.deviceMap);
const deviceList = [];
const mapDevice = this.$store.state.map.mapDevice;
for (const deviceCode in mapDevice) {
deviceList.push(deviceCode);
}
this.$jlmap.updateShowStation(list);
this.$jlmap.updatePicture(deviceList);
this.$jlmap.updateTransform(picture.scaling, picture.origin);
}
} else {
this.$jlmap.amendDevice([...this.sectionList, ...this.signalList, ...this.trainWindowList]);
const list = [];
for (const key in this.mapDevice) {
list.push(this.mapDevice[key]);
}
this.$jlmap.updateShowStation(list);
}
this.updateJlmapMode('05');
},