Merge branch 'v1.8' of https://github.com/metersphere/metersphere into v1.8
This commit is contained in:
commit
5379c8b763
|
@ -433,7 +433,7 @@
|
|||
this.result.loading = false;
|
||||
this.unSelection = data.listObject.map(s => s.id);
|
||||
if (this.$refs.scenarioTable) {
|
||||
this.$refs.scenarioTable.doLayout()
|
||||
setTimeout(this.$refs.scenarioTable.doLayout,500)
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -643,7 +643,7 @@ export default {
|
|||
|
||||
if(lastIndex < this.currentApiIndexInApiShowArray){
|
||||
//上移
|
||||
if(this.needAsyncSelect){
|
||||
// if(this.needAsyncSelect){
|
||||
//进行判断:是否还需要为apiShowArray 增加数据。 由于在当前数据前后最多展现2条数据,
|
||||
//可得: apiStepIndex-1- 2 < apiInfoArray,需要添加数据
|
||||
let dataIndex = this.apiStepIndex -3;
|
||||
|
@ -657,11 +657,11 @@ export default {
|
|||
if(this.apiShowArray.length > (this.currentApiIndexInApiShowArray+3)){
|
||||
this.apiShowArray.pop();
|
||||
}
|
||||
}
|
||||
// }
|
||||
this.apiStepIndex --;
|
||||
}else if(lastIndex > this.currentApiIndexInApiShowArray){
|
||||
//下滚
|
||||
if(this.needAsyncSelect){
|
||||
// if(this.needAsyncSelect){
|
||||
//进行判断:是否还需要为apiShowArray 增加数据。 由于在当前数据前后最多展现2条数据,
|
||||
//可得: apiStepIndex+1+ 2 < apiInfoArray,需要添加数据
|
||||
let dataIndex = this.apiStepIndex +3;
|
||||
|
@ -678,7 +678,7 @@ export default {
|
|||
let itemHeight = this.$refs.apiDocInfoDivItem[0].offsetHeight+10;
|
||||
this.$refs.apiDocInfoDiv.scrollTop = (apiDocDivScrollTop-itemHeight);
|
||||
}
|
||||
}
|
||||
// }
|
||||
this.apiStepIndex ++;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -340,7 +340,7 @@ export default {
|
|||
}
|
||||
})
|
||||
if (this.$refs.caseTable) {
|
||||
this.$refs.caseTable.doLayout()
|
||||
setTimeout(this.$refs.caseTable.doLayout,500)
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -464,7 +464,7 @@
|
|||
}
|
||||
})
|
||||
if (this.$refs.apiDefinitionTable) {
|
||||
this.$refs.apiDefinitionTable.doLayout()
|
||||
setTimeout(this.$refs.apiDefinitionTable.doLayout, 500)
|
||||
}
|
||||
|
||||
});
|
||||
|
|
|
@ -399,7 +399,7 @@ export default {
|
|||
item.tags = JSON.parse(item.tags);
|
||||
})
|
||||
if (this.$refs.table) {
|
||||
this.$refs.table.doLayout()
|
||||
setTimeout(this.$refs.table.doLayout,500)
|
||||
}
|
||||
|
||||
});
|
||||
|
|
|
@ -477,7 +477,7 @@ export default {
|
|||
}
|
||||
this.selectRows.clear();
|
||||
if (this.$refs.table) {
|
||||
this.$refs.table.doLayout()
|
||||
setTimeout(this.$refs.table.doLayout,500)
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue