|
@@ -11,11 +11,12 @@ export default {
|
|
|
name: 'ChartMap',
|
|
name: 'ChartMap',
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- config: []
|
|
|
|
|
|
|
+ config: [],
|
|
|
|
|
+ imgViewer: null
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
- window['mapFrame'] = this.$refs.mapFrame
|
|
|
|
|
|
|
+ window['mapIs'] = this
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
this.$refs.mapFrame.onload = () => {
|
|
this.$refs.mapFrame.onload = () => {
|
|
@@ -67,9 +68,12 @@ export default {
|
|
|
|
|
|
|
|
loadImage(path) {
|
|
loadImage(path) {
|
|
|
console.log('loadImage', path)
|
|
console.log('loadImage', path)
|
|
|
- this.$viewerApi({
|
|
|
|
|
- images: [`/static${path}`],
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ if(!this.imgViewer?.isShown){
|
|
|
|
|
+ this.imgViewer = this.$viewerApi({
|
|
|
|
|
+ images: [`/static${path}`],
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|