diff --git a/src/views/demonstration/detail/index.vue b/src/views/demonstration/detail/index.vue index b84cb8787..850cb78af 100644 --- a/src/views/demonstration/detail/index.vue +++ b/src/views/demonstration/detail/index.vue @@ -184,7 +184,7 @@ export default { let res = {}; res = await createSimulationNew(data); if (res && res.code == 200) { - const query = { group: res.data, lineCode:this.courseModel.lineCode }; + const query = { group: res.data, lineCode:this.courseModel.lineCode, mapId: this.courseModel.mapId }; this.$router.push({ path: `/displayIscs/system`, query: query }); } } catch (error) { diff --git a/src/views/designPlatform/bigScreen.vue b/src/views/designPlatform/bigScreen.vue index 4f7227dae..9b5523965 100644 --- a/src/views/designPlatform/bigScreen.vue +++ b/src/views/designPlatform/bigScreen.vue @@ -65,7 +65,7 @@ export default { this.$store.dispatch('map/setTrainWindowShow', false); this.$jlmap.off('zoom'); this.handleUpdateScreen(); - if (this.$route.query.group) { + if (this.$route.query.group && !this.$route.path.includes('displayIscs')) { this.subscribe(); } }, @@ -85,7 +85,7 @@ export default { await this.setWindowSize(); await this.initLoadData(); this.disPlay = true; - if (this.$route.path.includes('design/bigScreen') || this.$route.query.noPreLogout || this.$route.query.projectDevice) { + if (this.$route.path.includes('design/bigScreen') || this.$route.query.noPreLogout || this.$route.query.projectDevice || this.$route.path.includes('displayIscs')) { this.disPlay = false; } }, diff --git a/src/views/iscs/iscsSystem/stationConfig/index.vue b/src/views/iscs/iscsSystem/stationConfig/index.vue index b13b24a60..13fb18f19 100644 --- a/src/views/iscs/iscsSystem/stationConfig/index.vue +++ b/src/views/iscs/iscsSystem/stationConfig/index.vue @@ -2,7 +2,7 @@
@@ -22,11 +22,18 @@ import PsdSystem from './psdSystem/index.vue'; import Substation from './powerMonitor/substation.vue'; import Normal from './environment/index.vue'; +import Schedule from './schedule'; +import BigScreen from '@/views/designPlatform/bigScreen'; +import { getSimulationInfoNew } from '@/api/simulation'; +import { getByGroupStationList } from '@/api/jmap/map'; +import { loadRunPlanData } from '@/utils/loaddata'; export default { components:{ + Schedule, PsdSystem, Substation, - Normal + Normal, + BigScreen }, data() { return { @@ -34,21 +41,44 @@ export default { deviceList: [] }; }, + computed: { + group() { + return this.$route.query.group; + } + }, watch: { '$route': function(val) { this.mode = this.$route.params.mode; + }, + '$store.state.socket.runPlanReloadCount': function (val) { + getSimulationInfoNew(this.group).then(res => { + this.$store.dispatch('runPlan/setRunPlanInfo', res.data.runPlan); + loadRunPlanData(this.group); + }); } - // '$store.state.iscs.selectedCount': function() { - // const device = this.$store.state.iscs.selected; - // if (device && device._type === 'IscsButton' && device.function === 'GraphicEle') { - // this.$refs.graphicEle.doShow(); - // } else if (device && this.deviceList.includes(device._type)) { - // this.$refs.deviceControl.doShow(device); - // } - // } }, mounted() { this.mode = this.$route.params.mode; + getSimulationInfoNew(this.group).then(res => { + this.$store.dispatch('runPlan/setRunPlanInfo', res.data.runPlan); + this.loadRunData(); + }); + }, + methods: { + loadRunData() { + this.$store.dispatch('runPlan/clear').then(() => { + if (this.group) { + // 获取排序的车站列表 + getByGroupStationList(this.group).then(response => { + this.$store.dispatch('runPlan/setStations', response.data).then(() => { + loadRunPlanData(this.group); + }); + }).catch(() => { + this.$messageBox(this.$t('display.schema.getStationListFail')); + }); + } + }); + } } }; diff --git a/src/views/iscs/iscsSystem/stationConfig/schedule.vue b/src/views/iscs/iscsSystem/stationConfig/schedule.vue new file mode 100644 index 000000000..5767caad0 --- /dev/null +++ b/src/views/iscs/iscsSystem/stationConfig/schedule.vue @@ -0,0 +1,507 @@ + +