From 9ba35a1a6c7e5fbb3d7b954086ab90c72dfc93a7 Mon Sep 17 00:00:00 2001 From: qianlishi Date: Mon, 6 Mar 2023 14:42:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=94=81=E5=AE=9A=20?= =?UTF-8?q?=E8=A7=A3=E9=99=A4=E9=94=81=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../designer/components/contentMenu.vue | 26 +- .../bigscreenDesigner/designer/index.vue | 277 +++++++++--------- .../designer/widget/form/widgetInput.vue | 9 +- .../designer/widget/widget.vue | 14 +- 4 files changed, 171 insertions(+), 155 deletions(-) diff --git a/report-ui/src/views/bigscreenDesigner/designer/components/contentMenu.vue b/report-ui/src/views/bigscreenDesigner/designer/components/contentMenu.vue index 15562b1c..849a9e3b 100644 --- a/report-ui/src/views/bigscreenDesigner/designer/components/contentMenu.vue +++ b/report-ui/src/views/bigscreenDesigner/designer/components/contentMenu.vue @@ -3,6 +3,12 @@
删除图层
+
+ 锁定图层 +
+
+ 解除锁定 +
复制图层
@@ -24,7 +30,7 @@ export default { props: { styleObj: Object, - visible: Boolean + visible: Boolean, }, data() { return {}; @@ -36,7 +42,7 @@ export default { } else { document.body.removeEventListener("click", this.closeMenu); } - } + }, }, methods: { closeMenu() { @@ -46,22 +52,28 @@ export default { this.$confirm("是否删除所选图层?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", - type: "warning" + type: "warning", }) .then(() => { this.$emit("deletelayer"); this.$message({ type: "success", - message: "删除成功!" + message: "删除成功!", }); }) .catch(() => { this.$message({ type: "info", - message: "已取消删除" + message: "已取消删除", }); }); }, + lockLayer() { + this.$emit("lockLayer"); + }, + noLockLayer() { + this.$emit("noLockLayer"); + }, copyLayer() { this.$emit("copylayer"); }, @@ -76,8 +88,8 @@ export default { }, movedownLayer() { this.$emit("movedownLayer"); - } - } + }, + }, }; diff --git a/report-ui/src/views/bigscreenDesigner/designer/widget/form/widgetInput.vue b/report-ui/src/views/bigscreenDesigner/designer/widget/form/widgetInput.vue index e1a27c64..8c7c7bb2 100644 --- a/report-ui/src/views/bigscreenDesigner/designer/widget/form/widgetInput.vue +++ b/report-ui/src/views/bigscreenDesigner/designer/widget/form/widgetInput.vue @@ -2,12 +2,13 @@