fix(测试计划): 切换测试计划时重置高级搜索
--bug=1011542 --user=李玉号 【测试计划】-上一个测试计划的高级搜索配置不应该记录到下一个测试计划的默认显示搜索结果中 https://www.tapd.cn/55049933/s/1124618
This commit is contained in:
parent
a78f8591f8
commit
76b907c804
|
@ -24,7 +24,7 @@
|
||||||
<span>
|
<span>
|
||||||
<slot name="searchBarBefore"></slot>
|
<slot name="searchBarBefore"></slot>
|
||||||
<ms-table-search-bar :condition.sync="condition" @change="search" class="search-bar" :tip="tip" v-if="haveSearch"/>
|
<ms-table-search-bar :condition.sync="condition" @change="search" class="search-bar" :tip="tip" v-if="haveSearch"/>
|
||||||
<ms-table-adv-search-bar :condition.sync="condition" @search="search" v-if="isCombine"/>
|
<ms-table-adv-search-bar :condition.sync="condition" @search="search" v-if="isCombine" ref="searchBar"/>
|
||||||
</span>
|
</span>
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
|
@ -147,6 +147,11 @@
|
||||||
},
|
},
|
||||||
changeVersion(type){
|
changeVersion(type){
|
||||||
this.$emit('changeVersion',type);
|
this.$emit('changeVersion',type);
|
||||||
|
},
|
||||||
|
resetSearchData() {
|
||||||
|
if (this.$refs.searchBar) {
|
||||||
|
this.$refs.searchBar.reset();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="card-container">
|
<div class="card-container">
|
||||||
<ms-table-header :condition.sync="condition" @search="initTableData"
|
<ms-table-header :condition.sync="condition" @search="initTableData" ref="tableHeader"
|
||||||
:show-create="false" :tip="$t('commons.search_by_id_name_tag')">
|
:show-create="false" :tip="$t('commons.search_by_id_name_tag')">
|
||||||
|
|
||||||
<!-- 不显示 “全部用例” 标题,使标题为空 -->
|
<!-- 不显示 “全部用例” 标题,使标题为空 -->
|
||||||
|
@ -593,6 +593,9 @@ export default {
|
||||||
this.refresh();
|
this.refresh();
|
||||||
},
|
},
|
||||||
refreshTableAndPlan() {
|
refreshTableAndPlan() {
|
||||||
|
if (this.$refs.tableHeader) {
|
||||||
|
this.$refs.tableHeader.resetSearchData();
|
||||||
|
}
|
||||||
this.getTestPlanById();
|
this.getTestPlanById();
|
||||||
this.initTableData();
|
this.initTableData();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue