Commit a061bc3a authored by aoobao's avatar aoobao

导出线段优化

parent f6c4f84a
......@@ -39,6 +39,7 @@ export default class MouseTool {
this._mouseTool.close()
// this._mouseTool.setMap(null)
this._mouseTool.g = null
this._mouseTool = null
}
}
......
......@@ -28,6 +28,9 @@ export default {
})
return list
}
},
mounted () {
},
methods: {
handleCheckedCitiesChange () {
......@@ -45,6 +48,14 @@ export default {
this.text = sb
this.$emit('exportLine', list.map(t => t.id))
}
},
watch: {
visible (val) {
if (val) {
this.checkList = this.lineList.map(t => t.id)
this.handleCheckedCitiesChange()
}
}
}
}
</script>
......
......@@ -307,6 +307,21 @@ export default {
height: width + 'px'
}
}
},
watch: {
exportVisible (val) {
if (!val) {
let list = this.lineList.map(lineObj => {
return {
...lineObj,
color: 'blue',
lastPointColor: undefined,
lastPointSize: undefined
}
});
this.lineList = list
}
}
}
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment