fix(接口测试): 解决场景导入接口列表标签显示问题
This commit is contained in:
parent
1f776e1d9e
commit
668b4deba2
|
@ -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) {
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue