From d9148126c544df2914092ff6135f3d5e3ed218bf Mon Sep 17 00:00:00 2001 From: qianming Date: Thu, 29 Jul 2021 20:31:02 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A5=BC=E5=9B=BE=E6=94=AF=E6=8C=81=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E5=AE=9E=E5=BF=83=E5=92=8C=E7=A9=BA=E5=BF=83=E4=BF=A9?= =?UTF-8?q?=E7=A7=8D=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- report-ui/src/views/report/bigscreen/designer/tools.js | 6 +++--- .../report/bigscreen/designer/widget/widgetPiechart.vue | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/report-ui/src/views/report/bigscreen/designer/tools.js b/report-ui/src/views/report/bigscreen/designer/tools.js index f1b21965..0c20aa2d 100644 --- a/report-ui/src/views/report/bigscreen/designer/tools.js +++ b/report-ui/src/views/report/bigscreen/designer/tools.js @@ -3709,10 +3709,10 @@ const widgetTools = [ required: false, placeholder: '', selectOptions: [ - {code: '50%', name: '实心饼图'}, - {code: ["40%", "70%"], name: '空心饼图'}, + {code: 'shixin', name: '实心饼图'}, + {code: 'kongxin', name: '空心饼图'}, ], - value: '50%' + value: 'shixin' }, [ { diff --git a/report-ui/src/views/report/bigscreen/designer/widget/widgetPiechart.vue b/report-ui/src/views/report/bigscreen/designer/widget/widgetPiechart.vue index 6c28d82a..ed5186dc 100644 --- a/report-ui/src/views/report/bigscreen/designer/widget/widgetPiechart.vue +++ b/report-ui/src/views/report/bigscreen/designer/widget/widgetPiechart.vue @@ -94,7 +94,11 @@ export default { }, // 饼图样式 setOptionsPiechartStyle(){ - this.options.series[0]['radius'] = this.optionsSetup.piechartStyle + if (this.optionsSetup.piechartStyle == "shixin") { + this.options.series[0]['radius'] = "50%" + }else if (this.optionsSetup.piechartStyle == "kongxin"){ + this.options.series[0]['radius'] = ["40%", "70%"] + }else {} }, // 标题设置 setOptionsTitle() {