From a8470a62f64f1648677b27f0206cd38cc1041d08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E8=99=B9=E7=9D=BF?= <297504645@qq.com> Date: Wed, 5 Mar 2025 15:08:19 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90nev-=E6=8A=A5=E8=A1=A8=E3=80=91?= =?UTF-8?q?=E9=A6=96=E6=AC=A1=E4=B8=8D=E5=8A=A0=E8=BD=BD=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=EF=BC=8C=E5=85=BC=E5=AE=B9AG-gride=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fe/UI.DY.AgGridReport/src/components/AgTable/index.vue | 8 ++++++++ .../src/components/reportPage/index.vue | 10 +++++++++- .../src/views/report/interfaceError.vue | 1 + .../src/views/report/putInDetails.vue | 1 + .../src/views/report/putOutDetails.vue | 1 + 5 files changed, 20 insertions(+), 1 deletion(-) diff --git a/fe/UI.DY.AgGridReport/src/components/AgTable/index.vue b/fe/UI.DY.AgGridReport/src/components/AgTable/index.vue index 202480401..9a8e231c9 100644 --- a/fe/UI.DY.AgGridReport/src/components/AgTable/index.vue +++ b/fe/UI.DY.AgGridReport/src/components/AgTable/index.vue @@ -52,6 +52,11 @@ export default { type: Array, default: null }, + // 第一次不加载列表 + firstNotLoad:{ + type: Boolean, + default: false + }, }, data () { return { @@ -161,6 +166,9 @@ export default { onGridReady(params) { this.gridApi = params.api; this.gridColumnApi = params.columnApi; + if(this.firstNotLoad){ + this.updateTableData([]) + } }, }, }; diff --git a/fe/UI.DY.AgGridReport/src/components/reportPage/index.vue b/fe/UI.DY.AgGridReport/src/components/reportPage/index.vue index 085162d16..01c950400 100644 --- a/fe/UI.DY.AgGridReport/src/components/reportPage/index.vue +++ b/fe/UI.DY.AgGridReport/src/components/reportPage/index.vue @@ -16,6 +16,7 @@ :columnDefs="columnList" :BottomFixedItem="BottomFixedItem" :averageFixedItem="averageFixedItem" + :firstNotLoad="firstNotLoad" > @@ -83,6 +84,11 @@ export default { type: Boolean, default: false }, + // 第一次不加载列表 + firstNotLoad:{ + type: Boolean, + default: false + }, }, data () { return { @@ -92,7 +98,9 @@ export default { }; }, mounted(){ - this.getList() + if(!this.firstNotLoad){ + this.getList() + } }, methods: { // 字段设置点击事件 diff --git a/fe/UI.DY.AgGridReport/src/views/report/interfaceError.vue b/fe/UI.DY.AgGridReport/src/views/report/interfaceError.vue index 20f07590d..9efbd2aa4 100644 --- a/fe/UI.DY.AgGridReport/src/views/report/interfaceError.vue +++ b/fe/UI.DY.AgGridReport/src/views/report/interfaceError.vue @@ -6,6 +6,7 @@ :BottomFixedItem="BottomFixedItem" :reportName="'接口错误报表'" :procName="'Proc_接口错误表'" + :firstNotLoad="true" > diff --git a/fe/UI.DY.AgGridReport/src/views/report/putInDetails.vue b/fe/UI.DY.AgGridReport/src/views/report/putInDetails.vue index 3963fff27..459f1e0aa 100644 --- a/fe/UI.DY.AgGridReport/src/views/report/putInDetails.vue +++ b/fe/UI.DY.AgGridReport/src/views/report/putInDetails.vue @@ -6,6 +6,7 @@ :BottomFixedItem="BottomFixedItem" :reportName="'入库明细报表'" :procName="'Proc_入库明细报表'" + :firstNotLoad="true" > diff --git a/fe/UI.DY.AgGridReport/src/views/report/putOutDetails.vue b/fe/UI.DY.AgGridReport/src/views/report/putOutDetails.vue index c160c4751..144240a17 100644 --- a/fe/UI.DY.AgGridReport/src/views/report/putOutDetails.vue +++ b/fe/UI.DY.AgGridReport/src/views/report/putOutDetails.vue @@ -6,6 +6,7 @@ :BottomFixedItem="BottomFixedItem" :reportName="'出库明细报表'" :procName="'Proc_出库明细报表'" + :firstNotLoad="true" >