From 46183ba8c63b38ea3671e7923edc7ec2fd34a6c3 Mon Sep 17 00:00:00 2001 From: hanbaoshan <hanbaoshan@aiotlink.com> Date: 星期五, 04 十二月 2020 16:01:54 +0800 Subject: [PATCH] 统计查询人脸比对卡片图片分值区布局调整 --- src/components/canvas/Dialog.vue | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/components/canvas/Dialog.vue b/src/components/canvas/Dialog.vue index 8245db6..e0f11e1 100644 --- a/src/components/canvas/Dialog.vue +++ b/src/components/canvas/Dialog.vue @@ -97,11 +97,7 @@ width="960" height="540" :style=" - `position:static;background:url(${ - snapshot_url - ? `/httpImage/${snapshot_url}` - : backImg - }) 0% 0%/960px 540px no-repeat;` + `position:static;background:url(${snapshot_url}) 0% 0%/960px 540px no-repeat;` " ></canvas> <p @@ -222,7 +218,8 @@ cancel() { this.changeType('0') this.undisabled() - this.delCursor = {} + //this.delCursor = {} + this.delCursor = { type: -1, index: -1, remarksName: "", id: "" }; this.canvasHistory.length = 0; this.step = -1; this.canvasData = JSON.parse(JSON.stringify(this.canvasDataToChild)); @@ -397,6 +394,7 @@ }, // 鍒犻櫎鍏冪礌 del() { + debugger let delEle = {}; switch (this.delCursor.type) { case "1": @@ -413,7 +411,7 @@ break; case "5": delEle = this.canvasData.polygon[this.delCursor.index]; - this.canvasData.polygon.splice(this.delCursor.index, 1); + this.canvasData.polygon.splice(this.delCursor.index+1, 1); break; } this.clickSelect(); @@ -856,6 +854,7 @@ width = typeof width !== "undefined" ? width : 1; // color = typeof color !== 'undefined' ? color : 'yellow' // 璁$畻鍚勮搴﹀拰瀵瑰簲鐨凱2,P3鍧愭爣 + debugger let angle = (Math.atan2(fromY - toY, fromX - toX) * 180) / Math.PI; let angle1 = ((angle + theta) * Math.PI) / 180; let angle2 = ((angle - theta) * Math.PI) / 180; @@ -1273,7 +1272,10 @@ this.lineIndex = this.canvasData.line.length; this.rectIndex = this.canvasData.rect.length; this.arrowIndex = this.canvasData.arrow.length; - this.polygonIndex = this.canvasData.polygon.length; + //鎺掗櫎this.canvasData.polygon鍏ㄩ儴鍖哄煙(鍏ㄩ儴鍖哄煙鐨刬d灏辨槸鎽勫儚鏈虹殑id) + + let filterPolygonArr = this.canvasData.polygon.filter(item=>item.id != this.TreeDataPool.selectedNode.id) + this.polygonIndex = filterPolygonArr.length; }, // 鐢熸垚uuid getUuid() { -- Gitblit v1.8.0