zjk
2026-06-01 c1102589d9f1c121d776f6798ff9d9a143114a8a
fix(BatchSendModal): 修复弹窗关闭后状态残留问题

抽离独立的弹窗状态重置函数,在弹窗关闭时调用以清理残留的搜索、选中和分页状态。
1个文件已修改
15 ■■■■■ 已修改文件
src/views/userContent/active/coupon/BatchSendModal.vue 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/userContent/active/coupon/BatchSendModal.vue
@@ -78,6 +78,18 @@
  getList()
}
function resetModalState() {
  searchModel.value = {
    account: '',
    whitelistSource: null,
    userType: null,
    status: null,
  }
  checkedRowKeys.value = []
  currentPage.value = 1
  pageSize.value = 10
}
const isNormalStatus = (status: unknown) => status === 1 || status === true
const columns: DataTableColumns<any> = [
@@ -137,6 +149,9 @@
    checkedRowKeys.value = []
    getList()
  }
  else {
    resetModalState()
  }
})
function handlePageChange(page: number, size: number) {