fix(测试跟踪): 回收站字段筛选失效

--bug=1014227 --user=陈建星 【测试跟踪】回收站字段筛选/搜索部分问题汇总 https://www.tapd.cn/55049933/s/1185593
This commit is contained in:
chenjianxing 2022-06-17 17:27:32 +08:00 committed by jianxing
parent 428ebc3503
commit 761da42df7
2 changed files with 6 additions and 5 deletions

View File

@ -420,6 +420,7 @@ export default {
},
filter(filters) {
_filter(filters, this.condition);
this.$emit('filter');
this.handleRefresh();
},
sort(column) {

View File

@ -25,7 +25,7 @@
@handleRowClick="handleEdit"
:fields.sync="fields"
:field-key="tableHeaderKey"
@refresh="initTableData"
@filter="search"
:custom-fields="testCaseTemplate.customFields"
ref="table">
@ -137,8 +137,6 @@
</template>
</ms-table-column>
<ms-table-column
v-if="versionEnable"
:label="$t('project.version.name')"
@ -680,7 +678,7 @@ export default {
return value ? value : '';
},
getCustomFieldFilter(field) {
if (field.type === 'multipleMember') {
if (field.type === 'multipleMember' || field.name === '用例状态') {
return null;
}
return Array.isArray(field.options) ?
@ -773,7 +771,7 @@ export default {
if (this.trashEnable) {
//
let versionIds = this.condition.filters.version_id;
this.condition.filters = {status: ["Trash"]};
this.condition.filters.status = ["Trash"];
if (versionIds) {
this.condition.filters.version_id = versionIds;
}
@ -799,6 +797,8 @@ export default {
}
},
search() {
//
this.page.currentPage = 1;
this.initTableData();
},
buildPagePath(path) {