fix: 修改测试计划状态报错 (#1934)
Co-authored-by: chenjianxing <jianxing.chen@fit2cloud.com>
This commit is contained in:
parent
098eae1486
commit
dbd5711c10
|
@ -15,6 +15,11 @@
|
||||||
:icon="status == 'Completed' ? 'el-icon-check' : ''"
|
:icon="status == 'Completed' ? 'el-icon-check' : ''"
|
||||||
@click="setStatus('Completed')"> {{$t('test_track.plan.plan_status_completed')}}</el-button>
|
@click="setStatus('Completed')"> {{$t('test_track.plan.plan_status_completed')}}</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col>
|
||||||
|
<el-button type="warning" round size="mini"
|
||||||
|
:icon="status == 'Finished' ? 'el-icon-check' : ''"
|
||||||
|
@click="setStatus('Finished')"> {{$t('test_track.plan.plan_status_finished')}}</el-button>
|
||||||
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -343,11 +343,11 @@ export default {
|
||||||
handleEdit(testPlan) {
|
handleEdit(testPlan) {
|
||||||
this.$emit('testPlanEdit', testPlan);
|
this.$emit('testPlanEdit', testPlan);
|
||||||
},
|
},
|
||||||
statusChange(param) {
|
statusChange(data) {
|
||||||
console.log(this.tableData);
|
let oldStatus = data.item.status;
|
||||||
let oldStatus = param.item.status;
|
let newStatus = data.status;
|
||||||
let newStatus = param.status;
|
let param = {};
|
||||||
param = param.item;
|
param.id = data.item.id;
|
||||||
param.status = newStatus;
|
param.status = newStatus;
|
||||||
this.$post('/test/plan/edit', param, () => {
|
this.$post('/test/plan/edit', param, () => {
|
||||||
for (let i = 0; i < this.tableData.length; i++) {
|
for (let i = 0; i < this.tableData.length; i++) {
|
||||||
|
|
Loading…
Reference in New Issue