fix: 修复删除chart后下方顶上来的图不加载的问题
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user