diff --git a/pages/enterprise.vue b/pages/enterprise.vue
index 05a9a6e..a9257fa 100644
--- a/pages/enterprise.vue
+++ b/pages/enterprise.vue
@@ -4,9 +4,9 @@
1){
+ this.queryParams.pageNo = 1 // 重置页码
+ this.queryParams.enterprisesName = e.detail // 更新搜索关键字
+ this.queryEnterprise()
+ }
+
},
queryEnterprise() {
- this.queryParams.pageNo = 1
this.load = 'loadmore'
this.list = []
this.queryParams.tagList = [
diff --git a/sub/owner/policy.vue b/sub/owner/policy.vue
index c103536..215a2cf 100644
--- a/sub/owner/policy.vue
+++ b/sub/owner/policy.vue
@@ -6,9 +6,9 @@
@@ -131,14 +131,20 @@ export default {
finally {
this.loadMoreStatus = this.policyList.length >= this.total? 'noMore' :'more'
// 无论成功失败都关闭刷新状态
- this.isRefreshing = false
+ // 确保在数据加载完成后关闭刷新状态
+ setTimeout(() => {
+ this.isRefreshing = false
+ }, 300) // 添加短暂延时,确保动画效果完整
}
},
// 搜索事件处理
handleSearch(e) {
- this.pageNum = 1 // 重置页码
- this.searchValue = e.detail // 更新搜索关键字
- this.getPolicyList()
+ if(e.detail && e.detail.length > 1){
+ this.pageNum = 1 // 重置页码
+ this.searchValue = e.detail // 更新搜索关键字
+ this.getPolicyList()
+ }
+
},
// 清除搜索事件处理
handleClear() {