客户端代码调整

This commit is contained in:
fan 2022-10-09 10:55:53 +08:00
parent 63962a1f7e
commit 2bf3ce2e2a
2 changed files with 8 additions and 4 deletions

View File

@ -6,7 +6,7 @@
<jl3d-drive v-else-if="picture === 'drivingPlan'" ref="jl3dDrive" /> <jl3d-drive v-else-if="picture === 'drivingPlan'" ref="jl3dDrive" />
<jl3d-device v-else-if="picture === 'jl3dModle'" ref="jl3dModle" /> <jl3d-device v-else-if="picture === 'jl3dModle'" ref="jl3dModle" />
<jl3d-passflow v-else-if="picture === 'cctvView'" ref="cctvView" /> <jl3d-passflow v-else-if="picture === 'cctvView'" ref="cctvView" />
<traffic-terminal-work v-else-if="picture === 'trafficTerminalWork'" ref="trafficTerminalWork" /> <traffic-terminal-work v-else-if="picture === 'trafficTerminal'" ref="trafficTerminalWork" :centralized-station-map="centralizedStationMap" />
<ibp-plate v-else-if="picture === 'ibp'" ref="ibpPlate" /> <ibp-plate v-else-if="picture === 'ibp'" ref="ibpPlate" />
<dispatch-cmd v-if="datie" ref="dispatchCmd" @close="close" /> <dispatch-cmd v-if="datie" ref="dispatchCmd" @close="close" />
<dispatcher-loger v-if="datie" ref="dispatcherLoger" @close="close" /> <dispatcher-loger v-if="datie" ref="dispatcherLoger" @close="close" />
@ -126,6 +126,7 @@ export default {
} }
}, },
pictureChange(val) { pictureChange(val) {
console.log(val, '--------------0');
this.picture = val; this.picture = val;
}, },
popupTerminalShow(val) { popupTerminalShow(val) {

View File

@ -17,7 +17,7 @@ export default {
centralizedStationMap:{ centralizedStationMap:{
type: Object, type: Object,
default() { default() {
return []; return {};
} }
} }
}, },
@ -53,14 +53,17 @@ export default {
} }
}, },
'$store.state.map.initJlmapLoadedCount': function (val) { '$store.state.map.initJlmapLoadedCount': function (val) {
this.handleLocalWorkData(); this.handleTrafficTerminalWorkData();
} }
}, },
mounted() {
console.log('trafficTerminalWork');
},
methods: { methods: {
setSelected(val) { setSelected(val) {
this.selected = val; this.selected = val;
}, },
handleLocalWorkData() { handleTrafficTerminalWorkData() {
const logicData = {routeData:this.$store.state.map.routeData, autoReentryData: this.$store.state.map.autoReentryData}; const logicData = {routeData:this.$store.state.map.routeData, autoReentryData: this.$store.state.map.autoReentryData};
const repaint = this.$store.state.map.initJlmapLoadedCount === 1; const repaint = this.$store.state.map.initJlmapLoadedCount === 1;
this.$jlmap.setMap(this.mapData, this.mapDevice, logicData, repaint); this.$jlmap.setMap(this.mapData, this.mapDevice, logicData, repaint);