大铁项目 行车日志 修改车次号 代码调整

This commit is contained in:
joylink_cuiweidong 2022-06-09 17:16:01 +08:00
parent 602732bb6d
commit c83cf31bf3
5 changed files with 27 additions and 9 deletions

View File

@ -553,6 +553,11 @@ export const menuOperate = {
modifyAdjacentStation:{
operation: OperationEvent.CTCCommand.modifyAdjacentStation.menu.operation,
cmdType: CMD.CTC.CTC_MODIFY_ADJACENT_STATION
},
// 修改车次号(大铁CTC)
modifyTripNumber:{
operation: OperationEvent.CTCCommand.modifyTripNumber.menu.operation,
cmdType: CMD.CTC.CTC_MODIFY_TRIP_NUMBER
}
}

View File

@ -26,10 +26,10 @@
:value="item.code"
/>
</el-select>
<span>站驶来</span>
<div style="display:inline-block">站驶来</div>
</div>
<div class="adjacentStationEnd">
<span>驶向</span>
<div style="display:inline-block">驶向</div>
<el-select
v-model="model.arriveStationCode"
placeholder=""
@ -43,7 +43,7 @@
:value="item.code"
/>
</el-select>
<span></span>
<div style="display:inline-block"></div>
</div>
</div>
<el-row justify="center" class="button-group">
@ -101,8 +101,8 @@ export default {
doShow(row) {
this.model.stationCode = row.stationCode;
this.model.runPlanCode = row.code;
this.model.arriveStationCode = row.arriveStationCode || '';
this.model.departStationCode = row.departStationCode || '';
this.model.arriveStationCode = (row.arriveRunPlan && row.arriveRunPlan.stationCode) || '';
this.model.departStationCode = (row.departRunPlan && row.departRunPlan.stationCode) || '';
this.tripNumber = row.tripNumber;
this.dialogShow = true;
this.$nextTick(function () {

View File

@ -464,6 +464,7 @@
<send-runplan ref="sendRunplan" @closeFlash="closeFlash" />
<modify-adjacent-station ref="modifyAdjacentStation" @clearRpRow="clearRpRow" />
<delete-runplan ref="deleteRunplan" @clearRpRow="clearRpRow" />
<modify-trip-number ref="modifyTripNumber" @clearRpRow="clearRpRow" />
</div>
</template>
<script>
@ -482,13 +483,15 @@ import Rph from '@/assets/ctc_icon/rph.png';
import SendRunplan from './dialog/sendRunplan';
import DeleteRunplan from './dialog/deleteRunplan';
import ModifyAdjacentStation from './dialog/modifyAdjacentStation';
import ModifyTripNumber from './dialog/modifyTripNumber';
import { mapGetters } from 'vuex';
export default {
name:'RunplanPane',
components: {
SendRunplan,
DeleteRunplan,
ModifyAdjacentStation
ModifyAdjacentStation,
ModifyTripNumber
},
data() {
return {
@ -638,8 +641,10 @@ export default {
this.rpMenuPopShow = false;
},
//
modifyTripNumber() {
modifyTripNumber(event) {
event.stopPropagation();
this.rpMenuPopShow = false;
this.$refs.modifyTripNumber.doShow(this.currentRow);
},
//
modifyAdjacentStation(event) {

View File

@ -392,6 +392,7 @@ export default {
CTC_MODIFY_TRACK_SECTION:{value: 'CTC_MODIFY_TRACK_SECTION', label: '修改股道'},
CTC_BATCH_MODIFY_RUN_PLAN:{value: 'CTC_BATCH_MODIFY_RUN_PLAN', label: '批量修改股道'},
CTC_REMOVE_RUN_PLAN:{value: 'CTC_REMOVE_RUN_PLAN', label: '移除行车日志'},
CTC_MODIFY_ADJACENT_STATION:{value: 'CTC_MODIFY_ADJACENT_STATION', label: '修改邻站信息'}
CTC_MODIFY_ADJACENT_STATION:{value: 'CTC_MODIFY_ADJACENT_STATION', label: '修改邻站信息'},
CTC_MODIFY_TRIP_NUMBER:{value: 'CTC_MODIFY_TRIP_NUMBER', label: '修改车次号(大铁CTC)'}
}
};

View File

@ -3694,6 +3694,13 @@ export const OperationEvent = {
operation: '1113',
domId: '_Tips-CTC-modifyAdjacentStation-Menu{TOP}'
}
},
// 修改车次号(大铁CTC)
modifyTripNumber:{
menu: {
operation: '1114',
domId: '_Tips-CTC-modifyTripNumber-Menu{TOP}'
}
}
}