大铁项目 ctc 发送预告 代码调整

This commit is contained in:
joylink_cuiweidong 2022-06-15 14:18:35 +08:00
parent e697233c6c
commit 244f36842e

View File

@ -699,7 +699,7 @@ export default {
},
//
sendNotcie() {
if (this.currentRow) {
if (this.currentRow && this.currentRow.departRunPlan && this.currentRow.departRunPlan.adjacentMessage == 0) {
this.loading = true;
commitOperate(menuOperate.CTC.sendNotcie, {stationCode:this.currentRow.stationCode, runPlanCode: this.currentRow.code}, 2).then(({valid})=>{
this.loading = false;
@ -718,7 +718,7 @@ export default {
},
//
agreeNotcie() {
if (this.currentRow) {
if (this.currentRow && this.currentRow.arriveRunPlan && this.currentRow.arriveRunPlan.adjacentMessage == 1) {
commitOperate(menuOperate.CTC.agreeNotcie, {stationCode:this.currentRow.stationCode, runPlanCode: this.currentRow.code}, 2).then(({valid})=>{
this.loading = false;
this.clearRpRow();
@ -1045,6 +1045,6 @@ export default {
background-color: #6aa8ec;
color: #fff;
}
.passagerTrain{background:#f00}
.goodTrain{background:#00f}
.passagerTrain{background:#f00;width: 100%;height: 28px;}
.goodTrain{background:#00f;width: 100%;height: 28px;}
</style>