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" >