From 6a582f9b3458d21051d8606c1a264b0696b6c3fc Mon Sep 17 00:00:00 2001 From: smallwei <1634566606@qq.com> Date: Mon, 18 Oct 2021 07:17:16 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D:=E7=BC=A9=E6=94=BE=E5=BC=95?= =?UTF-8?q?=E5=8F=91=E7=9A=84=E7=A7=BB=E5=8A=A8=E9=94=99=E4=BD=8D=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- report-ui/src/views/report/bigscreen/designer/index.vue | 4 ++++ .../src/views/report/bigscreen/designer/widget/widget.vue | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/report-ui/src/views/report/bigscreen/designer/index.vue b/report-ui/src/views/report/bigscreen/designer/index.vue index eb548dc4..66efcf2e 100644 --- a/report-ui/src/views/report/bigscreen/designer/index.vue +++ b/report-ui/src/views/report/bigscreen/designer/index.vue @@ -212,6 +212,7 @@ :key="index" v-model="widget.value" :index="index" + :step="step" :type="widget.type" :bigscreen="{ bigscreenWidth, bigscreenHeight }" @onActivated="setOptionsOnClickWidget" @@ -373,6 +374,9 @@ export default { }; }, computed: { + step () { + return Number(100 / (this.bigscreenScaleInWorkbench * 100)) + }, headers() { return { Authorization: getToken() // 直接从本地获取token就行 diff --git a/report-ui/src/views/report/bigscreen/designer/widget/widget.vue b/report-ui/src/views/report/bigscreen/designer/widget/widget.vue index 1f587d61..a3486f04 100644 --- a/report-ui/src/views/report/bigscreen/designer/widget/widget.vue +++ b/report-ui/src/views/report/bigscreen/designer/widget/widget.vue @@ -6,6 +6,7 @@ !-->