import debounce from 'lodash.debounce'
export default {
// ...
methods:{
// 分页接口查询数据
fetchData: debounce(function () { // 当前行【主要代码】主要注意点 - debounce 写法
if (!this.dialogVisible) return
this.loading = true
const { time, fzr_jh, ...params } = this.searchForm
queryMonPoliceCheckResultList({
...params,
...time,
fzr_jh: this.$common.filterListValue('name', 'fzr_jh', this.zqqyOptions, fzr_jh, '')
})
.then((res) => {
this.$common.CheckCode(
res,
null,
() => {
this.tableData = res.data?.list || []
},
() => {
this.loading = false
}
)
})
.finally(() => {
this.loading = false
})
}, 300),
// ...
}
}
03-23