forked from github/dataease
commit
3c1ca7702d
@ -865,7 +865,7 @@ public class ChartDataManage {
|
||||
return list;
|
||||
}
|
||||
|
||||
var assistLineCfg = JsonUtil.parseObject((String) JsonUtil.toJSONString(senior.get("assistLineCfg")), ChartSeniorAssistCfgDTO.class);
|
||||
ChartSeniorAssistCfgDTO assistLineCfg = JsonUtil.parseObject((String) JsonUtil.toJSONString(senior.get("assistLineCfg")), ChartSeniorAssistCfgDTO.class);
|
||||
if (null == assistLineCfg || !assistLineCfg.isEnable()) {
|
||||
return list;
|
||||
}
|
||||
|
@ -76,8 +76,23 @@ const init = () => {
|
||||
state.lineArr = JSON.parse(JSON.stringify(props.line))
|
||||
|
||||
state.lineArr.forEach(line => {
|
||||
if (find(props.quotaFields, d => d.id === line.fieldId) == undefined) {
|
||||
line.fieldId = undefined
|
||||
if (props.useQuotaExt) {
|
||||
if (
|
||||
line.yAxisType === 'left' &&
|
||||
find(props.quotaFields, d => d.id === line.fieldId) == undefined
|
||||
) {
|
||||
line.fieldId = undefined
|
||||
}
|
||||
if (
|
||||
line.yAxisType === 'right' &&
|
||||
find(props.quotaExtFields, d => d.id === line.fieldId) == undefined
|
||||
) {
|
||||
line.fieldId = undefined
|
||||
}
|
||||
} else {
|
||||
if (find(props.quotaFields, d => d.id === line.fieldId) == undefined) {
|
||||
line.fieldId = undefined
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
package io.dataease.api.chart.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import lombok.Data;
|
||||
@ -15,6 +16,7 @@ public class ChartSeniorAssistDTO {
|
||||
private Long fieldId;
|
||||
private String summary;
|
||||
private String axis;
|
||||
@JsonProperty("yAxisType")
|
||||
private String yAxisType;
|
||||
private String value;
|
||||
private String lineType;
|
||||
|
Loading…
Reference in New Issue
Block a user