From 77a266bc5c3fd2775bc068ddc3dfc79897d7454f Mon Sep 17 00:00:00 2001 From: qianming Date: Thu, 8 Jul 2021 10:52:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=97=E4=B8=81=E6=A0=BC=E5=B0=94=E9=A5=BC?= =?UTF-8?q?=E5=9B=BE=E6=94=AF=E6=8C=81=E5=8A=A8=E6=80=81=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pie/widgetPieNightingaleRoseArea.vue | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/report-ui/src/views/report/bigscreen/designer/widget/pie/widgetPieNightingaleRoseArea.vue b/report-ui/src/views/report/bigscreen/designer/widget/pie/widgetPieNightingaleRoseArea.vue index ea3dba58..b298fdc0 100644 --- a/report-ui/src/views/report/bigscreen/designer/widget/pie/widgetPieNightingaleRoseArea.vue +++ b/report-ui/src/views/report/bigscreen/designer/widget/pie/widgetPieNightingaleRoseArea.vue @@ -190,38 +190,6 @@ export default { this.options = Object.assign({}, this.options); }, // 数据解析 - setOptionsData () { - const optionsSetup = this.optionsSetup; - console.log(optionsSetup); - const optionsData = this.optionsData; // 数据类型 静态 or 动态 - console.log(optionsData); - optionsData.dataType == "staticData" - ? this.staticDataFn(optionsData.staticData, optionsSetup) - : this.dynamicDataFn(optionsData.dynamicData, optionsSetup); - }, - // 静态数据 - staticDataFn (val, optionsSetup) { - const staticData = JSON.parse(val); - // x轴 - if (optionsSetup.verticalShow) { - this.options.xAxis.data = []; - this.options.yAxis.data = staticData.categories; - this.options.xAxis.type = "value"; - this.options.yAxis.type = "category"; - } else { - this.options.xAxis.data = staticData.categories; - this.options.yAxis.data = []; - this.options.xAxis.type = "category"; - this.options.yAxis.type = "value"; - } - // series - const series = this.options.series; - for (const i in series) { - if (series[i].type == "bar") { - series[i].data = staticData.series[0].data; - } - } - }, setOptionsData() { const optionsData = this.optionsData; // 数据类型 静态 or 动态 optionsData.dataType == "staticData"