fix(测试跟踪): 用例表头刷新时页面显示延迟
--bug=1024842 --user=宋昌昌 【测试跟踪】github#23067,脑图切换到列表时,加载过程中会显示多余的页面 https://www.tapd.cn/55049933/s/1358470
This commit is contained in:
parent
e2b99d756c
commit
9d5811b1ed
|
@ -266,13 +266,6 @@ export default {
|
|||
this.refresh();
|
||||
}
|
||||
},
|
||||
activeDom(newVal, oldVal) {
|
||||
this.$nextTick(() => {
|
||||
if (oldVal !== 'left' && newVal === 'left' && this.$refs.testCaseList) {
|
||||
this.$refs.testCaseList.getTemplateField();
|
||||
}
|
||||
});
|
||||
},
|
||||
trashEnable() {
|
||||
if (this.trashEnable) {
|
||||
this.activeName = 'trash';
|
||||
|
|
|
@ -626,6 +626,7 @@ export default {
|
|||
});
|
||||
let p2 = getTestTemplate();
|
||||
Promise.all([p1, p2]).then((data) => {
|
||||
this.loading = false;
|
||||
let template = data[1];
|
||||
this.testCaseTemplate = template;
|
||||
this.fields = getTableHeaderWithCustomFields(this.tableHeaderKey, this.testCaseTemplate.customFields, this.members);
|
||||
|
@ -637,16 +638,6 @@ export default {
|
|||
name: this.$t('commons.tag')
|
||||
})
|
||||
getCustomFieldBatchEditOption(template.customFields, this.typeArr, this.valueArr, this.members);
|
||||
|
||||
this.$nextTick(() => {
|
||||
if (this.$refs.table) {
|
||||
this.$refs.table.resetHeader(() => {
|
||||
this.loading = false;
|
||||
});
|
||||
} else {
|
||||
this.loading = false;
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
checkCurrentProject() {
|
||||
|
|
Loading…
Reference in New Issue