大铁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: {
|
||||
|
@ -24,9 +24,13 @@
|
||||
</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;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 {
|
||||
@ -74,17 +76,6 @@ 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: {
|
||||
@ -105,8 +96,6 @@ export default {
|
||||
},
|
||||
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) {
|
||||
@ -116,7 +105,8 @@ export default {
|
||||
this.loading = false;
|
||||
this.doClose();
|
||||
console.error(error);
|
||||
this.$refs.noticeInfo.doShow();
|
||||
// this.$refs.noticeInfo.doShow();
|
||||
this.$message.error('操作失败!');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -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: '总辅助'},
|
||||
|
@ -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