From 7e9c0112db595d9d0c2a0038923fd94f960da43b Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期一, 28 十月 2024 16:13:37 +0800
Subject: [PATCH] 修改
---
web/packages/components/zt-table-wraper/src/zt-table-wraper.vue | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/web/packages/components/zt-table-wraper/src/zt-table-wraper.vue b/web/packages/components/zt-table-wraper/src/zt-table-wraper.vue
index 28a7964..b50fe38 100644
--- a/web/packages/components/zt-table-wraper/src/zt-table-wraper.vue
+++ b/web/packages/components/zt-table-wraper/src/zt-table-wraper.vue
@@ -31,6 +31,10 @@
export default {
name: 'ZtTableWraper',
props: {
+ defaultNotQuery:{
+ type: Boolean,
+ default: false
+ },
queryUrl: String, // 鏁版嵁鍒楄〃鎺ュ彛锛孉PI鍦板潃
deleteUrl: String, // 鍒犻櫎鎺ュ彛锛孉PI鍦板潃,
exportUrl: String, // 瀵煎嚭鎺ュ彛锛孉PI鍦板潃
@@ -91,7 +95,7 @@
}
}
- if (!this.lazy) {
+ if (!this.lazy && !this.defaultNotQuery) {
this._query()
}
},
@@ -144,6 +148,7 @@
if (res.success) {
await this.$tip.success()
this._query()
+ this.$emit('refreshMethod')
}
}
},
@@ -220,7 +225,7 @@
this.editLimit = ''
this.editPage = ''
}
- console.log(this.dataList,'this.dataList')
+
this.$emit('dataLoaded', this.dataList)
this.$emit('fatherMethod')
}
--
Gitblit v1.9.1