From 8f5ffcb51a6769fcbf79650f5cec8f14413dea01 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Tue, 9 Mar 2021 11:38:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=A1=B5=E9=9D=A2=E5=8D=A1=E9=A1=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/automation/scenario/testplan/TestPlanList.vue | 8 -------- .../components/track/plan/components/TestPlanEdit.vue | 2 -- .../components/track/plan/components/TestPlanList.vue | 8 -------- 3 files changed, 18 deletions(-) diff --git a/frontend/src/business/components/api/automation/scenario/testplan/TestPlanList.vue b/frontend/src/business/components/api/automation/scenario/testplan/TestPlanList.vue index ea2aceb4f9..7e631ce3a3 100644 --- a/frontend/src/business/components/api/automation/scenario/testplan/TestPlanList.vue +++ b/frontend/src/business/components/api/automation/scenario/testplan/TestPlanList.vue @@ -231,14 +231,6 @@ export default { let data = response.data; this.total = data.itemCount; this.tableData = data.listObject; - for (let i = 0; i < this.tableData.length; i++) { - let path = "/test/plan/project"; - this.$post(path, {planId: this.tableData[i].id}, res => { - let arr = res.data; - let projectIds = arr.map(data => data.id); - this.$set(this.tableData[i], "projectIds", projectIds); - }) - } }); }, buildPagePath(path) { diff --git a/frontend/src/business/components/track/plan/components/TestPlanEdit.vue b/frontend/src/business/components/track/plan/components/TestPlanEdit.vue index ee971a3524..a767856738 100644 --- a/frontend/src/business/components/track/plan/components/TestPlanEdit.vue +++ b/frontend/src/business/components/track/plan/components/TestPlanEdit.vue @@ -134,7 +134,6 @@ export default { plannedStartTime: '', plannedEndTime: '' }, - dbProjectIds: [], rules: { name: [ {required: true, message: this.$t('test_track.plan.input_plan_name'), trigger: 'blur'}, @@ -160,7 +159,6 @@ export default { let tmp = {}; Object.assign(tmp, testPlan); Object.assign(this.form, tmp); - this.dbProjectIds = JSON.parse(JSON.stringify(this.form.projectIds)); } listenGoBack(this.close); this.dialogFormVisible = true; diff --git a/frontend/src/business/components/track/plan/components/TestPlanList.vue b/frontend/src/business/components/track/plan/components/TestPlanList.vue index 7677da6ffd..033109e521 100644 --- a/frontend/src/business/components/track/plan/components/TestPlanList.vue +++ b/frontend/src/business/components/track/plan/components/TestPlanList.vue @@ -279,14 +279,6 @@ export default { let data = response.data; this.total = data.itemCount; this.tableData = data.listObject; - for (let i = 0; i < this.tableData.length; i++) { - let path = "/test/plan/project"; - this.$post(path, {planId: this.tableData[i].id}, res => { - let arr = res.data; - let projectIds = arr.filter(d => d.id !== this.tableData[i].projectId).map(data => data.id); - this.$set(this.tableData[i], "projectIds", projectIds); - }) - } }); }, buildPagePath(path) {