fix(测试跟踪): 回收站字段筛选失效
--bug=1014227 --user=陈建星 【测试跟踪】回收站字段筛选/搜索部分问题汇总 https://www.tapd.cn/55049933/s/1185593
This commit is contained in:
parent
428ebc3503
commit
761da42df7
|
@ -420,6 +420,7 @@ export default {
|
|||
},
|
||||
filter(filters) {
|
||||
_filter(filters, this.condition);
|
||||
this.$emit('filter');
|
||||
this.handleRefresh();
|
||||
},
|
||||
sort(column) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue