百分百图动静数据一致

qianming 3 years ago
parent 4b8d8d1fce
commit ea452ca285

@ -169,9 +169,6 @@ sql文件的目录在report-core --> src --> main --> resources -- > db.migra
- Jdk 11 - Jdk 11
- Mysql 8.08.0.23/26版本没有问题8.0.21版本存在问题) - Mysql 8.08.0.23/26版本没有问题8.0.21版本存在问题)
AJ-Report 使用Druid版本为1.2.6如果你觉得你配置都是正常但是数据源测试不过请尝试修改pom文件降低Druid版本。 <br>
例如MSSQLSERVER 2014请将Druid版本降低为1.2.1以下(需要修改源码)。 <br>
常见问题https://report.anji-plus.com/report-doc/guide/question.html <br> 常见问题https://report.anji-plus.com/report-doc/guide/question.html <br>
## 商业授权 ## 商业授权

@ -324,7 +324,9 @@ export const widgetGauge = {
placeholder: '', placeholder: '',
relactiveDom: 'dataType', relactiveDom: 'dataType',
relactiveDomValue: 'staticData', relactiveDomValue: 'staticData',
value: 50, value: [
{"num":50}
],
}, },
{ {
type: 'dycustComponents', type: 'dycustComponents',

@ -201,7 +201,9 @@ export const widgetPiePercentage = {
placeholder: '', placeholder: '',
relactiveDom: 'dataType', relactiveDom: 'dataType',
relactiveDomValue: 'staticData', relactiveDomValue: 'staticData',
value: 60, value: [
{"num":60}
],
}, },
{ {
type: 'dycustComponents', type: 'dycustComponents',

@ -259,9 +259,10 @@ export default {
staticDataFn(val) { staticDataFn(val) {
const optionsSetup = this.optionsSetup; const optionsSetup = this.optionsSetup;
const series = this.options.series; const series = this.options.series;
const num = val[0]['num'];
const data = [ const data = [
{ {
value: val value: num
} }
] ]
const detail = { const detail = {

@ -445,9 +445,10 @@ export default {
}, },
staticDataFn(val) { staticDataFn(val) {
const title = this.options.title; const title = this.options.title;
title.text = '{nums|' + val + '}{percent|%}'; const num = val[0]['num'];
this.options.series[6]['data'][0]['value'] = val; title.text = '{nums|' + num + '}{percent|%}';
this.options.series[6]['data'][1]['value'] = 100 - val; this.options.series[6]['data'][0]['value'] = num;
this.options.series[6]['data'][1]['value'] = 100 - num;
}, },
dynamicDataFn(val, refreshTime) { dynamicDataFn(val, refreshTime) {
if (!val) return; if (!val) return;

Loading…
Cancel
Save