This commit is contained in:
aihe 2024-12-10 14:37:17 +08:00
parent 3acb9c3878
commit 0132881ab9

View File

@ -74,12 +74,15 @@
return list
},
filDataSearchParam() {
let filedName = this.searchFiledName
return {
let filedName = this.searchFiledName
const obj = {
...this.searchParam,
searchValue: this.keyword, // 默认
[filedName]: this.keyword,
}
}
// 每次显示都重新刷新数据
obj._datetimeval = this._showDatetimeval
return obj
},
filDatacheckedList() {
let list = (this.getListFun ? this.resObject.checkedList : this.checkedList)
@ -224,7 +227,8 @@
data() {
return {
componentId: uni.$u.guid(20),
show: false,
show: false,
_showDatetimeval: new Date().valueOf(),
modeEnum: Object.assign({}, modeEnum),
keyword: '',
// searchFiledName: this.transKeyVal?.['searchKey'] || '_searchValue',
@ -256,7 +260,11 @@
return
}
// this.$emit('update:show', !this.show)
this.show = !this.show
this.show = !this.show
if(this.show) {
// 更新时间戳,列表数自动刷新
this._showDatetimeval = new Date().valueOf()
}
},
handleDataItemChange(val, text, checkedList) {
this.$emit('onChange', val, text, checkedList)