forked from github/dataease
Merge pull request #805 from dataease/pr@dev@fix_panel-linkage
fix:视图更换数据集可能导致联动失效的问题
This commit is contained in:
commit
350ef60ddc
@ -460,6 +460,9 @@ public class ChartViewService {
|
|||||||
map.putAll(mapChart);
|
map.putAll(mapChart);
|
||||||
map.putAll(mapTableNormal);
|
map.putAll(mapTableNormal);
|
||||||
|
|
||||||
|
List<DatasetTableField> sourceFields = dataSetTableFieldsService.getFieldsByTableId(view.getTableId());
|
||||||
|
map.put("sourceFields",sourceFields);
|
||||||
|
|
||||||
ChartViewDTO dto = new ChartViewDTO();
|
ChartViewDTO dto = new ChartViewDTO();
|
||||||
BeanUtils.copyBean(dto, view);
|
BeanUtils.copyBean(dto, view);
|
||||||
dto.setData(map);
|
dto.setData(map);
|
||||||
|
@ -121,7 +121,7 @@ export default {
|
|||||||
trackMenu() {
|
trackMenu() {
|
||||||
const trackMenuInfo = []
|
const trackMenuInfo = []
|
||||||
let linkageCount = 0
|
let linkageCount = 0
|
||||||
this.chart.data && this.chart.data.fields && this.chart.data.fields.forEach(item => {
|
this.chart.data && this.chart.data.sourceFields && this.chart.data.sourceFields.forEach(item => {
|
||||||
const sourceInfo = this.chart.id + '#' + item.id
|
const sourceInfo = this.chart.id + '#' + item.id
|
||||||
if (this.nowPanelTrackInfo[sourceInfo]) {
|
if (this.nowPanelTrackInfo[sourceInfo]) {
|
||||||
linkageCount++
|
linkageCount++
|
||||||
|
Loading…
Reference in New Issue
Block a user