refactor(测试跟踪):用例评审关联用例新增排序
This commit is contained in:
parent
cf4ca36b97
commit
fa56934a6f
|
@ -182,7 +182,11 @@
|
|||
test_case.type,
|
||||
test_case.review_status,
|
||||
project_version.name as versionName,
|
||||
project_version.id as versionId
|
||||
project_version.id as versionId,
|
||||
test_case.num,
|
||||
test_case.custom_num,
|
||||
test_case.create_time,
|
||||
test_case.update_time
|
||||
from test_case
|
||||
left join test_case_review_test_case as T2 on test_case.id=T2.case_id and T2.review_id =#{request.reviewId}
|
||||
left join project_version on test_case.version_id = project_version.id and test_case.project_id =
|
||||
|
|
|
@ -144,7 +144,7 @@
|
|||
test_case.type, test_case.node_path, test_case.num,
|
||||
test_case.custom_num, test_case_review_test_case.status review_status,
|
||||
test_case.remark as remark, test_case.maintainer, test_case.steps as steps, test_case.node_id as nodeId,
|
||||
test_case.project_id, test_case_node.name as model, test_case.version_id, test_case.tags
|
||||
test_case.project_id, test_case_node.name as model, test_case.version_id, test_case.tags, test_case.create_time
|
||||
from test_case_review_test_case
|
||||
inner join test_case on test_case_review_test_case.case_id = test_case.id
|
||||
left join test_case_node on test_case_node.id=test_case.node_id
|
||||
|
|
|
@ -56,6 +56,20 @@
|
|||
:condition="condition"
|
||||
ref="table">
|
||||
|
||||
<el-table-column
|
||||
v-if="!customNum"
|
||||
prop="num"
|
||||
sortable
|
||||
:label="$t('commons.id')">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
v-if="customNum"
|
||||
prop="customNum"
|
||||
sortable
|
||||
:label="$t('commons.id')">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="name"
|
||||
:label="$t('test_track.case.name')"
|
||||
|
@ -98,6 +112,9 @@
|
|||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<ms-update-time-column/>
|
||||
<ms-create-time-column/>
|
||||
|
||||
</ms-table>
|
||||
<ms-table-pagination :change="getReviews" :current-page.sync="currentPage" :page-size.sync="pageSize"
|
||||
:total="total"/>
|
||||
|
@ -142,6 +159,9 @@ import {getVersionFilters} from "@/business/utils/sdk-utils";
|
|||
import {projectRelated} from "@/api/project";
|
||||
import {getTestTemplate} from "@/api/custom-field-template";
|
||||
import {initTestCaseConditionComponents} from "@/business/case/test-case";
|
||||
import MsCreateTimeColumn from "metersphere-frontend/src/components/table/MsCreateTimeColumn";
|
||||
import MsUpdateTimeColumn from "metersphere-frontend/src/components/table/MsUpdateTimeColumn";
|
||||
import {getProjectApplicationConfig} from "@/api/project-application";
|
||||
|
||||
export default {
|
||||
name: "TestReviewRelevance",
|
||||
|
@ -160,7 +180,9 @@ export default {
|
|||
'VersionSelect': VersionSelect,
|
||||
MsTablePagination,
|
||||
MsDialogHeader,
|
||||
MsTable
|
||||
MsTable,
|
||||
MsUpdateTimeColumn,
|
||||
MsCreateTimeColumn,
|
||||
},
|
||||
directives: {
|
||||
'el-table-infinite-scroll': elTableInfiniteScroll
|
||||
|
@ -186,6 +208,7 @@ export default {
|
|||
currentPage: 1,
|
||||
total: 0,
|
||||
lineStatus: true,
|
||||
customNum: false,
|
||||
condition: {
|
||||
components: TEST_REVIEW_RELEVANCE_CASE_CONFIGS
|
||||
},
|
||||
|
@ -226,6 +249,7 @@ export default {
|
|||
this.condition.versionId = null;
|
||||
this.getVersionOptions();
|
||||
this.getProjectNode();
|
||||
this.getCustomNum();
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
@ -412,7 +436,18 @@ export default {
|
|||
changeVersion(version) {
|
||||
this.condition.versionId = version || null;
|
||||
this.search();
|
||||
}
|
||||
},
|
||||
getCustomNum() {
|
||||
getProjectApplicationConfig('CASE_CUSTOM_NUM')
|
||||
.then(result => {
|
||||
let data = result.data;
|
||||
if (data && data.typeValue === 'true') {
|
||||
this.customNum = true;
|
||||
} else {
|
||||
this.customNum = false;
|
||||
}
|
||||
});
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -163,6 +163,19 @@
|
|||
<span>{{ scope.row.updateTime | datetimeFormat }}</span>
|
||||
</template>
|
||||
</ms-table-column>
|
||||
|
||||
<ms-table-column
|
||||
sortable
|
||||
prop="createTime"
|
||||
:field="item"
|
||||
:fields-width="fieldsWidth"
|
||||
:label="$t('commons.create_time')"
|
||||
min-width="120px">
|
||||
<template v-slot:default="scope">
|
||||
<span>{{ scope.row.createTime | datetimeFormat }}</span>
|
||||
</template>
|
||||
</ms-table-column>
|
||||
|
||||
</span>
|
||||
|
||||
</ms-table>
|
||||
|
|
|
@ -165,7 +165,8 @@ const TRACK_HEADER = {
|
|||
{id: 'reviewStatus', key: '8', label: 'test_track.case.status'},
|
||||
{id: 'updateTime', key: '9', label: 'commons.update_time'},
|
||||
{id: 'maintainerName', key: 'a', label: 'custom_field.case_maintainer'},
|
||||
{id: 'versionId', key: 'b', label: 'commons.version'}
|
||||
{id: 'versionId', key: 'b', label: 'commons.version'},
|
||||
{id: 'createTime', key: 'c', label: 'commons.create_time'},
|
||||
],
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue