百分百图动静数据一致

qianming 3 years ago
parent 4b8d8d1fce
commit ea452ca285

@ -169,9 +169,6 @@ sql文件的目录在report-core --> src --> main --> resources -- > db.migra
- Jdk 11
- 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>
## 商业授权

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

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

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

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

Loading…
Cancel
Save