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++) {