fix: 修复删除chart后下方顶上来的图不加载的问题

This commit is contained in:
陈劲松
2020-12-25 16:53:23 +08:00
committed by chenjinsong
parent 46fac12e89
commit af0561cabe
3 changed files with 3 additions and 6 deletions

View File

@@ -192,10 +192,6 @@
textChart textChart
// visNetwork, // visNetwork,
}, },
watch:{
dataList(n){
}
},
data() { data() {
return { return {
filter: {}, filter: {},
@@ -695,7 +691,6 @@
}, },
// 获取一个图表具体数据,图表信息图表位置index // 获取一个图表具体数据,图表信息图表位置index
getChartData(chartInfo, pos, filterType) { getChartData(chartInfo, pos, filterType) {
console.info(filterType)
const chartItem = chartInfo; const chartItem = chartInfo;
const index = pos; // 指标 const index = pos; // 指标
if(chartItem.type === 'assetInfo'){ if(chartItem.type === 'assetInfo'){
@@ -1612,7 +1607,7 @@
that.$refs['editChart'+item.id][0].showLoad(item); that.$refs['editChart'+item.id][0].showLoad(item);
} }
} }
}, 100); }, 500);
}, },
}, },
created() { created() {

View File

@@ -257,6 +257,7 @@
} }
} }
} }
this.$refs.chartList.loadChartData(this.scrollbarWrap.scrollTop);
if(nextChart&&prevChart){ //删除图表为中间位置 if(nextChart&&prevChart){ //删除图表为中间位置
prevChart.next = nextChart.id; prevChart.next = nextChart.id;
nextChart.prev = prevChart.id; nextChart.prev = prevChart.id;

View File

@@ -332,6 +332,7 @@
} }
} }
} }
this.$refs.chartList.loadChartData(this.scrollbarWrap.scrollTop);
if(nextChart&&prevChart){ //删除图表为中间位置 if(nextChart&&prevChart){ //删除图表为中间位置
prevChart.next = nextChart.id; prevChart.next = nextChart.id;
nextChart.prev = prevChart.id; nextChart.prev = prevChart.id;