From dbd5711c10987c41a78f31b123da14d223d83095 Mon Sep 17 00:00:00 2001 From: metersphere-bot <78466014+metersphere-bot@users.noreply.github.com> Date: Wed, 7 Apr 2021 15:06:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E7=8A=B6=E6=80=81=E6=8A=A5=E9=94=99=20(#1934?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: chenjianxing --- .../track/plan/common/TestPlanStatusButton.vue | 5 +++++ .../components/track/plan/components/TestPlanList.vue | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/frontend/src/business/components/track/plan/common/TestPlanStatusButton.vue b/frontend/src/business/components/track/plan/common/TestPlanStatusButton.vue index b82b1026f8..2b8a461ec6 100644 --- a/frontend/src/business/components/track/plan/common/TestPlanStatusButton.vue +++ b/frontend/src/business/components/track/plan/common/TestPlanStatusButton.vue @@ -15,6 +15,11 @@ :icon="status == 'Completed' ? 'el-icon-check' : ''" @click="setStatus('Completed')"> {{$t('test_track.plan.plan_status_completed')}} + + {{$t('test_track.plan.plan_status_finished')}} + diff --git a/frontend/src/business/components/track/plan/components/TestPlanList.vue b/frontend/src/business/components/track/plan/components/TestPlanList.vue index d6ae00e882..0d4aa41d4c 100644 --- a/frontend/src/business/components/track/plan/components/TestPlanList.vue +++ b/frontend/src/business/components/track/plan/components/TestPlanList.vue @@ -343,11 +343,11 @@ export default { handleEdit(testPlan) { this.$emit('testPlanEdit', testPlan); }, - statusChange(param) { - console.log(this.tableData); - let oldStatus = param.item.status; - let newStatus = param.status; - param = param.item; + statusChange(data) { + let oldStatus = data.item.status; + let newStatus = data.status; + let param = {}; + param.id = data.item.id; param.status = newStatus; this.$post('/test/plan/edit', param, () => { for (let i = 0; i < this.tableData.length; i++) {