From 839a6f6d5280032eea01d380bd8803c9f334f51a Mon Sep 17 00:00:00 2001 From: lb Date: Tue, 14 Feb 2023 15:59:48 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E8=A1=A8=E6=A0=BC=E7=9A=84doLayout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BaseListTable.vue | 13 +++++++------ src/components/DialogWithMenu.vue | 23 +++++++++++++++++------ 2 files changed, 24 insertions(+), 12 deletions(-) diff --git a/src/components/BaseListTable.vue b/src/components/BaseListTable.vue index 34ff13e..8dff5f8 100644 --- a/src/components/BaseListTable.vue +++ b/src/components/BaseListTable.vue @@ -100,6 +100,10 @@ export default { type: Array, default: () => [], }, + refreshLayoutKey: { + type: Number, + default: 0, + }, }, inject: ["urls"], data() { @@ -108,12 +112,9 @@ export default { }; }, watch: { - // 'props.tableData': { - // handler: () => { - // this.$refs['base-list-table'].doLayout(); - // }, - // immediate: true, - // }, + refreshLayoutKey(val) { + this.$refs["base-list-table"].doLayout(); + }, }, methods: { handleSubEmitData(payload) { diff --git a/src/components/DialogWithMenu.vue b/src/components/DialogWithMenu.vue index cee97e5..6233c58 100644 --- a/src/components/DialogWithMenu.vue +++ b/src/components/DialogWithMenu.vue @@ -114,11 +114,22 @@ -
- +
+
-
附件
+
附件
@@ -499,10 +510,10 @@ export default { if (res.code === 0 && res.data?.list) { // 有数据 this.subList = res.data.list; - this.attrTotal = res.data.total + this.attrTotal = res.data.total; } else { this.subList.splice(0); - this.attrTotal = 0 + this.attrTotal = 0; } }); },