哈尔滨设备登陆 车辆段 运行图编辑 报错调整
This commit is contained in:
parent
fefbf97c99
commit
b96b77e927
@ -325,7 +325,12 @@ export default {
|
|||||||
this.analyticalTripNumber(serviceObj.trainMap || {});
|
this.analyticalTripNumber(serviceObj.trainMap || {});
|
||||||
},
|
},
|
||||||
tripNumberChange(row) {
|
tripNumberChange(row) {
|
||||||
const serviceNumber = this.$store.state.runPlan.selected.serviceNumber;
|
let serviceNumber;
|
||||||
|
if (this.loadRunPlanId) {
|
||||||
|
serviceNumber = this.$store.state.runPlan.draftSelected.serviceNumber;
|
||||||
|
} else {
|
||||||
|
serviceNumber = this.$store.state.runPlan.selected.serviceNumber;
|
||||||
|
}
|
||||||
let tripNumber = null;
|
let tripNumber = null;
|
||||||
if (row) {
|
if (row) {
|
||||||
const data = [];
|
const data = [];
|
||||||
@ -367,7 +372,6 @@ export default {
|
|||||||
}, 50);
|
}, 50);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.loadRunPlanId) {
|
if (this.loadRunPlanId) {
|
||||||
this.$store.dispatch('runPlan/setDraftSelected', { serviceNumber: serviceNumber, tripNumber: tripNumber });
|
this.$store.dispatch('runPlan/setDraftSelected', { serviceNumber: serviceNumber, tripNumber: tripNumber });
|
||||||
} else {
|
} else {
|
||||||
@ -433,7 +437,11 @@ export default {
|
|||||||
// });
|
// });
|
||||||
// } else {
|
// } else {
|
||||||
getPublishMapInfo(this.$route.query.mapId).then(resp => {
|
getPublishMapInfo(this.$route.query.mapId).then(resp => {
|
||||||
|
if (this.loadRunPlanId) {
|
||||||
|
this.mapName = this.$route.query.planName || this.loadRunPlanName || '';
|
||||||
|
} else {
|
||||||
this.mapName = `${resp.data.name} (${this.$route.query.planName || this.loadRunPlanName || ''})`;
|
this.mapName = `${resp.data.name} (${this.$route.query.planName || this.loadRunPlanName || ''})`;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
// }
|
// }
|
||||||
|
|
||||||
@ -654,7 +662,12 @@ export default {
|
|||||||
},
|
},
|
||||||
refreshRunPlanName(name) {
|
refreshRunPlanName(name) {
|
||||||
getPublishMapInfo(this.$route.query.mapId).then(resp => {
|
getPublishMapInfo(this.$route.query.mapId).then(resp => {
|
||||||
|
if (this.loadRunPlanId) {
|
||||||
|
this.mapName = name;
|
||||||
|
} else {
|
||||||
this.mapName = `${resp.data.name} (${name})`;
|
this.mapName = `${resp.data.name} (${name})`;
|
||||||
|
}
|
||||||
|
|
||||||
this.myChart.setOption({
|
this.myChart.setOption({
|
||||||
title: {
|
title: {
|
||||||
text: this.mapName,
|
text: this.mapName,
|
||||||
|
@ -212,6 +212,7 @@ export default {
|
|||||||
},
|
},
|
||||||
refreshRunPlanName(name) {
|
refreshRunPlanName(name) {
|
||||||
this.$refs.schedule.refreshRunPlanName(name);
|
this.$refs.schedule.refreshRunPlanName(name);
|
||||||
|
this.refreshRunPlanList(this.loadRunPlanId);
|
||||||
this.$router.replace({ path: this.$route.path, query: { ...this.$route.query, planName: name }});
|
this.$router.replace({ path: this.$route.path, query: { ...this.$route.query, planName: name }});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 删除计划
|
// 删除计划
|
||||||
handleDeletePlanningTrain() {
|
handleDeletePlanningTrain() {
|
||||||
const serviceNumber = this.$store.state.runPlan.selected.serviceNumber;
|
const serviceNumber = this.$store.state.runPlan.draftSelected.serviceNumber;
|
||||||
if (serviceNumber) {
|
if (serviceNumber) {
|
||||||
this.$emit('dispatchDialog', {
|
this.$emit('dispatchDialog', {
|
||||||
name: 'offLine', params: {
|
name: 'offLine', params: {
|
||||||
@ -90,7 +90,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleMovePlanningTrain() {
|
handleMovePlanningTrain() {
|
||||||
const serviceNumber = this.$store.state.runPlan.selected.serviceNumber;
|
const serviceNumber = this.$store.state.runPlan.draftSelected.serviceNumber;
|
||||||
if (serviceNumber) {
|
if (serviceNumber) {
|
||||||
this.$emit('dispatchDialog', { name: 'movePlaningTrain', params: { serviceNumber } });
|
this.$emit('dispatchDialog', { name: 'movePlaningTrain', params: { serviceNumber } });
|
||||||
} else {
|
} else {
|
||||||
@ -99,7 +99,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 复制计划
|
// 复制计划
|
||||||
handleDuplicateTrain() {
|
handleDuplicateTrain() {
|
||||||
const serviceNumber = this.$store.state.runPlan.selected.serviceNumber;
|
const serviceNumber = this.$store.state.runPlan.draftSelected.serviceNumber;
|
||||||
if (serviceNumber) {
|
if (serviceNumber) {
|
||||||
this.$emit('dispatchDialog', { name: 'duplicateTrain', params: { serviceNumber } });
|
this.$emit('dispatchDialog', { name: 'duplicateTrain', params: { serviceNumber } });
|
||||||
} else {
|
} else {
|
||||||
@ -108,7 +108,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 添加任务
|
// 添加任务
|
||||||
handleAddTask() {
|
handleAddTask() {
|
||||||
const params = this.$store.state.runPlan.selected;
|
const params = this.$store.state.runPlan.draftSelected;
|
||||||
if (params.serviceNumber && params.tripNumber) {
|
if (params.serviceNumber && params.tripNumber) {
|
||||||
this.$emit('dispatchDialog', { name: 'addTask', params });
|
this.$emit('dispatchDialog', { name: 'addTask', params });
|
||||||
} else {
|
} else {
|
||||||
@ -117,7 +117,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 删除任务
|
// 删除任务
|
||||||
handleDeleteTask() {
|
handleDeleteTask() {
|
||||||
const params = this.$store.state.runPlan.selected;
|
const params = this.$store.state.runPlan.draftSelected;
|
||||||
if (params.serviceNumber && params.tripNumber) {
|
if (params.serviceNumber && params.tripNumber) {
|
||||||
this.$emit('dispatchDialog', { name: 'deleteTask', params });
|
this.$emit('dispatchDialog', { name: 'deleteTask', params });
|
||||||
} else {
|
} else {
|
||||||
@ -126,7 +126,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 修改任务
|
// 修改任务
|
||||||
handleModifyingTask() {
|
handleModifyingTask() {
|
||||||
const params = this.$store.state.runPlan.selected;
|
const params = this.$store.state.runPlan.draftSelected;
|
||||||
if (params.serviceNumber && params.tripNumber) {
|
if (params.serviceNumber && params.tripNumber) {
|
||||||
this.$emit('dispatchDialog', { name: 'modifyingTask', params });
|
this.$emit('dispatchDialog', { name: 'modifyingTask', params });
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user