|
@@ -649,7 +649,8 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 绘制围栏
|
|
// 绘制围栏
|
|
|
drawFence(row) {
|
|
drawFence(row) {
|
|
|
- this.infoDraw = {channelName: row.channelName, channelId: row.channelCode, pointId: "", pointName: "", taskId: this.form.id, type: "0"};
|
|
|
|
|
|
|
+ console.log(row)
|
|
|
|
|
+ this.infoDraw = {channelName: row.channelName, channelId: row.channelCode, pointId: null, pointName: "", taskId: this.form.id, type: "0"};
|
|
|
if (this.$refs.tree.getNode(row.channelCode).parent.data.url) {
|
|
if (this.$refs.tree.getNode(row.channelCode).parent.data.url) {
|
|
|
this.infoDraw.url = this.$refs.tree.getNode(row.channelCode).parent.data.url
|
|
this.infoDraw.url = this.$refs.tree.getNode(row.channelCode).parent.data.url
|
|
|
}
|
|
}
|
|
@@ -657,7 +658,9 @@ export default {
|
|
|
if (response.data.code == 1000) {
|
|
if (response.data.code == 1000) {
|
|
|
this.presetPoints = response.data.data.presetPoints
|
|
this.presetPoints = response.data.data.presetPoints
|
|
|
this.openDraw = true
|
|
this.openDraw = true
|
|
|
- this.$refs.PolygonDrawer.clearCanvas()
|
|
|
|
|
|
|
+ this.$nextTick(()=>{
|
|
|
|
|
+ this.$refs.PolygonDrawer.clearCanvas()
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
getRtsp(row.channelCode).then(response => {
|
|
getRtsp(row.channelCode).then(response => {
|