From 00052fd175928728399c49295173da8bc49424ec Mon Sep 17 00:00:00 2001 From: qianlishi <1432731663@qq.com> Date: Fri, 2 Jul 2021 10:54:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E5=B1=82=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/report/bigscreen/designer/index.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/report-ui/src/views/report/bigscreen/designer/index.vue b/report-ui/src/views/report/bigscreen/designer/index.vue index 5a5ce275..70e60b82 100644 --- a/report-ui/src/views/report/bigscreen/designer/index.vue +++ b/report-ui/src/views/report/bigscreen/designer/index.vue @@ -705,15 +705,15 @@ export default { }, // 置顶 istopLayer() { - if (this.rightClickIndex != 0) { - this.widgets.unshift(this.widgets.splice(this.rightClickIndex, 1)[0]); + if (this.rightClickIndex + 1 < this.widgets.length) { + const temp = this.widgets.splice(this.rightClickIndex, 1)[0]; + this.widgets.push(temp); } }, // 置底 setlowLayer() { - if (this.rightClickIndex + 1 < this.widgets.length) { - const temp = this.widgets.splice(this.rightClickIndex, 1)[0]; - this.widgets.push(temp); + if (this.rightClickIndex != 0) { + this.widgets.unshift(this.widgets.splice(this.rightClickIndex, 1)[0]); } }, // 上移一层