运行图编辑代码调整
This commit is contained in:
parent
c4b88ec9e1
commit
582aa76b4d
@ -190,7 +190,7 @@
|
|||||||
</el-table>
|
</el-table>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row style=" margin-bottom: 5px;margin-top: 10px;">
|
<el-row style=" margin-bottom: 5px;margin-top: 10px;">
|
||||||
{{ $t('planMonitor.modifying.detail') }}
|
{{ '经停转换轨 / 站台轨:' }}
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-table :data="editModel.arriveConfigList" border :height="230">
|
<el-table :data="editModel.arriveConfigList" border :height="230">
|
||||||
@ -406,17 +406,24 @@ export default {
|
|||||||
planId: this.$route.query.planId || this.loadRunPlanId,
|
planId: this.$route.query.planId || this.loadRunPlanId,
|
||||||
SDTNumber: `${this.serviceNumber}${this.tripNumber}`
|
SDTNumber: `${this.serviceNumber}${this.tripNumber}`
|
||||||
};
|
};
|
||||||
this.editModel.routingList = [];
|
this.routingList = [];
|
||||||
getRoutingBySDTNumber(model).then(resp => { // 根据车次号查询交路
|
getRoutingBySDTNumber(model).then(resp => { // 根据车次号查询交路
|
||||||
// const routingObj = resp.data;
|
// const routingObj = resp.data;
|
||||||
const editData = this.$store.state.runPlan.editData[this.serviceNumber];
|
const editData = this.$store.state.runPlan.editData[this.serviceNumber];
|
||||||
if (editData) {
|
if (editData) {
|
||||||
const trainInfo = editData.trainMap[this.tripNumber];
|
const trainInfo = editData.trainMap[this.tripNumber];
|
||||||
const lastIndex = trainInfo.stationTimeList.length - 1;
|
const lastIndex = trainInfo.stationTimeList.length - 1;
|
||||||
|
this.routingList.push({
|
||||||
|
code:resp.data.code,
|
||||||
|
startStationCode:resp.data.startStationCode,
|
||||||
|
endStationCode:resp.data.endStationCode,
|
||||||
|
endSectionCode:resp.data.endSectionCode,
|
||||||
|
startSectionCode:resp.data.startSectionCode
|
||||||
|
});
|
||||||
this.editModel = {
|
this.editModel = {
|
||||||
tripNumber: this.tripNumber,
|
tripNumber: this.tripNumber,
|
||||||
startStationCode: resp.data.startStationCode,
|
startStationCode: resp.data.startStationCode,
|
||||||
startTime: formatTime(trainInfo.stationTimeList[0].secondTime + 7200),
|
startTime: formatTime(trainInfo.stationTimeList[1].secondTime + 7200),
|
||||||
endStationCode: resp.data.endStationCode,
|
endStationCode: resp.data.endStationCode,
|
||||||
endTime: formatTime(trainInfo.stationTimeList[lastIndex].secondTime + 7200),
|
endTime: formatTime(trainInfo.stationTimeList[lastIndex].secondTime + 7200),
|
||||||
routingCode : resp.data.code,
|
routingCode : resp.data.code,
|
||||||
|
Loading…
Reference in New Issue
Block a user