发送发车预告 同意发车预告 指令添加
This commit is contained in:
parent
e2ccfa8ca4
commit
9e917f09eb
@ -553,6 +553,16 @@ export const menuOperate = {
|
|||||||
modifyTripNumber:{
|
modifyTripNumber:{
|
||||||
operation: OperationEvent.CTCCommand.modifyTripNumber.menu.operation,
|
operation: OperationEvent.CTCCommand.modifyTripNumber.menu.operation,
|
||||||
cmdType: CMD.CTC.CTC_MODIFY_TRIP_NUMBER
|
cmdType: CMD.CTC.CTC_MODIFY_TRIP_NUMBER
|
||||||
|
},
|
||||||
|
// 发送发车预告
|
||||||
|
sendNotcie:{
|
||||||
|
operation: OperationEvent.CTCCommand.sendNotcie.menu.operation,
|
||||||
|
cmdType: CMD.CTC.CTC_SEND_NOTICE
|
||||||
|
},
|
||||||
|
// 同意发车预告
|
||||||
|
agreeNotcie:{
|
||||||
|
operation: OperationEvent.CTCCommand.agreeNotcie.menu.operation,
|
||||||
|
cmdType: CMD.CTC.CTC_AGREE_NOTICE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,18 +21,13 @@
|
|||||||
<el-button :id="domIdCancel" @click="cancel">取 消</el-button>
|
<el-button :id="domIdCancel" @click="cancel">取 消</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<notice-info ref="noticeInfo" pop-class="chengdou-03__systerm" />
|
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
|
||||||
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
|
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
|
||||||
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
|
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
|
||||||
export default {
|
export default {
|
||||||
name: 'DeleteRunplan',
|
name: 'DeleteRunplan',
|
||||||
components: {
|
|
||||||
NoticeInfo
|
|
||||||
},
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
dialogShow: false,
|
dialogShow: false,
|
||||||
@ -84,7 +79,7 @@ export default {
|
|||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.$emit('clearRpRow');
|
this.$emit('clearRpRow');
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow();
|
this.$emit('noticeInfo');
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
cancel() {
|
cancel() {
|
||||||
|
@ -54,19 +54,14 @@
|
|||||||
<el-button :id="domIdCancel" @click="cancel">取 消</el-button>
|
<el-button :id="domIdCancel" @click="cancel">取 消</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<notice-info ref="noticeInfo" pop-class="chengdou-03__systerm" />
|
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
|
||||||
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
|
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
|
||||||
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
|
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
|
||||||
export default {
|
export default {
|
||||||
name: 'ModifyAdjacentStation',
|
name: 'ModifyAdjacentStation',
|
||||||
components: {
|
|
||||||
NoticeInfo
|
|
||||||
},
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
dialogShow: false,
|
dialogShow: false,
|
||||||
@ -126,7 +121,7 @@ export default {
|
|||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.$emit('clearRpRow');
|
this.$emit('clearRpRow');
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow();
|
this.$emit('noticeInfo');
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
cancel() {
|
cancel() {
|
||||||
|
@ -65,19 +65,14 @@
|
|||||||
<el-button :id="domIdCancel" @click="cancel">取 消</el-button>
|
<el-button :id="domIdCancel" @click="cancel">取 消</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<notice-info ref="noticeInfo" pop-class="chengdou-03__systerm" />
|
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
|
||||||
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
|
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
|
||||||
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
|
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
|
||||||
export default {
|
export default {
|
||||||
name: 'ModifyTripNumber',
|
name: 'ModifyTripNumber',
|
||||||
components: {
|
|
||||||
NoticeInfo
|
|
||||||
},
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
dialogShow: false,
|
dialogShow: false,
|
||||||
@ -144,7 +139,7 @@ export default {
|
|||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.$emit('clearRpRow');
|
this.$emit('clearRpRow');
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow();
|
this.$emit('noticeInfo');
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
cancel() {
|
cancel() {
|
||||||
|
@ -212,7 +212,7 @@ export default {
|
|||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
// this.$refs.noticeInfo.doShow();
|
this.$emit('noticeInfo');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,8 +58,8 @@
|
|||||||
<div class="runplanContentL">
|
<div class="runplanContentL">
|
||||||
<div class="runplanVLine" />
|
<div class="runplanVLine" />
|
||||||
<div class="runplanContentLIn">
|
<div class="runplanContentLIn">
|
||||||
<div class="runplanContentBtn">预告(F1)</div>
|
<div class="runplanContentBtn" @click="sendNotcie">预告(F1)</div>
|
||||||
<div class="runplanContentBtn">同意(F2)</div>
|
<div class="runplanContentBtn" @click="agreeNotcie">同意(F2)</div>
|
||||||
<div class="runplanContentBtn">到达(F3)</div>
|
<div class="runplanContentBtn">到达(F3)</div>
|
||||||
<div class="runplanContentBtn">出发(F4)</div>
|
<div class="runplanContentBtn">出发(F4)</div>
|
||||||
<div class="runplanContentBtn">通过(F11)</div>
|
<div class="runplanContentBtn">通过(F11)</div>
|
||||||
@ -465,10 +465,11 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<send-runplan ref="sendRunplan" @closeFlash="closeFlash" />
|
<send-runplan ref="sendRunplan" @closeFlash="closeFlash" @noticeInfo="noticeInfo" />
|
||||||
<modify-adjacent-station ref="modifyAdjacentStation" @clearRpRow="clearRpRow" />
|
<modify-adjacent-station ref="modifyAdjacentStation" @clearRpRow="clearRpRow" @noticeInfo="noticeInfo" />
|
||||||
<delete-runplan ref="deleteRunplan" @clearRpRow="clearRpRow" />
|
<delete-runplan ref="deleteRunplan" @clearRpRow="clearRpRow" @noticeInfo="noticeInfo" />
|
||||||
<modify-trip-number ref="modifyTripNumber" @clearRpRow="clearRpRow" />
|
<modify-trip-number ref="modifyTripNumber" @clearRpRow="clearRpRow" @noticeInfo="noticeInfo" />
|
||||||
|
<notice-info ref="noticeInfo" pop-class="chengdou-03__systerm" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@ -484,10 +485,12 @@ import Rpsa from '@/assets/ctc_icon/rpsa.png';
|
|||||||
import Rpb from '@/assets/ctc_icon/rpb.png';
|
import Rpb from '@/assets/ctc_icon/rpb.png';
|
||||||
import Rpwp from '@/assets/ctc_icon/rpwp.png';
|
import Rpwp from '@/assets/ctc_icon/rpwp.png';
|
||||||
import Rph from '@/assets/ctc_icon/rph.png';
|
import Rph from '@/assets/ctc_icon/rph.png';
|
||||||
|
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
||||||
import SendRunplan from './dialog/sendRunplan';
|
import SendRunplan from './dialog/sendRunplan';
|
||||||
import DeleteRunplan from './dialog/deleteRunplan';
|
import DeleteRunplan from './dialog/deleteRunplan';
|
||||||
import ModifyAdjacentStation from './dialog/modifyAdjacentStation';
|
import ModifyAdjacentStation from './dialog/modifyAdjacentStation';
|
||||||
import ModifyTripNumber from './dialog/modifyTripNumber';
|
import ModifyTripNumber from './dialog/modifyTripNumber';
|
||||||
|
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
|
||||||
import { copyAssign } from '@/utils/index';
|
import { copyAssign } from '@/utils/index';
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
export default {
|
export default {
|
||||||
@ -496,7 +499,8 @@ export default {
|
|||||||
SendRunplan,
|
SendRunplan,
|
||||||
DeleteRunplan,
|
DeleteRunplan,
|
||||||
ModifyAdjacentStation,
|
ModifyAdjacentStation,
|
||||||
ModifyTripNumber
|
ModifyTripNumber,
|
||||||
|
NoticeInfo
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -668,6 +672,46 @@ export default {
|
|||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
this.rpMenuPopShow = false;
|
this.rpMenuPopShow = false;
|
||||||
this.$refs.deleteRunplan.doShow(this.currentRow);
|
this.$refs.deleteRunplan.doShow(this.currentRow);
|
||||||
|
},
|
||||||
|
// 发送发车预告
|
||||||
|
sendNotcie() {
|
||||||
|
if (this.currentRow) {
|
||||||
|
this.loading = true;
|
||||||
|
commitOperate(menuOperate.CTC.sendNotcie, {stationCode:this.currentRow.stationCode, runPlanCode: this.currentRow.code}, 2).then(({valid})=>{
|
||||||
|
this.loading = false;
|
||||||
|
this.clearRpRow();
|
||||||
|
if (valid) {
|
||||||
|
this.doClose();
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.loading = false;
|
||||||
|
this.clearRpRow();
|
||||||
|
this.doClose();
|
||||||
|
this.noticeInfo();
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 同意发车预告
|
||||||
|
agreeNotcie() {
|
||||||
|
if (this.currentRow) {
|
||||||
|
commitOperate(menuOperate.CTC.agreeNotcie, {stationCode:this.currentRow.stationCode, runPlanCode: this.currentRow.code}, 2).then(({valid})=>{
|
||||||
|
this.loading = false;
|
||||||
|
this.clearRpRow();
|
||||||
|
if (valid) {
|
||||||
|
this.doClose();
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.loading = false;
|
||||||
|
this.clearRpRow();
|
||||||
|
this.doClose();
|
||||||
|
this.noticeInfo();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
noticeInfo() {
|
||||||
|
this.$refs.noticeInfo.doShow();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -819,6 +863,7 @@ export default {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 9px 0px;
|
padding: 9px 0px;
|
||||||
border-bottom: 1px #ccc solid;
|
border-bottom: 1px #ccc solid;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.rpDispacherCommand{margin-left: 10px;}
|
.rpDispacherCommand{margin-left: 10px;}
|
||||||
.runplanClickBtn{
|
.runplanClickBtn{
|
||||||
|
@ -392,6 +392,11 @@ export default {
|
|||||||
CTC_BATCH_MODIFY_RUN_PLAN:{value: 'CTC_BATCH_MODIFY_RUN_PLAN', label: '批量修改股道'},
|
CTC_BATCH_MODIFY_RUN_PLAN:{value: 'CTC_BATCH_MODIFY_RUN_PLAN', label: '批量修改股道'},
|
||||||
CTC_REMOVE_RUN_PLAN:{value: 'CTC_REMOVE_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)'}
|
CTC_MODIFY_TRIP_NUMBER:{value: 'CTC_MODIFY_TRIP_NUMBER', label: '修改车次号(大铁CTC)'},
|
||||||
|
CTC_SEND_NOTICE:{value: 'CTC_SEND_NOTICE', label: '发送发车预告'},
|
||||||
|
CTC_AGREE_NOTICE:{value: 'CTC_AGREE_NOTICE', label: '同意发车预告'}
|
||||||
|
// 参数:
|
||||||
|
// stationCode 车站编码
|
||||||
|
// runPlanCode 运行编码
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -3694,6 +3694,20 @@ export const OperationEvent = {
|
|||||||
operation: '1114',
|
operation: '1114',
|
||||||
domId: '_Tips-CTC-modifyTripNumber-Menu{TOP}'
|
domId: '_Tips-CTC-modifyTripNumber-Menu{TOP}'
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
// 发送发车预告
|
||||||
|
sendNotcie:{
|
||||||
|
menu: {
|
||||||
|
operation: '1115',
|
||||||
|
domId: '_Tips-CTC-sendNotcie-Menu{TOP}'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 同意发车预告
|
||||||
|
agreeNotcie:{
|
||||||
|
menu: {
|
||||||
|
operation: '1116',
|
||||||
|
domId: '_Tips-CTC-agreeNotcie-Menu{TOP}'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user