parent
c22c93bba4
commit
35fce14a31
@ -118,12 +118,12 @@ export default {
|
||||
loadInitData(selected, opts) {
|
||||
this.tempData = [];
|
||||
const station = this.stationList.find(n => n.code == selected.stationCode);
|
||||
this.tempData.push({ name: station.name, station: selected.name, strategy: opts.reentryStrategy });
|
||||
this.tempData.push({ name: station.name, station: selected.name, strategy: opts ? opts.reentryStrategy : '' });
|
||||
this.$nextTick(() => {
|
||||
this.$refs.table.setCurrentRow(null);
|
||||
});
|
||||
},
|
||||
doShow(operate, selected, opts) {
|
||||
doShow(operate, selected) {
|
||||
this.selected = selected;
|
||||
if (!this.dialogShow) {
|
||||
this.stationName = '';
|
||||
@ -132,14 +132,18 @@ export default {
|
||||
const station = this.$store.getters['map/getDeviceByCode'](selected.stationCode);
|
||||
if (station) {
|
||||
this.stationName = station.name;
|
||||
this.strategyList.forEach(item => {
|
||||
if (item.value == opts.reentryStrategy) {
|
||||
this.stationStrategy = item.label;
|
||||
}
|
||||
});
|
||||
if (selected.typeStrategy === 'DEFAULT') {
|
||||
this.stationStrategy = '关闭';
|
||||
} else if (selected.typeStrategy === 'NONE') {
|
||||
this.stationStrategy = '无折返';
|
||||
} else if (selected.typeStrategy === 'UNMANNED') {
|
||||
this.stationStrategy = '无人折返';
|
||||
} else if (selected.typeStrategy === 'AUTO') {
|
||||
this.stationStrategy = '自动换端';
|
||||
}
|
||||
}
|
||||
this.loadInitData(selected, opts);
|
||||
}
|
||||
this.loadInitData(selected);
|
||||
}
|
||||
|
||||
this.dialogShow = true;
|
||||
|
Loading…
Reference in New Issue
Block a user