fix: 用例脑图和列表顺序保持一致
This commit is contained in:
parent
528eb6b244
commit
17856ece01
|
@ -1486,6 +1486,13 @@ public class TestCaseService {
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<TestCaseWithBLOBs> listTestCaseForMinder(QueryTestCaseRequest request) {
|
public List<TestCaseWithBLOBs> listTestCaseForMinder(QueryTestCaseRequest request) {
|
||||||
|
List<OrderRequest> orderList = ServiceUtils.getDefaultOrder(request.getOrders());
|
||||||
|
OrderRequest order = new OrderRequest();
|
||||||
|
// 对模板导入的测试用例排序
|
||||||
|
order.setName("sort");
|
||||||
|
order.setType("desc");
|
||||||
|
orderList.add(order);
|
||||||
|
request.setOrders(orderList);
|
||||||
request.setOrders(ServiceUtils.getDefaultOrder(request.getOrders()));
|
request.setOrders(ServiceUtils.getDefaultOrder(request.getOrders()));
|
||||||
return extTestCaseMapper.listForMinder(request);
|
return extTestCaseMapper.listForMinder(request);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div v-if="tableActive">
|
||||||
<el-table
|
<el-table
|
||||||
border
|
border
|
||||||
:data="data"
|
:data="data"
|
||||||
|
@ -115,6 +115,7 @@ export default {
|
||||||
selectDataCounts: 0,
|
selectDataCounts: 0,
|
||||||
selectRows: new Set(),
|
selectRows: new Set(),
|
||||||
selectIds: [],
|
selectIds: [],
|
||||||
|
tableActive: true,
|
||||||
hasBatchTipShow: false
|
hasBatchTipShow: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -349,13 +350,16 @@ export default {
|
||||||
},
|
},
|
||||||
resetHeader() {
|
resetHeader() {
|
||||||
this.$emit('update:fields', getCustomTableHeader(this.fieldKey, this.customFields));
|
this.$emit('update:fields', getCustomTableHeader(this.fieldKey, this.customFields));
|
||||||
this.doLayout();
|
this.reloadTable();
|
||||||
},
|
},
|
||||||
toggleRowSelection() {
|
toggleRowSelection() {
|
||||||
this.$refs.table.toggleRowSelection();
|
this.$refs.table.toggleRowSelection();
|
||||||
},
|
},
|
||||||
reloadTable() {
|
reloadTable() {
|
||||||
this.doLayout();
|
this.tableActive = false;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.tableActive = true;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -95,6 +95,7 @@ name: "TestCaseMinder",
|
||||||
return {
|
return {
|
||||||
request: {
|
request: {
|
||||||
projectId: this.projectId,
|
projectId: this.projectId,
|
||||||
|
orders: this.condition.orders
|
||||||
},
|
},
|
||||||
result: this.result,
|
result: this.result,
|
||||||
isDisable: false
|
isDisable: false
|
||||||
|
|
Loading…
Reference in New Issue