南京二号线atr调整

This commit is contained in:
fan 2021-10-15 11:03:41 +08:00
parent 9960b87c42
commit f0328df54f

View File

@ -15,7 +15,7 @@
</el-row>
<el-row style="padding: 5px;">
<el-col :span="11" style="height: 28px;line-height: 28px;">
<el-radio v-model="train" label="all">所有列车</el-radio>
<el-radio v-model="train" :disabled="train === 'one'" label="all">所有列车</el-radio>
</el-col>
<el-col :span="4" style="height: 28px;line-height: 28px;text-align: right;">
<div>当前状态</div>
@ -26,7 +26,7 @@
</el-row>
<el-row style="padding: 5px;">
<el-col :span="4" style="height: 28px;line-height: 28px;">
<el-radio v-model="train" label="one">单列车号</el-radio>
<el-radio v-model="train" :disabled="train === 'all'" label="one">单列车号</el-radio>
</el-col>
<el-col :span="7">
<el-select v-model="trainCode" :disabled="train !== 'one'" style="width: 160px" size="mini" placeholder="请选择">
@ -53,7 +53,7 @@
</el-row>
<el-row style="padding: 5px;">
<el-col :span="12" style="height: 28px;line-height: 28px;">
<el-radio v-model="atrMode" label="TIME_TABLE_REGULATION">时刻表调度</el-radio>
<el-radio v-model="atrMode" :disabled="!train" label="TIME_TABLE_REGULATION">时刻表调度</el-radio>
</el-col>
<el-col :span="6" style="height: 28px;line-height: 28px;">
<el-radio v-model="intervalMode" :disabled="atrMode !== 'HEADWAY_REGULATION_FRONT'" label="trainNumber">列车个数</el-radio>
@ -72,7 +72,7 @@
</el-row>
<el-row style="padding: 5px;">
<el-col :span="12" style="height: 28px;line-height: 28px;">
<el-radio v-model="atrMode" label="HEADWAY_REGULATION_FRONT">列车间隔调度-前调</el-radio>
<el-radio v-model="atrMode" :disabled="!train || train === 'one'" label="HEADWAY_REGULATION_FRONT">列车间隔调度-前调</el-radio>
</el-col>
<el-col :span="12">
<el-button :disabled="!intervalMode" style="height: 28px;width: 260px;" @click="computeInterval">计算</el-button>
@ -80,7 +80,7 @@
</el-row>
<el-row style="padding: 5px;">
<el-col :span="12">
<el-radio v-model="atrMode" label="HEADWAY_REGULATION_FRONT_AND_BACK">列车间隔调度-前调+后调</el-radio>
<el-radio v-model="atrMode" :disabled="!train || train === 'one'" label="HEADWAY_REGULATION_FRONT_AND_BACK">列车间隔调度-前调+后调</el-radio>
</el-col>
<el-col :span="2" style="height: 28px;line-height: 28px;">
<span>最小</span>
@ -105,7 +105,7 @@
</el-row>
<el-row style="padding: 5px;">
<el-col :span="12" style="height: 28px;line-height: 28px;">
<el-radio v-model="atrMode" label="REGULATION_OFF">关闭自动调度</el-radio>
<el-radio v-model="atrMode" :disabled="!train" label="REGULATION_OFF">关闭自动调度</el-radio>
</el-col>
<el-col :span="2" style="height: 28px;line-height: 28px;">
<span>最大</span>
@ -203,9 +203,9 @@ export default {
name:'ATRDialog',
data() {
return {
train: 'all',
train: '',
trainCode: '',
atrMode: 'REGULATION_OFF',
atrMode: '',
intervalMode: '',
trainInterval: 90,
min: '',
@ -219,7 +219,7 @@ export default {
tableData4: [],
showTrainList: [],
input: '',
timeTerm: 'stop',
timeTerm: '',
sortStationList: [],
noStopList: [],
dialogShow:false,
@ -255,11 +255,13 @@ export default {
const stand = this.$store.getters['map/getDeviceByCode'](item.code);
item.time = stand.parkingTime;
});
this.trainCode = '';
} else if (val === 'one' && this.trainCode) {
this.tableData1.forEach(item => {
const stand = this.$store.getters['map/getDeviceByCode'](item.code);
item.time = stand.parkingTimeMap[this.trainCode];
});
this.atrMode = 'REGULATION_OFF';
}
},
trainCode(val) {
@ -386,11 +388,13 @@ export default {
},
doClose() {
this.dialogShow = false;
this.reset();
},
reset() {
this.train = '';
this.atrMode = '';
this.timeTerm = '';
this.trainCode = '';
},
commit() {
if (!this.train || (this.train === 'one' && !this.trainCode)) {