From 2869b8c354d8c2a12a06e43f81fa09f1a4ff4221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E8=99=B9=E7=9D=BF?= <297504645@qq.com> Date: Thu, 17 Aug 2023 13:14:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E6=AE=B5=E8=AE=BE=E7=BD=AE=E5=90=8E?= =?UTF-8?q?=E6=98=8E=E7=BB=86=E6=B5=AE=E5=8A=A8=E5=88=97=E4=B8=8B=E6=B2=89?= =?UTF-8?q?bug=EF=BC=8C=E9=87=8D=E6=96=B0=E6=B8=B2=E6=9F=93=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E5=B0=81=E8=A3=85=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/commonTabel-drawer/index.vue | 10 ++++++++++ .../src/components/tablePagination/index.vue | 6 ++++++ PC/InterFace.Dash/src/components/umyTable/index.vue | 6 ++++++ .../src/components/commonTabel-drawer/index.vue | 10 ++++++++++ .../src/components/tablePagination/index.vue | 6 ++++++ .../src/components/umyTable/index.vue | 6 ++++++ .../src/components/commonTabel-drawer/index.vue | 10 ++++++++++ .../src/components/tablePagination/index.vue | 6 ++++++ .../src/components/umyTable/index.vue | 6 ++++++ 9 files changed, 66 insertions(+) diff --git a/PC/InterFace.Dash/src/components/commonTabel-drawer/index.vue b/PC/InterFace.Dash/src/components/commonTabel-drawer/index.vue index 48d12f3..8412328 100644 --- a/PC/InterFace.Dash/src/components/commonTabel-drawer/index.vue +++ b/PC/InterFace.Dash/src/components/commonTabel-drawer/index.vue @@ -61,6 +61,7 @@ { + if(this.$refs.tablePaginationForMX_Ref && this.$refs.tablePaginationForMX_Ref.doFreshTableLayout){ + this.$refs.tablePaginationForMX_Ref.doFreshTableLayout() + } + }) + }, // tabs 切换页 handleClick (val) { this.$emit("currenTabsChange", val);//父级获取当前的tab内容 @@ -605,6 +614,7 @@ export default { } } }) + this.doFreshTableLayout() }, // 递归 子级层级 recursion(val){ diff --git a/PC/InterFace.Dash/src/components/tablePagination/index.vue b/PC/InterFace.Dash/src/components/tablePagination/index.vue index 88813f5..da65c71 100644 --- a/PC/InterFace.Dash/src/components/tablePagination/index.vue +++ b/PC/InterFace.Dash/src/components/tablePagination/index.vue @@ -290,6 +290,12 @@ export default { }) }, methods: { + // 重新渲染表格 + doFreshTableLayout(){ + if(this.$refs.tablePaginationTableRef && this.$refs.tablePaginationTableRef.doFreshLayout){ + this.$refs.tablePaginationTableRef.doFreshLayout() + } + }, rowDrop(data,type) { this.$emit('rowDrop',data,type) this.$nextTick(()=>{ diff --git a/PC/InterFace.Dash/src/components/umyTable/index.vue b/PC/InterFace.Dash/src/components/umyTable/index.vue index c24bbd4..5d68eef 100644 --- a/PC/InterFace.Dash/src/components/umyTable/index.vue +++ b/PC/InterFace.Dash/src/components/umyTable/index.vue @@ -388,6 +388,12 @@ export default { this.setTableHeightHandle() }, methods: { + // 重新渲染表格 + doFreshLayout(){ + if (this.$refs.multipleTable && this.$refs.multipleTable.doLayout) { + this.$refs.multipleTable.doLayout() + } + }, // 设置表格高度 setTableHeightHandle(height){ let _height = height || this.setUTableHeight diff --git a/PC/UI.WinIn.FasterZ.Job/src/components/commonTabel-drawer/index.vue b/PC/UI.WinIn.FasterZ.Job/src/components/commonTabel-drawer/index.vue index 48d12f3..8412328 100644 --- a/PC/UI.WinIn.FasterZ.Job/src/components/commonTabel-drawer/index.vue +++ b/PC/UI.WinIn.FasterZ.Job/src/components/commonTabel-drawer/index.vue @@ -61,6 +61,7 @@ { + if(this.$refs.tablePaginationForMX_Ref && this.$refs.tablePaginationForMX_Ref.doFreshTableLayout){ + this.$refs.tablePaginationForMX_Ref.doFreshTableLayout() + } + }) + }, // tabs 切换页 handleClick (val) { this.$emit("currenTabsChange", val);//父级获取当前的tab内容 @@ -605,6 +614,7 @@ export default { } } }) + this.doFreshTableLayout() }, // 递归 子级层级 recursion(val){ diff --git a/PC/UI.WinIn.FasterZ.Job/src/components/tablePagination/index.vue b/PC/UI.WinIn.FasterZ.Job/src/components/tablePagination/index.vue index 88813f5..da65c71 100644 --- a/PC/UI.WinIn.FasterZ.Job/src/components/tablePagination/index.vue +++ b/PC/UI.WinIn.FasterZ.Job/src/components/tablePagination/index.vue @@ -290,6 +290,12 @@ export default { }) }, methods: { + // 重新渲染表格 + doFreshTableLayout(){ + if(this.$refs.tablePaginationTableRef && this.$refs.tablePaginationTableRef.doFreshLayout){ + this.$refs.tablePaginationTableRef.doFreshLayout() + } + }, rowDrop(data,type) { this.$emit('rowDrop',data,type) this.$nextTick(()=>{ diff --git a/PC/UI.WinIn.FasterZ.Job/src/components/umyTable/index.vue b/PC/UI.WinIn.FasterZ.Job/src/components/umyTable/index.vue index c24bbd4..5d68eef 100644 --- a/PC/UI.WinIn.FasterZ.Job/src/components/umyTable/index.vue +++ b/PC/UI.WinIn.FasterZ.Job/src/components/umyTable/index.vue @@ -388,6 +388,12 @@ export default { this.setTableHeightHandle() }, methods: { + // 重新渲染表格 + doFreshLayout(){ + if (this.$refs.multipleTable && this.$refs.multipleTable.doLayout) { + this.$refs.multipleTable.doLayout() + } + }, // 设置表格高度 setTableHeightHandle(height){ let _height = height || this.setUTableHeight diff --git a/PC/UI.WinIn.FasterZ.Store/src/components/commonTabel-drawer/index.vue b/PC/UI.WinIn.FasterZ.Store/src/components/commonTabel-drawer/index.vue index 48d12f3..8412328 100644 --- a/PC/UI.WinIn.FasterZ.Store/src/components/commonTabel-drawer/index.vue +++ b/PC/UI.WinIn.FasterZ.Store/src/components/commonTabel-drawer/index.vue @@ -61,6 +61,7 @@ { + if(this.$refs.tablePaginationForMX_Ref && this.$refs.tablePaginationForMX_Ref.doFreshTableLayout){ + this.$refs.tablePaginationForMX_Ref.doFreshTableLayout() + } + }) + }, // tabs 切换页 handleClick (val) { this.$emit("currenTabsChange", val);//父级获取当前的tab内容 @@ -605,6 +614,7 @@ export default { } } }) + this.doFreshTableLayout() }, // 递归 子级层级 recursion(val){ diff --git a/PC/UI.WinIn.FasterZ.Store/src/components/tablePagination/index.vue b/PC/UI.WinIn.FasterZ.Store/src/components/tablePagination/index.vue index 88813f5..da65c71 100644 --- a/PC/UI.WinIn.FasterZ.Store/src/components/tablePagination/index.vue +++ b/PC/UI.WinIn.FasterZ.Store/src/components/tablePagination/index.vue @@ -290,6 +290,12 @@ export default { }) }, methods: { + // 重新渲染表格 + doFreshTableLayout(){ + if(this.$refs.tablePaginationTableRef && this.$refs.tablePaginationTableRef.doFreshLayout){ + this.$refs.tablePaginationTableRef.doFreshLayout() + } + }, rowDrop(data,type) { this.$emit('rowDrop',data,type) this.$nextTick(()=>{ diff --git a/PC/UI.WinIn.FasterZ.Store/src/components/umyTable/index.vue b/PC/UI.WinIn.FasterZ.Store/src/components/umyTable/index.vue index c24bbd4..5d68eef 100644 --- a/PC/UI.WinIn.FasterZ.Store/src/components/umyTable/index.vue +++ b/PC/UI.WinIn.FasterZ.Store/src/components/umyTable/index.vue @@ -388,6 +388,12 @@ export default { this.setTableHeightHandle() }, methods: { + // 重新渲染表格 + doFreshLayout(){ + if (this.$refs.multipleTable && this.$refs.multipleTable.doLayout) { + this.$refs.multipleTable.doLayout() + } + }, // 设置表格高度 setTableHeightHandle(height){ let _height = height || this.setUTableHeight