南京二号线atr调整
This commit is contained in:
parent
9960b87c42
commit
f0328df54f
@ -15,7 +15,7 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
<el-row style="padding: 5px;">
|
<el-row style="padding: 5px;">
|
||||||
<el-col :span="11" style="height: 28px;line-height: 28px;">
|
<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>
|
||||||
<el-col :span="4" style="height: 28px;line-height: 28px;text-align: right;">
|
<el-col :span="4" style="height: 28px;line-height: 28px;text-align: right;">
|
||||||
<div>当前状态:</div>
|
<div>当前状态:</div>
|
||||||
@ -26,7 +26,7 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
<el-row style="padding: 5px;">
|
<el-row style="padding: 5px;">
|
||||||
<el-col :span="4" style="height: 28px;line-height: 28px;">
|
<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>
|
||||||
<el-col :span="7">
|
<el-col :span="7">
|
||||||
<el-select v-model="trainCode" :disabled="train !== 'one'" style="width: 160px" size="mini" placeholder="请选择">
|
<el-select v-model="trainCode" :disabled="train !== 'one'" style="width: 160px" size="mini" placeholder="请选择">
|
||||||
@ -53,7 +53,7 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
<el-row style="padding: 5px;">
|
<el-row style="padding: 5px;">
|
||||||
<el-col :span="12" style="height: 28px;line-height: 28px;">
|
<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>
|
||||||
<el-col :span="6" style="height: 28px;line-height: 28px;">
|
<el-col :span="6" style="height: 28px;line-height: 28px;">
|
||||||
<el-radio v-model="intervalMode" :disabled="atrMode !== 'HEADWAY_REGULATION_FRONT'" label="trainNumber">列车个数</el-radio>
|
<el-radio v-model="intervalMode" :disabled="atrMode !== 'HEADWAY_REGULATION_FRONT'" label="trainNumber">列车个数</el-radio>
|
||||||
@ -72,7 +72,7 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
<el-row style="padding: 5px;">
|
<el-row style="padding: 5px;">
|
||||||
<el-col :span="12" style="height: 28px;line-height: 28px;">
|
<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>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-button :disabled="!intervalMode" style="height: 28px;width: 260px;" @click="computeInterval">计算</el-button>
|
<el-button :disabled="!intervalMode" style="height: 28px;width: 260px;" @click="computeInterval">计算</el-button>
|
||||||
@ -80,7 +80,7 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
<el-row style="padding: 5px;">
|
<el-row style="padding: 5px;">
|
||||||
<el-col :span="12">
|
<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>
|
||||||
<el-col :span="2" style="height: 28px;line-height: 28px;">
|
<el-col :span="2" style="height: 28px;line-height: 28px;">
|
||||||
<span>最小</span>
|
<span>最小</span>
|
||||||
@ -105,7 +105,7 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
<el-row style="padding: 5px;">
|
<el-row style="padding: 5px;">
|
||||||
<el-col :span="12" style="height: 28px;line-height: 28px;">
|
<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>
|
||||||
<el-col :span="2" style="height: 28px;line-height: 28px;">
|
<el-col :span="2" style="height: 28px;line-height: 28px;">
|
||||||
<span>最大</span>
|
<span>最大</span>
|
||||||
@ -203,9 +203,9 @@ export default {
|
|||||||
name:'ATRDialog',
|
name:'ATRDialog',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
train: 'all',
|
train: '',
|
||||||
trainCode: '',
|
trainCode: '',
|
||||||
atrMode: 'REGULATION_OFF',
|
atrMode: '',
|
||||||
intervalMode: '',
|
intervalMode: '',
|
||||||
trainInterval: 90,
|
trainInterval: 90,
|
||||||
min: '',
|
min: '',
|
||||||
@ -219,7 +219,7 @@ export default {
|
|||||||
tableData4: [],
|
tableData4: [],
|
||||||
showTrainList: [],
|
showTrainList: [],
|
||||||
input: '',
|
input: '',
|
||||||
timeTerm: 'stop',
|
timeTerm: '',
|
||||||
sortStationList: [],
|
sortStationList: [],
|
||||||
noStopList: [],
|
noStopList: [],
|
||||||
dialogShow:false,
|
dialogShow:false,
|
||||||
@ -255,11 +255,13 @@ export default {
|
|||||||
const stand = this.$store.getters['map/getDeviceByCode'](item.code);
|
const stand = this.$store.getters['map/getDeviceByCode'](item.code);
|
||||||
item.time = stand.parkingTime;
|
item.time = stand.parkingTime;
|
||||||
});
|
});
|
||||||
|
this.trainCode = '';
|
||||||
} else if (val === 'one' && this.trainCode) {
|
} else if (val === 'one' && this.trainCode) {
|
||||||
this.tableData1.forEach(item => {
|
this.tableData1.forEach(item => {
|
||||||
const stand = this.$store.getters['map/getDeviceByCode'](item.code);
|
const stand = this.$store.getters['map/getDeviceByCode'](item.code);
|
||||||
item.time = stand.parkingTimeMap[this.trainCode];
|
item.time = stand.parkingTimeMap[this.trainCode];
|
||||||
});
|
});
|
||||||
|
this.atrMode = 'REGULATION_OFF';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
trainCode(val) {
|
trainCode(val) {
|
||||||
@ -386,11 +388,13 @@ export default {
|
|||||||
},
|
},
|
||||||
doClose() {
|
doClose() {
|
||||||
this.dialogShow = false;
|
this.dialogShow = false;
|
||||||
|
this.reset();
|
||||||
},
|
},
|
||||||
reset() {
|
reset() {
|
||||||
this.train = '';
|
this.train = '';
|
||||||
this.atrMode = '';
|
this.atrMode = '';
|
||||||
this.timeTerm = '';
|
this.timeTerm = '';
|
||||||
|
this.trainCode = '';
|
||||||
},
|
},
|
||||||
commit() {
|
commit() {
|
||||||
if (!this.train || (this.train === 'one' && !this.trainCode)) {
|
if (!this.train || (this.train === 'one' && !this.trainCode)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user