|
|
@ -191,6 +191,11 @@ export default { |
|
|
|
return true |
|
|
|
}, |
|
|
|
changeActiveTab(index) { |
|
|
|
if (this.$refs.previewRefs.canvasPreview.lowerCanvasEl) { |
|
|
|
this.$refs.previewRefs.canvasPreview.clear() |
|
|
|
this.$refs.previewRefs.canvasPreview.dispose() |
|
|
|
} |
|
|
|
this.allCoverData = [] |
|
|
|
this.tabIndex = index |
|
|
|
const params = { |
|
|
|
'floorId': this.floorOptions[index].id |
|
|
@ -217,11 +222,14 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
const imgInfo = JSON.parse(this.allCoverData[0].signPoint).imgInfo |
|
|
|
|
|
|
|
const result = { |
|
|
|
pointInfo: parsedSignPoints, |
|
|
|
imgInfo: imgInfo |
|
|
|
} |
|
|
|
console.log('result', result) |
|
|
|
this.$nextTick(() => { |
|
|
|
console.log('this.$refs.previewRefs', this.$refs.previewRefs) |
|
|
|
this.$refs.previewRefs.initCanvasPreview(result) |
|
|
|
}) |
|
|
|
} else { |
|
|
|