Browse Source

【nev-报表】首次不加载数据,兼容AG-gride处理

dev_pc_nev
安虹睿 2 months ago
parent
commit
a8470a62f6
  1. 8
      fe/UI.DY.AgGridReport/src/components/AgTable/index.vue
  2. 8
      fe/UI.DY.AgGridReport/src/components/reportPage/index.vue
  3. 1
      fe/UI.DY.AgGridReport/src/views/report/interfaceError.vue
  4. 1
      fe/UI.DY.AgGridReport/src/views/report/putInDetails.vue
  5. 1
      fe/UI.DY.AgGridReport/src/views/report/putOutDetails.vue

8
fe/UI.DY.AgGridReport/src/components/AgTable/index.vue

@ -52,6 +52,11 @@ export default {
type: Array, type: Array,
default: null default: null
}, },
//
firstNotLoad:{
type: Boolean,
default: false
},
}, },
data () { data () {
return { return {
@ -161,6 +166,9 @@ export default {
onGridReady(params) { onGridReady(params) {
this.gridApi = params.api; this.gridApi = params.api;
this.gridColumnApi = params.columnApi; this.gridColumnApi = params.columnApi;
if(this.firstNotLoad){
this.updateTableData([])
}
}, },
}, },
}; };

8
fe/UI.DY.AgGridReport/src/components/reportPage/index.vue

@ -16,6 +16,7 @@
:columnDefs="columnList" :columnDefs="columnList"
:BottomFixedItem="BottomFixedItem" :BottomFixedItem="BottomFixedItem"
:averageFixedItem="averageFixedItem" :averageFixedItem="averageFixedItem"
:firstNotLoad="firstNotLoad"
></AgTable> ></AgTable>
</div> </div>
</template> </template>
@ -83,6 +84,11 @@ export default {
type: Boolean, type: Boolean,
default: false default: false
}, },
//
firstNotLoad:{
type: Boolean,
default: false
},
}, },
data () { data () {
return { return {
@ -92,7 +98,9 @@ export default {
}; };
}, },
mounted(){ mounted(){
if(!this.firstNotLoad){
this.getList() this.getList()
}
}, },
methods: { methods: {
// //

1
fe/UI.DY.AgGridReport/src/views/report/interfaceError.vue

@ -6,6 +6,7 @@
:BottomFixedItem="BottomFixedItem" :BottomFixedItem="BottomFixedItem"
:reportName="'接口错误报表'" :reportName="'接口错误报表'"
:procName="'Proc_接口错误表'" :procName="'Proc_接口错误表'"
:firstNotLoad="true"
></reportPage> ></reportPage>
</template> </template>

1
fe/UI.DY.AgGridReport/src/views/report/putInDetails.vue

@ -6,6 +6,7 @@
:BottomFixedItem="BottomFixedItem" :BottomFixedItem="BottomFixedItem"
:reportName="'入库明细报表'" :reportName="'入库明细报表'"
:procName="'Proc_入库明细报表'" :procName="'Proc_入库明细报表'"
:firstNotLoad="true"
></reportPage> ></reportPage>
</template> </template>

1
fe/UI.DY.AgGridReport/src/views/report/putOutDetails.vue

@ -6,6 +6,7 @@
:BottomFixedItem="BottomFixedItem" :BottomFixedItem="BottomFixedItem"
:reportName="'出库明细报表'" :reportName="'出库明细报表'"
:procName="'Proc_出库明细报表'" :procName="'Proc_出库明细报表'"
:firstNotLoad="true"
></reportPage> ></reportPage>
</template> </template>

Loading…
Cancel
Save