fix(transDetail): 修复清空筛选项后,再次点击筛选条件无法高亮的问题
This commit is contained in:
parent
3eae134342
commit
4ecc3ed932
|
@ -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()
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue