From a2d04f30b759723748687992ec0fed1b80b9b5a3 Mon Sep 17 00:00:00 2001 From: qianming Date: Fri, 3 Sep 2021 16:27:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=B1=E4=BD=93=E5=9C=A8=E7=AB=96=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E4=B8=8B=EF=BC=8C=E6=95=B0=E5=80=BC=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=92=8C=E6=B8=90=E5=8F=98=E8=89=B2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tools/componentsJSON/widget-barchart.js | 30 ++- .../componentsJSON/widget-barlinechart.js | 106 +++++++- .../widget-gradient-barchart.js | 26 +- .../bar/widgetGradientColorBarchart.vue | 245 +++++++++--------- .../widget/pie/widgetPiePercentageChart.vue | 25 +- .../designer/widget/widgetBarchart.vue | 174 +++++++------ .../designer/widget/widgetBarlinechart.vue | 27 +- 7 files changed, 378 insertions(+), 255 deletions(-) diff --git a/report-ui/src/views/report/bigscreen/designer/tools/componentsJSON/widget-barchart.js b/report-ui/src/views/report/bigscreen/designer/tools/componentsJSON/widget-barchart.js index da853d14..b20af1f2 100644 --- a/report-ui/src/views/report/bigscreen/designer/tools/componentsJSON/widget-barchart.js +++ b/report-ui/src/views/report/bigscreen/designer/tools/componentsJSON/widget-barchart.js @@ -111,7 +111,7 @@ export const widgetBarchart = { }, { type: 'el-input-number', - label: '字体大小', + label: '字体字号', name: 'textFontSize', required: false, placeholder: '', @@ -162,7 +162,7 @@ export const widgetBarchart = { }, { type: 'el-input-number', - label: '字体大小', + label: '字体字号', name: 'subTextFontSize', required: false, placeholder: '', @@ -203,7 +203,7 @@ export const widgetBarchart = { name: 'nameFontSizeX', required: false, placeholder: '', - value: 12 + value: 14 }, { type: 'vue-color', @@ -219,7 +219,7 @@ export const widgetBarchart = { name: 'fontSizeX', required: false, placeholder: '', - value: 12, + value: 14, }, { type: 'el-slider', @@ -389,11 +389,19 @@ export const widgetBarchart = { name: 'isShow', required: false, placeholder: '', - value: false + value: true }, { type: 'el-input-number', - label: '字体大小', + label: '距离', + name: 'distance', + required: false, + placeholder: '', + value: 5 + }, + { + type: 'el-input-number', + label: '字体字号', name: 'fontSize', required: false, placeholder: '', @@ -428,17 +436,17 @@ export const widgetBarchart = { list: [ { type: 'el-input-number', - label: '字体大小', - name: 'fontSize', + label: '字体字号', + name: 'tipFontSize', required: false, - placeholder: '', + placeholder: 16, }, { type: 'vue-color', label: '字体颜色', name: 'lineColor', required: false, - placeholder: '', + placeholder: '#ff7f50', }, ], }, @@ -497,7 +505,7 @@ export const widgetBarchart = { }, { type: 'el-input-number', - label: '字体大小', + label: '字体字号', name: 'lengedFontSize', required: false, placeholder: '', diff --git a/report-ui/src/views/report/bigscreen/designer/tools/componentsJSON/widget-barlinechart.js b/report-ui/src/views/report/bigscreen/designer/tools/componentsJSON/widget-barlinechart.js index afaa2aaa..7c687d83 100644 --- a/report-ui/src/views/report/bigscreen/designer/tools/componentsJSON/widget-barlinechart.js +++ b/report-ui/src/views/report/bigscreen/designer/tools/componentsJSON/widget-barlinechart.js @@ -433,13 +433,115 @@ export const widgetBarlinechart = { }, ], }, + { + name: '折线数值设定', + list: [ + { + type: 'el-switch', + label: '显示', + name: 'isShowLine', + required: false, + placeholder: '', + value: false + }, + { + type: 'el-input-number', + label: '距离', + name: 'distanceLine', + required: false, + placeholder: '', + value: 5 + }, + { + type: 'el-input-number', + label: '字体字号', + name: 'fontSizeLine', + required: false, + placeholder: '', + value: 14 + }, + { + type: 'vue-color', + label: '字体颜色', + name: 'subTextColorLine', + required: false, + placeholder: '', + value: '#fff' + }, + { + type: 'el-select', + label: '字体粗细', + name: 'fontWeightLine', + required: false, + placeholder: '', + selectOptions: [ + {code: 'normal', name: '正常'}, + {code: 'bold', name: '粗体'}, + {code: 'bolder', name: '特粗体'}, + {code: 'lighter', name: '细体'} + ], + value: 'normal' + }, + ], + }, + { + name: '柱体数值设定', + list: [ + { + type: 'el-switch', + label: '显示', + name: 'isShowBar', + required: false, + placeholder: '', + value: false + }, + { + type: 'el-input-number', + label: '距离', + name: 'distanceBar', + required: false, + placeholder: '', + value: 5 + }, + { + type: 'el-input-number', + label: '字体字号', + name: 'fontSizeBar', + required: false, + placeholder: '', + value: 14 + }, + { + type: 'vue-color', + label: '字体颜色', + name: 'subTextColorBar', + required: false, + placeholder: '', + value: '#fff' + }, + { + type: 'el-select', + label: '字体粗细', + name: 'fontWeightBar', + required: false, + placeholder: '', + selectOptions: [ + {code: 'normal', name: '正常'}, + {code: 'bold', name: '粗体'}, + {code: 'bolder', name: '特粗体'}, + {code: 'lighter', name: '细体'} + ], + value: 'normal' + }, + ], + }, { name: '提示语设置', list: [ { type: 'el-input-number', label: '字体大小', - name: 'fontSize', + name: 'tipFontSize', required: false, placeholder: '', value: 12 @@ -450,7 +552,7 @@ export const widgetBarlinechart = { name: 'lineColor', required: false, placeholder: '', - value: '#fff' + value: '#e68b55' }, ], }, diff --git a/report-ui/src/views/report/bigscreen/designer/tools/componentsJSON/widget-gradient-barchart.js b/report-ui/src/views/report/bigscreen/designer/tools/componentsJSON/widget-gradient-barchart.js index fb8855e6..c7fc447f 100644 --- a/report-ui/src/views/report/bigscreen/designer/tools/componentsJSON/widget-gradient-barchart.js +++ b/report-ui/src/views/report/bigscreen/designer/tools/componentsJSON/widget-gradient-barchart.js @@ -58,14 +58,6 @@ export const widgetGradientBarchart = { placeholder: '', value: 5, }, -/* { - type: 'el-slider', - label: '最小高度', - name: 'minHeight', - require: false, - placeholder: '', - value: 0, - },*/ ], }, { @@ -388,7 +380,15 @@ export const widgetGradientBarchart = { name: 'isShow', required: false, placeholder: '', - value: false + value: true + }, + { + type: 'el-input-number', + label: '距离', + name: 'distance', + required: false, + placeholder: '', + value: 5 }, { type: 'el-input-number', @@ -438,7 +438,7 @@ export const widgetGradientBarchart = { label: '字体颜色', name: 'lineColor', required: false, - placeholder: '', + placeholder: '#ff7f50', }, ], }, @@ -485,7 +485,7 @@ export const widgetGradientBarchart = { name: 'bar0color', required: false, placeholder: '', - value: '#00F4FF' + value: 'rgba(0,244,255,1)' }, { type: 'vue-color', @@ -493,7 +493,7 @@ export const widgetGradientBarchart = { name: 'bar100color', required: false, placeholder: '', - value: '#004DA7' + value: 'rgba(0,77,167,1)' }, { type: 'vue-color', @@ -501,7 +501,7 @@ export const widgetGradientBarchart = { name: 'shadowColor', required: false, placeholder: '', - value: '#00A0DD' + value: 'rgba(0,160,221,1)' }, { type: 'el-input-number', diff --git a/report-ui/src/views/report/bigscreen/designer/widget/bar/widgetGradientColorBarchart.vue b/report-ui/src/views/report/bigscreen/designer/widget/bar/widgetGradientColorBarchart.vue index 48cfd4ca..eed79f71 100644 --- a/report-ui/src/views/report/bigscreen/designer/widget/bar/widgetGradientColorBarchart.vue +++ b/report-ui/src/views/report/bigscreen/designer/widget/bar/widgetGradientColorBarchart.vue @@ -1,11 +1,12 @@