|
@@ -696,10 +696,8 @@ export default {
|
|
|
this.defaultWarn = '请在左侧选择指标';
|
|
|
this.activeTab=''
|
|
|
}else {
|
|
|
+ console.log('new val')
|
|
|
this.activeTab='Chart'
|
|
|
- this.page_no = 1
|
|
|
- this.$refs.edb_detail_data.$refs.valueUl.scrollTop=0
|
|
|
- console.log('scroll 置0')
|
|
|
this.initGetData();
|
|
|
}
|
|
|
},
|
|
@@ -710,7 +708,9 @@ export default {
|
|
|
(item) => item.EdbInfoId === newval
|
|
|
);
|
|
|
this.page_no = 1;
|
|
|
- this.$refs.valueUl&&(this.$refs.valueUl.scrollTop = 0);
|
|
|
+ if(this.$refs.edb_detail_data){
|
|
|
+ this.$refs.edb_detail_data.$refs.valueUl.scrollTop=0
|
|
|
+ }
|
|
|
this.select_node = search_obj.UniqueCode;
|
|
|
this.selected_edbid = newval;
|
|
|
}
|
|
@@ -844,7 +844,9 @@ export default {
|
|
|
this.$refs.menuTree.setCurrentKey(null)
|
|
|
}
|
|
|
if(type==='refresh') {
|
|
|
- this.$refs.valueUl&&(this.$refs.valueUl.scrollTop = 0);
|
|
|
+ if(this.$refs.edb_detail_data){
|
|
|
+ this.$refs.edb_detail_data.$refs.valueUl.scrollTop=0
|
|
|
+ }
|
|
|
}
|
|
|
this.$nextTick(()=>{
|
|
|
const _node = this.$refs.menuTree.getNode(this.select_node)
|
|
@@ -1603,8 +1605,8 @@ export default {
|
|
|
|
|
|
initGetData() {
|
|
|
this.page_no = 1;
|
|
|
- if(this.$refs.valueUl){
|
|
|
- this.$refs.valueUl.scrollTop = 0;
|
|
|
+ if(this.$refs.edb_detail_data){
|
|
|
+ this.$refs.edb_detail_data.$refs.valueUl.scrollTop=0
|
|
|
}
|
|
|
this.getDataList();
|
|
|
},
|
|
@@ -1759,7 +1761,9 @@ export default {
|
|
|
/* 重新刷新 重新计算后重置刷数据 */
|
|
|
initDataStatus() {
|
|
|
this.page_no = 1;
|
|
|
- this.$refs.valueUl.scrollTop = 0;
|
|
|
+ if(this.$refs.edb_detail_data){
|
|
|
+ this.$refs.edb_detail_data.$refs.valueUl.scrollTop=0
|
|
|
+ }
|
|
|
this.getDataList();
|
|
|
},
|
|
|
/* 用于复制指标 */
|