From b032ec03130ac12faf6c82e7af04c958008c20b8 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Tue, 22 Feb 2022 16:23:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E7=A9=BA=E6=A0=87=E7=AD=BE=E6=98=BE=E7=A4=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --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 --- .../components/track/plan/components/TestPlanList.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/frontend/src/business/components/track/plan/components/TestPlanList.vue b/frontend/src/business/components/track/plan/components/TestPlanList.vue index 313bb164fb..d4ba2dd21f 100644 --- a/frontend/src/business/components/track/plan/components/TestPlanList.vue +++ b/frontend/src/business/components/track/plan/components/TestPlanList.vue @@ -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) {