fix(transDetail): 修复清空筛选项后,再次点击筛选条件无法高亮的问题

This commit is contained in:
ywk 2025-04-09 16:31:29 +08:00
parent 3eae134342
commit 4ecc3ed932
1 changed files with 15 additions and 6 deletions

View File

@ -57,8 +57,11 @@
{{'账户类型'}}
</view>
<view class="choiceBox">
<view class="flex_btn" @click="clickAccountType(item)" v-for="(item,index) in pkAccountList"
:key="index" :class="queryParams.pkAccount==item.pkId?'selectbtn':''">
<view class="flex_btn"
@click="clickAccountType(item)"
v-for="(item,index) in pkAccountList"
:key="index"
:class="queryParams.pkAccount==item.pkId?'selectbtn':''">
{{item.accountName}}
</view>
@ -144,7 +147,9 @@
this.queryParams.tradeType = item.value
},
clickAccountType(item) {
this.queryParams.pkAccount = item.pkId
// this.queryParams.pkAccount = item.pkId
console.log(item, '....item')
this.$set(this.queryParams, 'pkAccount', item.pkId)
},
getOthers() {
bal.getTradeTypeList().then((res) => {
@ -161,9 +166,13 @@
},
clearAll() {
this.sxShow = false
this.queryParams = {
}
Object.assign(this.queryParams, {
pageNum: 1,
pageSize: 50,
tradeType: "", //
pkAccount: "", //
startDate: "",
})
this.getSearch()
},
}