大铁ctc调整 占线板操作调整
This commit is contained in:
parent
b740955d7f
commit
6beeab667c
@ -519,15 +519,45 @@ export const menuOperate = {
|
||||
}
|
||||
},
|
||||
CTC: {
|
||||
// 接预
|
||||
// 完成接预
|
||||
receivingNotice: {
|
||||
operation: OperationEvent.CTCCommand.receivingNotice.menu.operation,
|
||||
cmdType: CMD.CTC.CTC_RECEIVING_NOTICE
|
||||
cmdType: CMD.CTC.CTC_FINISH_RECEIVING_NOTICE
|
||||
},
|
||||
// 发预
|
||||
// 取消接预
|
||||
cancelReceivingNotice: {
|
||||
operation: OperationEvent.CTCCommand.cancelReceivingNotice.menu.operation,
|
||||
cmdType: CMD.CTC.CTC_CANCEL_RECEIVING_NOTICE
|
||||
},
|
||||
// 完成到点
|
||||
finishArrive: {
|
||||
operation: OperationEvent.CTCCommand.finishArrive.menu.operation,
|
||||
cmdType: CMD.CTC.CTC_FINISH_ARRIVE
|
||||
},
|
||||
// 取消到点
|
||||
cancelArrive: {
|
||||
operation: OperationEvent.CTCCommand.cancelArrive.menu.operation,
|
||||
cmdType: CMD.CTC.CTC_CANCEL_ARRIVE
|
||||
},
|
||||
// 完成发预
|
||||
departureNotice: {
|
||||
operation: OperationEvent.CTCCommand.departureNotice.menu.operation,
|
||||
cmdType: CMD.CTC.CTC_DEPARTURE_NOTICE
|
||||
cmdType: CMD.CTC.CTC_FINISH_DEPARTURE_NOTICE
|
||||
},
|
||||
// 取消发预
|
||||
cancelDepartureNotice: {
|
||||
operation: OperationEvent.CTCCommand.cancelDepartureNotice.menu.operation,
|
||||
cmdType: CMD.CTC.CTC_CANCEL_DEPARTURE_NOTICE
|
||||
},
|
||||
// 完成发点
|
||||
finishDeparture: {
|
||||
operation: OperationEvent.CTCCommand.finishDeparture.menu.operation,
|
||||
cmdType: CMD.CTC.CTC_FINISH_DEPARTURE
|
||||
},
|
||||
// 取消发点
|
||||
cancelDeparture: {
|
||||
operation: OperationEvent.CTCCommand.cancelDeparture.menu.operation,
|
||||
cmdType: CMD.CTC.CTC_CANCEL_DEPARTURE
|
||||
},
|
||||
// 自动触发
|
||||
autoTrigger: {
|
||||
|
@ -13,20 +13,24 @@
|
||||
<div>
|
||||
<el-form :model="form" class="demo-form-inline">
|
||||
<el-form-item label="作业任务:">
|
||||
<el-input v-model="form.work" type="textarea" :rows="2" :disabled="true"/>
|
||||
<el-input v-model="form.work" type="textarea" :rows="2" :disabled="true" />
|
||||
</el-form-item>
|
||||
<el-form-item label="操作时间:">
|
||||
<el-input v-model="form.time" type="textarea" :rows="1" :disabled="true"/>
|
||||
<el-input v-model="form.time" type="textarea" :rows="1" :disabled="true" />
|
||||
</el-form-item>
|
||||
<el-form-item label="操作信息:">
|
||||
<el-input v-model="form.info" type="textarea" :rows="2" :disabled="true" />
|
||||
</el-form-item>
|
||||
<el-form-item label="操作信息:">
|
||||
<el-input v-model="form.info" type="textarea" :rows="2" :disabled="true"/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div style="text-align: center;"><el-button v-if="type === 'rec'" style="width: 200px;" @click="commit(menuOperate.CTC.receivingNotice)">完成接预</el-button></div>
|
||||
<div style="text-align: center;margin-top: 10px;"><el-button v-if="type === 'dep'" style="width: 200px;" @click="commit(menuOperate.CTC.departureNotice)">完成发预</el-button></div>
|
||||
<div style="text-align: center;margin-top: 10px;"><el-button v-if="type === 'rec'" style="width: 200px;" disabled>取消接预</el-button></div>
|
||||
<div style="text-align: center;margin-top: 10px;"><el-button v-if="type === 'dep'" style="width: 200px;" disabled>取消接预</el-button></div>
|
||||
<el-button @click="doClose" style="height: 50px;width: 50px;position: relative;left: 370px;">关闭</el-button>
|
||||
<div style="text-align: center;"><el-button v-if="type === 'rec'" style="width: 200px;" @click="commit(menuOperate.CTC.receivingNotice)">完成接预</el-button></div>
|
||||
<div style="text-align: center;margin-top: 10px;"><el-button v-if="type === 'dep'" style="width: 200px;" @click="commit(menuOperate.CTC.departureNotice)">完成发预</el-button></div>
|
||||
<div style="text-align: center;margin-top: 10px;"><el-button v-if="type === 'rec'" style="width: 200px;" @click="commit(menuOperate.CTC.cancelReceivingNotice)">取消接预</el-button></div>
|
||||
<div style="text-align: center;margin-top: 10px;"><el-button v-if="type === 'dep'" style="width: 200px;" @click="commit(menuOperate.CTC.cancelDepartureNotice)">取消发预</el-button></div>
|
||||
<div style="text-align: center;margin-top: 10px;"><el-button v-if="type === 'arrive'" style="width: 200px;" @click="commit(menuOperate.CTC.finishArrive)">完成到点</el-button></div>
|
||||
<div style="text-align: center;margin-top: 10px;"><el-button v-if="type === 'arrive'" style="width: 200px;" @click="commit(menuOperate.CTC.cancelArrive)">取消到点</el-button></div>
|
||||
<div style="text-align: center;margin-top: 10px;"><el-button v-if="type === 'departure'" style="width: 200px;" @click="commit(menuOperate.CTC.finishDeparture)">完成发点</el-button></div>
|
||||
<div style="text-align: center;margin-top: 10px;"><el-button v-if="type === 'departure'" style="width: 200px;" @click="commit(menuOperate.CTC.cancelDeparture)">取消发点</el-button></div>
|
||||
<el-button style="height: 50px;width: 50px;position: relative;left: 370px;" @click="doClose">关闭</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</template>
|
||||
@ -34,8 +38,6 @@
|
||||
<script>
|
||||
import { mapGetters } from 'vuex';
|
||||
import CancelMouseState from '@/mixin/CancelMouseState';
|
||||
import { getUploadFile } from '@/api/pdf';
|
||||
import { DrawingType } from '@/scripts/ConstDic';
|
||||
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
|
||||
|
||||
export default {
|
||||
@ -48,10 +50,10 @@ export default {
|
||||
selected: null,
|
||||
selectedType: '',
|
||||
dialogShow: false,
|
||||
menuOperate: menuOperate,
|
||||
type: '',
|
||||
stationCode: '',
|
||||
tripNumber: '',
|
||||
menuOperate: menuOperate,
|
||||
type: '',
|
||||
stationCode: '',
|
||||
tripNumber: '',
|
||||
loading: false,
|
||||
tableData: [],
|
||||
deviceTypeList: [
|
||||
@ -62,9 +64,9 @@ export default {
|
||||
],
|
||||
deviceIdList: [],
|
||||
form: {
|
||||
work: '',
|
||||
time: '',
|
||||
info: ''
|
||||
work: '',
|
||||
time: '',
|
||||
info: ''
|
||||
}
|
||||
};
|
||||
},
|
||||
@ -74,22 +76,11 @@ export default {
|
||||
]),
|
||||
show() {
|
||||
return this.dialogShow && !this.$store.state.menuOperation.break;
|
||||
},
|
||||
title() {
|
||||
if (this.selectedType === 'normStudy') {
|
||||
return '规范学习';
|
||||
} else if (this.selectedType === 'clCaAn') {
|
||||
return '经典案例分析';
|
||||
} else if (this.selectedType === 'baDeTr') {
|
||||
return '基础设备培训';
|
||||
} else {
|
||||
return '图纸检索';
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
doShow(row, type, stationCode) {
|
||||
this.type = type;
|
||||
this.type = type;
|
||||
this.loading = true;
|
||||
this.stationCode = stationCode;
|
||||
this.tripNumber = row.tripNumber;
|
||||
@ -103,22 +94,21 @@ export default {
|
||||
this.dialogShow = false;
|
||||
this.$store.dispatch('training/emitTipFresh');
|
||||
},
|
||||
commit(type) {
|
||||
this.loading = true;
|
||||
//menuOperate.CTC.receivingNotice
|
||||
|
||||
commitOperate(type, {stationCode: this.stationCode, tripNumber: this.tripNumber}, 3).then(({valid, operate})=>{
|
||||
this.loading = false;
|
||||
if (valid) {
|
||||
this.doClose();
|
||||
}
|
||||
}).catch((error) => {
|
||||
this.loading = false;
|
||||
this.doClose();
|
||||
console.error(error);
|
||||
this.$refs.noticeInfo.doShow();
|
||||
});
|
||||
}
|
||||
commit(type) {
|
||||
this.loading = true;
|
||||
commitOperate(type, {stationCode: this.stationCode, tripNumber: this.tripNumber}, 3).then(({valid, operate})=>{
|
||||
this.loading = false;
|
||||
if (valid) {
|
||||
this.doClose();
|
||||
}
|
||||
}).catch((error) => {
|
||||
this.loading = false;
|
||||
this.doClose();
|
||||
console.error(error);
|
||||
// this.$refs.noticeInfo.doShow();
|
||||
this.$message.error('操作失败!');
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
@ -379,8 +379,14 @@ export default {
|
||||
CMD_DIRECTION_CHANGE: {value: 'Direction_Change', label: '切换方向'}
|
||||
},
|
||||
CTC: {
|
||||
CTC_RECEIVING_NOTICE: {value: 'CTC_RECEIVING_NOTICE', label: '接预'},
|
||||
CTC_DEPARTURE_NOTICE: {value: 'CTC_DEPARTURE_NOTICE', label: '发预'},
|
||||
CTC_FINISH_RECEIVING_NOTICE: {value: 'CTC_FINISH_RECEIVING_NOTICE', label: '完成接预'},
|
||||
CTC_CANCEL_RECEIVING_NOTICE: {value: 'CTC_CANCEL_RECEIVING_NOTICE', label: '取消接预'},
|
||||
CTC_FINISH_ARRIVE: {value: 'CTC_FINISH_ARRIVE', label: '完成到点'},
|
||||
CTC_CANCEL_ARRIVE: {value: 'CTC_CANCEL_ARRIVE', label: '取消到点'},
|
||||
CTC_FINISH_DEPARTURE_NOTICE: {value: 'CTC_FINISH_DEPARTURE_NOTICE', label: '完成发预'},
|
||||
CTC_CANCEL_DEPARTURE_NOTICE: {value: 'CTC_CANCEL_DEPARTURE_NOTICE', label: '取消发预'},
|
||||
CTC_FINISH_DEPARTURE: {value: 'CTC_FINISH_DEPARTURE', label: '完成发点'},
|
||||
CTC_CANCEL_DEPARTURE: {value: 'CTC_CANCEL_DEPARTURE', label: '取消发点'},
|
||||
CTC_ASSIST_PRESS_DOWN_TURN_DIRECTION:{value:'ASSIST_PRESS_DOWN_TURN_DIRECTION', label:'改方'},
|
||||
CTC_AUTO_TRIGGER: {value: 'CTC_AUTO_TRIGGER', label: '自动触发'},
|
||||
CTC_ASSIST_PRESS_MAIN_ASSIST:{value: 'ASSIST_PRESS_MAIN_ASSIST', label: '总辅助'},
|
||||
|
@ -3607,15 +3607,15 @@ export const OperationEvent = {
|
||||
}
|
||||
},
|
||||
CTCCommand: {
|
||||
receivingNotice: {
|
||||
menu: {
|
||||
operation: '1100',
|
||||
receivingNotice: {
|
||||
menu: {
|
||||
operation: '1100',
|
||||
domId: '_Tips-CTC-ReceivingNotice-Menu{TOP}'
|
||||
}
|
||||
},
|
||||
departureNotice: {
|
||||
menu: {
|
||||
operation: '1101',
|
||||
menu: {
|
||||
operation: '1101',
|
||||
domId: '_Tips-CTC-DepartureNotice-Menu{TOP}'
|
||||
}
|
||||
},
|
||||
@ -3626,65 +3626,65 @@ export const OperationEvent = {
|
||||
}
|
||||
},
|
||||
autoTrigger: {
|
||||
menu: {
|
||||
operation: '1103',
|
||||
menu: {
|
||||
operation: '1103',
|
||||
domId: '_Tips-CTC-AutoTrigger-Menu{TOP}'
|
||||
}
|
||||
},
|
||||
assistPressMainAssist:{
|
||||
menu: {
|
||||
operation: '1104',
|
||||
operation: '1104',
|
||||
domId: '_Tips-CTC-AssistPressMainAssist-Menu{TOP}'
|
||||
}
|
||||
},
|
||||
assistPressReceiveAssist:{
|
||||
menu: {
|
||||
operation: '1105',
|
||||
operation: '1105',
|
||||
domId: '_Tips-CTC-AssistPressReceiveAssist-Menu{TOP}'
|
||||
}
|
||||
},
|
||||
assistPressDeliverAssist:{
|
||||
menu: {
|
||||
operation: '1106',
|
||||
operation: '1106',
|
||||
domId: '_Tips-CTC-AssistPressDeliverAssist-Menu{TOP}'
|
||||
}
|
||||
},
|
||||
assistPressBlock:{
|
||||
menu: {
|
||||
operation: '1107',
|
||||
operation: '1107',
|
||||
domId: '_Tips-CTC-AssistPressBlock-Menu{TOP}'
|
||||
}
|
||||
},
|
||||
assistPressRestore:{
|
||||
menu: {
|
||||
operation: '1108',
|
||||
operation: '1108',
|
||||
domId: '_Tips-CTC-AssistPressRestore-Menu{TOP}'
|
||||
}
|
||||
},
|
||||
assistPressAccident:{
|
||||
menu: {
|
||||
operation: '1109',
|
||||
operation: '1109',
|
||||
domId: '_Tips-CTC-AssistPressAccident-Menu{TOP}'
|
||||
}
|
||||
},
|
||||
// 批量修改股道
|
||||
batchModifyTrackSection:{
|
||||
menu: {
|
||||
operation: '1111',
|
||||
operation: '1111',
|
||||
domId: '_Tips-CTC-batchModifyTrackSection-Menu{TOP}'
|
||||
}
|
||||
},
|
||||
// 移除行车日志
|
||||
deleteRunplan:{
|
||||
menu: {
|
||||
operation: '1112',
|
||||
operation: '1112',
|
||||
domId: '_Tips-CTC-deleteRunplan-Menu{TOP}'
|
||||
}
|
||||
},
|
||||
// 修改行车计划的邻站信息
|
||||
modifyAdjacentStation:{
|
||||
menu: {
|
||||
operation: '1113',
|
||||
operation: '1113',
|
||||
domId: '_Tips-CTC-modifyAdjacentStation-Menu{TOP}'
|
||||
}
|
||||
},
|
||||
@ -3708,6 +3708,48 @@ export const OperationEvent = {
|
||||
operation: '1116',
|
||||
domId: '_Tips-CTC-agreeNotcie-Menu{TOP}'
|
||||
}
|
||||
},
|
||||
// 取消接预
|
||||
cancelReceivingNotice: {
|
||||
menu: {
|
||||
operation: '1117',
|
||||
domId: '_Tips-CTC-CancelReceivingNotice-Menu{TOP}'
|
||||
}
|
||||
},
|
||||
// 取消发预
|
||||
cancelDepartureNotice: {
|
||||
menu: {
|
||||
operation: '1118',
|
||||
domId: '_Tips-CTC-CancelDepartureNotice-Menu{TOP}'
|
||||
}
|
||||
},
|
||||
// 完成到点 FINISH_ARRIVE
|
||||
finishArrive: {
|
||||
menu: {
|
||||
operation: '1119',
|
||||
domId: '_Tips-CTC-FinishArrive-Menu{TOP}'
|
||||
}
|
||||
},
|
||||
// 取消到点
|
||||
cancelArrive: {
|
||||
menu: {
|
||||
operation: '1120',
|
||||
domId: '_Tips-CTC-CancelArrive-Menu{TOP}'
|
||||
}
|
||||
},
|
||||
// 完成发点 CTC_FINISH_DEPARTURE
|
||||
finishDeparture: {
|
||||
menu: {
|
||||
operation: '1121',
|
||||
domId: '_Tips-CTC_FinishDeparture-Menu{TOP}'
|
||||
}
|
||||
},
|
||||
// 取消发点
|
||||
cancelDeparture: {
|
||||
menu: {
|
||||
operation: '1122',
|
||||
domId: '_Tips-CTC_CancelDeparture-Menu{TOP}'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -48,7 +48,7 @@
|
||||
>
|
||||
{{ '接路' + (item.receivingRouteLock ? '':getRouteName(item.receivingRouteCode)) }}
|
||||
</div>
|
||||
<div :style="{ background: item.arrive ? '#29CA42': '#ccc' }" class="button-box-fir" style="margin-left: 10px;cursor: default;">到点</div>
|
||||
<div :style="{ background: item.arrive ? '#29CA42': '#ccc' }" class="button-box-fir" style="margin-left: 10px;cursor: default;" @click="doShowRecDep(item, 'arrive')">到点</div>
|
||||
</div>
|
||||
<div v-show="!item.noData">
|
||||
<div>{{ item.arriveTime }}</div>
|
||||
@ -69,7 +69,7 @@
|
||||
>
|
||||
{{ '发路' + (item.departureRouteLock ? '':getRouteName(item.departureRouteCode)) }}
|
||||
</div>
|
||||
<div :style="{ background: item.departure ? '#29CA42': '#ccc' }" class="button-box-fir" style="margin-left: 10px;cursor: default;">发点</div>
|
||||
<div :style="{ background: item.departure ? '#29CA42': '#ccc' }" class="button-box-fir" style="margin-left: 10px;cursor: default;" @click="doShowRecDep(item, 'departure')">发点</div>
|
||||
</div>
|
||||
<div v-show="!item.noData">{{ item.tripNumber }}</div>
|
||||
<div style="width: 120px" :style="{fontWeight: item.occupied? 'bold': 'normal', color:item.occupied? '#f00': '#1e2024' }">{{ item.trackName }}</div>
|
||||
@ -303,9 +303,7 @@ export default {
|
||||
});
|
||||
this.readOnlyMap[item.stationCode] = item.readOnly;
|
||||
}
|
||||
console.log(item.trackView, '******************');
|
||||
if (item && item.trackView && item.trackView.trackLineMap) {
|
||||
console.log(item.trackView.trackLineMap, '******************');
|
||||
for (const key in item.trackView.trackLineMap) {
|
||||
this.standTrackSectionMap[key].lines = item.trackView.trackLineMap[key];
|
||||
}
|
||||
@ -338,11 +336,9 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
console.log(this.trackList, 'trackList', this.standTrackSectionMap);
|
||||
}
|
||||
},
|
||||
'$store.state.map.mapDataLoadedCount': function (val) { // 地图数据加载完成
|
||||
console.log(this.sectionList, 'sectionList');
|
||||
this.sectionList.forEach(item => {
|
||||
if (item.standTrack) {
|
||||
this.standTrackSectionMap[item.code] = { trackName: item.name, occupied: false, belongStation:item.belongStation, lines: [] };
|
||||
@ -438,7 +434,6 @@ export default {
|
||||
},
|
||||
setTrigger() {
|
||||
const param = { ...this.triggerParam, trigger: true };
|
||||
|
||||
commitOperate(menuOperate.CTC.autoTrigger, param, 3).then(({valid, operate})=>{
|
||||
this.loading = false;
|
||||
this.triggerParam = {};
|
||||
@ -456,7 +451,6 @@ export default {
|
||||
},
|
||||
cancelTrigger() {
|
||||
const param = { ...this.triggerParam, trigger: false };
|
||||
console.log(menuOperate.CTC.autoTrigger, 'trigger');
|
||||
commitOperate(menuOperate.CTC.autoTrigger, param, 3).then(({valid, operate})=>{
|
||||
this.triggerParam = {};
|
||||
if (valid) {
|
||||
|
Loading…
Reference in New Issue
Block a user