revert(测试跟踪): 修复在关闭自定义id条件下测试计划功能用例id排序错误问题

This reverts commit 3d0f858064.
This commit is contained in:
shiziyuan9527 2023-02-06 14:32:15 +08:00 committed by lyh
parent 3d0f858064
commit a1edbe756c
1 changed files with 5 additions and 30 deletions

View File

@ -38,30 +38,19 @@
@filter="search" @filter="search"
ref="table" ref="table"
> >
<ms-table-column
v-if="!customNum"
prop="num"
sortable
:label="$t('commons.id')"/>
<ms-table-column
v-if="customNum"
prop="customNum"
sortable
:label="$t('commons.id')"/>
<span v-for="item in fields" :key="item.key"> <span v-for="item in fields" :key="item.key">
<ms-table-column
<!-- <ms-table-column
v-if="item.id == 'num'" v-if="item.id == 'num'"
prop="customNum" prop="customNum"
sortable="custom" sortable="custom"
:fields-width="fieldsWidth" :fields-width="fieldsWidth"
:label="$t('commons.id')" :label="$t('commons.id')"
min-width="120px"/>--> min-width="120px"/>
<ms-table-column <ms-table-column
prop="name" prop="name"
:field="item" :field="item"
sortable sortable="custom"
:fields-width="fieldsWidth" :fields-width="fieldsWidth"
:label="$t('commons.name')" :label="$t('commons.name')"
min-width="120px"/> min-width="120px"/>
@ -84,7 +73,7 @@
:field="item" :field="item"
:fields-width="fieldsWidth" :fields-width="fieldsWidth"
:filters="priorityFilters" :filters="priorityFilters"
sortable sortable="custom"
min-width="120px" min-width="120px"
:label="$t('test_track.case.priority')"> :label="$t('test_track.case.priority')">
<template v-slot:default="scope"> <template v-slot:default="scope">
@ -204,7 +193,6 @@ import {
} from "@/api/test-review"; } from "@/api/test-review";
import {useStore} from "@/store"; import {useStore} from "@/store";
import {getVersionFilters} from "@/business/utils/sdk-utils"; import {getVersionFilters} from "@/business/utils/sdk-utils";
import {getProjectApplicationConfig} from "@/api/project-application";
export default { export default {
name: "TestReviewTestCaseList", name: "TestReviewTestCaseList",
@ -293,8 +281,7 @@ export default {
{name: this.$t('test_track.review.un_pass'), id: 'UnPass'}, {name: this.$t('test_track.review.un_pass'), id: 'UnPass'},
] ]
}, },
versionFilters: [], versionFilters: []
customNum: false,
}; };
}, },
props: { props: {
@ -350,7 +337,6 @@ export default {
this.initTableHeader(); this.initTableHeader();
this.getVersionOptions(); this.getVersionOptions();
this.getProject(); this.getProject();
this.getCustomNum();
}, },
methods: { methods: {
nextPage() { nextPage() {
@ -566,17 +552,6 @@ export default {
.then(r => this.versionFilters = r.data); .then(r => this.versionFilters = r.data);
} }
}, },
getCustomNum() {
getProjectApplicationConfig('CASE_CUSTOM_NUM')
.then(result => {
let data = result.data;
if (data && data.typeValue === 'true') {
this.customNum = true;
} else {
this.customNum = false;
}
});
},
} }
}; };
</script> </script>