fix: 接口用例列表自定义排序不生效

This commit is contained in:
chenjianxing 2021-09-23 16:18:02 +08:00 committed by jianxing
parent 31ced8754a
commit 8d53378626
1 changed files with 12 additions and 0 deletions

View File

@ -11,6 +11,7 @@
@click="addTestCase" v-if="apiDefinitionId">{{ $t('commons.add') }}
</el-button>
<ms-table
v-loading="result.loading"
:data="tableData"
:select-node-ids="selectNodeIds"
:condition="condition"
@ -585,6 +586,17 @@ export default {
isNext = true;
}
});
this.$nextTick(() => {
if (this.$refs.caseTable) {
this.$refs.caseTable.clear();
}
handleRowDrop(this.tableData, (param) => {
param.groupId = this.condition.projectId;
editApiTestCaseOrder(param);
});
})
});
}
},