fix(接口测试): 修复场景导入接口列表频繁调接口的缺陷
--bug=1026866 --user=王孝刚 【接口测试】场景详情-导入接口报错且前端频繁调用分页查询接口 https://www.tapd.cn/55049933/s/1380411
This commit is contained in:
parent
7346cdace5
commit
a638db3634
|
@ -1970,7 +1970,7 @@ export default {
|
||||||
if (res.data) {
|
if (res.data) {
|
||||||
this.projectIds = new Set(res.data.projectIds);
|
this.projectIds = new Set(res.data.projectIds);
|
||||||
this.projectIds.add(this.projectId);
|
this.projectIds.add(this.projectId);
|
||||||
this.isFullUrl = res.data.fullUrl;
|
this.isFullUrl = res.data.data.fullUrl;
|
||||||
}
|
}
|
||||||
resolve();
|
resolve();
|
||||||
});
|
});
|
||||||
|
|
|
@ -60,7 +60,7 @@
|
||||||
<!-- 显示数量 -->
|
<!-- 显示数量 -->
|
||||||
<table-select-count-bar :count="selectCounts" style="float: left; margin: 5px" />
|
<table-select-count-bar :count="selectCounts" style="float: left; margin: 5px" />
|
||||||
|
|
||||||
<el-button size="mini" icon="el-icon-refresh" @click="refresh" />
|
<el-button size="mini" icon="el-icon-refresh" @click="refreshData" />
|
||||||
<el-button type="primary" @click="copy" :loading="buttonIsWorking" @keydown.enter.native.prevent size="mini">
|
<el-button type="primary" @click="copy" :loading="buttonIsWorking" @keydown.enter.native.prevent size="mini">
|
||||||
{{ $t('commons.copy') }}
|
{{ $t('commons.copy') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
|
@ -236,13 +236,16 @@ export default {
|
||||||
this.moduleOptions = data;
|
this.moduleOptions = data;
|
||||||
},
|
},
|
||||||
refresh() {
|
refresh() {
|
||||||
this.$refs.nodeTree.refresh(this.projectId);
|
|
||||||
if (this.isApiListEnable) {
|
if (this.isApiListEnable) {
|
||||||
this.$refs.apiList.initTable(this.projectId);
|
this.$refs.apiList.initTable(this.projectId);
|
||||||
} else {
|
} else {
|
||||||
this.$refs.apiCaseList.initTable(this.projectId);
|
this.$refs.apiCaseList.initTable(this.projectId);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
refreshData() {
|
||||||
|
this.$refs.nodeTree.refresh(this.projectId);
|
||||||
|
this.refresh();
|
||||||
|
},
|
||||||
setProject(projectId) {
|
setProject(projectId) {
|
||||||
this.projectId = projectId;
|
this.projectId = projectId;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue