fix(测试跟踪): 修复测试计划列表空标签显示问题

--bug=1010495--user=郭雨琦
修复测试计划列表空标签显示问题
https://www.tapd.cn/55049933/bugtrace/bugs/view?bug_id=1155049933001010495&url_cache_key=from_url_iteration_list_af1c2a348ba1b2cbec7f7734af247d0e&action_entry_type=bugs
This commit is contained in:
guoyuqi 2022-02-22 16:23:21 +08:00 committed by 刘瑞斌
parent bd6e3cb475
commit b032ec0313
1 changed files with 6 additions and 3 deletions

View File

@ -499,10 +499,12 @@ export default {
this.cardResult = this.$post(this.buildPagePath(this.queryPath), this.condition, response => {
let data = response.data;
this.total = data.itemCount;
this.tableData = data.listObject;
this.tableData.forEach(item => {
if (item.tags && item.tags.length > 0) {
data.listObject.forEach(item => {
if (item.tags) {
item.tags = JSON.parse(item.tags);
if(item.tags.length===0){
item.tags = null;
}
}
item.passRate = item.passRate + '%';
this.$get("/test/plan/principal/" + item.id, res => {
@ -546,6 +548,7 @@ export default {
this.$set(item, "showFollow", showFollow);
})
});
this.tableData =data.listObject;
});
},
copyData(status) {