diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/standBackStrategy.vue b/src/jmapNew/theme/beijing_01/menus/dialog/standBackStrategy.vue index 57a895825..d3d4d1eff 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/standBackStrategy.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/standBackStrategy.vue @@ -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; @@ -177,7 +181,7 @@ export default { doClose() { this.loading = false; this.dialogShow = false; - this.$root.$emit('dialogClose', this.selected); + this.$root.$emit('dialogClose', this.selected); this.$store.dispatch('training/emitTipFresh'); mouseCancelState(this.selected); },