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

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

View File

@ -198,7 +198,7 @@
result: {}, result: {},
moduleId: "", moduleId: "",
deletePath: "/test/case/delete", deletePath: "/test/case/delete",
screenHeight: document.documentElement.clientHeight - 500,//, screenHeight: document.documentElement.clientHeight - 400,//,
typeArr: [ typeArr: [
{id: 'priority', name: this.$t('test_track.case.priority')}, {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.result = this.$post(url + this.currentPage + "/" + this.pageSize, this.condition, response => {
this.total = response.data.itemCount; this.total = response.data.itemCount;
this.tableData = response.data.listObject; 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.genProtocalFilter(this.condition.protocol);
this.$nextTick(function () { this.$nextTick(function () {
if (this.$refs.apitable) { if (this.$refs.apitable) {

View File

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