refactor: 脑图用例顺序与列表保持一致
This commit is contained in:
parent
4ad15075aa
commit
cfc1b9acbb
|
@ -418,6 +418,7 @@
|
|||
id, `name`, node_id, node_path, `type`, `method`, maintainer, priority, prerequisite, remark, steps
|
||||
from test_case
|
||||
<include refid="queryWhereCondition"/>
|
||||
<include refid="io.metersphere.base.mapper.ext.ExtBaseMapper.orders"/>
|
||||
</select>
|
||||
<select id="getTestCaseByNotInIssue" resultType="io.metersphere.track.dto.TestCaseDTO">
|
||||
select
|
||||
|
|
|
@ -530,6 +530,7 @@
|
|||
<where>
|
||||
pc.plan_id = #{planId}
|
||||
</where>
|
||||
order by pc.update_time desc;
|
||||
</select>
|
||||
<select id="listTestCaseTest" resultType="io.metersphere.track.dto.TestCaseTestDTO">
|
||||
select * from test_case_test where test_case_id = #{caseId};
|
||||
|
|
|
@ -1001,6 +1001,7 @@ public class TestCaseService {
|
|||
}
|
||||
|
||||
public List<TestCaseWithBLOBs> listTestCaseForMinder(QueryTestCaseRequest request) {
|
||||
request.setOrders(ServiceUtils.getDefaultOrder(request.getOrders()));
|
||||
return extTestCaseMapper.listForMinder(request);
|
||||
}
|
||||
|
||||
|
|
|
@ -43,6 +43,7 @@
|
|||
<test-case-minder
|
||||
:tree-nodes="treeNodes"
|
||||
:project-id="projectId"
|
||||
:condition="condition"
|
||||
v-if="activeDom === 'right'"
|
||||
ref="minder"/>
|
||||
</ms-tab-button>
|
||||
|
|
|
@ -396,6 +396,7 @@ export default {
|
|||
}
|
||||
if (this.projectId) {
|
||||
this.condition.projectId = this.projectId;
|
||||
this.$emit('setCondition', this.condition);
|
||||
this.result = this.$post(this.buildPagePath('/test/case/list'), this.condition, response => {
|
||||
let data = response.data;
|
||||
this.total = data.itemCount;
|
||||
|
|
|
@ -41,7 +41,7 @@ name: "TestCaseMinder",
|
|||
}
|
||||
},
|
||||
condition: Object,
|
||||
projectId: String
|
||||
projectId: String,
|
||||
},
|
||||
computed: {
|
||||
selectNodeIds() {
|
||||
|
@ -76,11 +76,11 @@ name: "TestCaseMinder",
|
|||
methods: {
|
||||
getTestCases() {
|
||||
if (this.projectId) {
|
||||
let param = {
|
||||
projectId: this.projectId,
|
||||
nodeIds: this.selectNodeIds
|
||||
}
|
||||
this.result = this.$post('/test/case/list/minder', param,response => {
|
||||
// let param = {
|
||||
// projectId: this.projectId,
|
||||
// nodeIds: this.selectNodeIds
|
||||
// }
|
||||
this.result = this.$post('/test/case/list/minder', this.condition,response => {
|
||||
this.testCase = response.data;
|
||||
this.dataMap = getTestCaseDataMap(this.testCase);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue