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 | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/canvas/Dialog.vue b/src/components/canvas/Dialog.vue index f56437b..e0f11e1 100644 --- a/src/components/canvas/Dialog.vue +++ b/src/components/canvas/Dialog.vue @@ -218,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)); @@ -393,6 +394,7 @@ }, // 鍒犻櫎鍏冪礌 del() { + debugger let delEle = {}; switch (this.delCursor.type) { case "1": @@ -409,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(); @@ -852,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; -- Gitblit v1.8.0