fix(接口测试): 解决场景导入接口列表标签显示问题

This commit is contained in:
BugKing 2021-05-19 09:52:23 +08:00
parent b8be6cdda8
commit 2e52f5ef86
2 changed files with 7 additions and 2 deletions

View File

@ -198,7 +198,7 @@
result: {},
moduleId: "",
deletePath: "/test/case/delete",
screenHeight: document.documentElement.clientHeight - 500,//,
screenHeight: document.documentElement.clientHeight - 400,//,
typeArr: [
{id: 'priority', name: this.$t('test_track.case.priority')},
],
@ -315,6 +315,11 @@
this.result = this.$post(url + this.currentPage + "/" + this.pageSize, this.condition, response => {
this.total = response.data.itemCount;
this.tableData = response.data.listObject;
this.tableData.forEach(item => {
if (item.tags && item.tags.length > 0) {
item.tags = JSON.parse(item.tags);
}
});
this.genProtocalFilter(this.condition.protocol);
this.$nextTick(function () {
if (this.$refs.apitable) {

View File

@ -211,7 +211,7 @@ export default {
priority: CASE_PRIORITY,
},
methodColorMap: new Map(API_METHOD_COLOUR),
screenHeight: document.documentElement.clientHeight - 330,//
screenHeight: document.documentElement.clientHeight - 400,//
tableData: [],
currentPage: 1,
pageSize: 10,