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"
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">
<!-- <ms-table-column
<ms-table-column
v-if="item.id == 'num'"
prop="customNum"
sortable="custom"
:fields-width="fieldsWidth"
:label="$t('commons.id')"
min-width="120px"/>-->
min-width="120px"/>
<ms-table-column
prop="name"
:field="item"
sortable
sortable="custom"
:fields-width="fieldsWidth"
:label="$t('commons.name')"
min-width="120px"/>
@ -84,7 +73,7 @@
:field="item"
:fields-width="fieldsWidth"
:filters="priorityFilters"
sortable
sortable="custom"
min-width="120px"
:label="$t('test_track.case.priority')">
<template v-slot:default="scope">
@ -204,7 +193,6 @@ import {
} from "@/api/test-review";
import {useStore} from "@/store";
import {getVersionFilters} from "@/business/utils/sdk-utils";
import {getProjectApplicationConfig} from "@/api/project-application";
export default {
name: "TestReviewTestCaseList",
@ -293,8 +281,7 @@ export default {
{name: this.$t('test_track.review.un_pass'), id: 'UnPass'},
]
},
versionFilters: [],
customNum: false,
versionFilters: []
};
},
props: {
@ -350,7 +337,6 @@ export default {
this.initTableHeader();
this.getVersionOptions();
this.getProject();
this.getCustomNum();
},
methods: {
nextPage() {
@ -566,17 +552,6 @@ export default {
.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>