refactor: 脑图用例顺序与列表保持一致

This commit is contained in:
chenjianxing 2021-05-06 11:03:24 +08:00 committed by fit2-zhao
parent 4ad15075aa
commit cfc1b9acbb
6 changed files with 11 additions and 6 deletions

View File

@ -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

View File

@ -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};

View File

@ -1001,6 +1001,7 @@ public class TestCaseService {
}
public List<TestCaseWithBLOBs> listTestCaseForMinder(QueryTestCaseRequest request) {
request.setOrders(ServiceUtils.getDefaultOrder(request.getOrders()));
return extTestCaseMapper.listForMinder(request);
}

View File

@ -43,6 +43,7 @@
<test-case-minder
:tree-nodes="treeNodes"
:project-id="projectId"
:condition="condition"
v-if="activeDom === 'right'"
ref="minder"/>
</ms-tab-button>

View File

@ -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;

View File

@ -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);
});