|
|
@@ -637,7 +637,7 @@
|
|
|
<el-radio :label="'1'">屏蔽框</el-radio>
|
|
|
</el-radio-group>
|
|
|
</div>
|
|
|
- <PolygonDrawer ref="PolygonDrawer" :channelId="infoDraw.channelId" :pointId="infoDraw.pointId" :pointName="infoDraw.pointName" :taskId="infoDraw.taskId" :type="infoDraw.type" :tasks="infoDraw.tasks" />
|
|
|
+ <PolygonDrawer ref="PolygonDrawer" :url="infoDraw.url" :channelId="infoDraw.channelId" :pointId="infoDraw.pointId" :pointName="infoDraw.pointName" :taskId="infoDraw.taskId" :type="infoDraw.type" :tasks="infoDraw.tasks" />
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-dialog>
|
|
|
@@ -1244,9 +1244,13 @@ export default {
|
|
|
drawFence(row) {
|
|
|
// window.open('http://' + row.cameraIp + ':1036?username=sooka&password=Sooka6688!!')
|
|
|
listCamerachannel({cameraId: row.id}).then(response => {
|
|
|
- this.infoDraw = {cameraName: row.cameraName, channels: response.rows, tasks: [], presetPoints: [], pointId: "", pointName: "", type: "0"};
|
|
|
- this.openDraw = true
|
|
|
- this.title = "绘制围栏"
|
|
|
+ if (response.rows.length != 0) {
|
|
|
+ this.infoDraw = {url: row.url, cameraName: row.cameraName, channels: response.rows, tasks: [], presetPoints: [], pointId: "", pointName: "", type: "0"};
|
|
|
+ this.openDraw = true
|
|
|
+ this.title = "绘制围栏"
|
|
|
+ } else {
|
|
|
+ this.$modal.msgSuccess('请先维护通道')
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
/** ----------------------------------摄像头预览开始------------------------------------- */
|
|
|
@@ -2066,7 +2070,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
raidoChange(val) {
|
|
|
- if (this.$refs.PolygonDrawer.polygons.size != 0) {
|
|
|
+ if (this.$refs.PolygonDrawer.polygons.length != 0) {
|
|
|
this.$refs.PolygonDrawer.polygons = []
|
|
|
this.$refs.PolygonDrawer.redrawAllPolygons()
|
|
|
}
|