mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-12 13:05:13 +08:00
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:
parent
bd6e3cb475
commit
b032ec0313
@ -499,10 +499,12 @@ export default {
|
|||||||
this.cardResult = this.$post(this.buildPagePath(this.queryPath), this.condition, response => {
|
this.cardResult = this.$post(this.buildPagePath(this.queryPath), this.condition, response => {
|
||||||
let data = response.data;
|
let data = response.data;
|
||||||
this.total = data.itemCount;
|
this.total = data.itemCount;
|
||||||
this.tableData = data.listObject;
|
data.listObject.forEach(item => {
|
||||||
this.tableData.forEach(item => {
|
if (item.tags) {
|
||||||
if (item.tags && item.tags.length > 0) {
|
|
||||||
item.tags = JSON.parse(item.tags);
|
item.tags = JSON.parse(item.tags);
|
||||||
|
if(item.tags.length===0){
|
||||||
|
item.tags = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
item.passRate = item.passRate + '%';
|
item.passRate = item.passRate + '%';
|
||||||
this.$get("/test/plan/principal/" + item.id, res => {
|
this.$get("/test/plan/principal/" + item.id, res => {
|
||||||
@ -546,6 +548,7 @@ export default {
|
|||||||
this.$set(item, "showFollow", showFollow);
|
this.$set(item, "showFollow", showFollow);
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
this.tableData =data.listObject;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
copyData(status) {
|
copyData(status) {
|
||||||
|
Loading…
Reference in New Issue
Block a user