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. 10
      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,
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([])
}
},
},
};

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

@ -16,6 +16,7 @@
:columnDefs="columnList"
:BottomFixedItem="BottomFixedItem"
:averageFixedItem="averageFixedItem"
:firstNotLoad="firstNotLoad"
></AgTable>
</div>
</template>
@ -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: {
//

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

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

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

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

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

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

Loading…
Cancel
Save