From 19c4815aeb69fc06f6f33e5b013e5c459101d1f0 Mon Sep 17 00:00:00 2001 From: hanbaoshan <hanbaoshan@aiotlink.com> Date: 星期四, 03 十二月 2020 18:07:21 +0800 Subject: [PATCH] 去除双横向滚动条显示,统计查询左侧目录树切换触发全部数据查询 --- src/components/canvas/Dialog.vue | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/canvas/Dialog.vue b/src/components/canvas/Dialog.vue index f56437b..3796291 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)); @@ -409,7 +410,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(); @@ -536,6 +537,7 @@ _this.type = "0"; _this.delCursor.type = "2"; _this.delCursor.index = i; + debugger _this.delCursor.remarksName = v.name; _this.delCursor.id = v.id; // console.log("褰撳墠閫変腑鍏冪礌锛�",_this.delCursor) -- Gitblit v1.8.0