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