diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/PersonnelManagement/MyAmount/list.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/PersonnelManagement/MyAmount/list.vue index 23df2ff50..440132fb2 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/PersonnelManagement/MyAmount/list.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/PersonnelManagement/MyAmount/list.vue @@ -130,7 +130,24 @@ export default { await Promise.all([ () => {} ]) - await this.fetchList() + + const result = await this.HTTP_GET( + '/Learun/adms/PersonnelManagement/GzAmount/curr', + { + // 这里 sidx 表示排序字段,sord 表示排序方式(DESC=降序,ASC=升序) + // 代码生成器生成时默认按照主键排序,您可以修改成按创建时间的字段降序 + pagination: { rows: 10, page: this.page, sidx: '', sord: '' }, + queryJson: JSON.stringify(this.searchData) + }, + '加载数据时出错' + ) + if (result) { + this.queryData.time = result.year + '-' + (result.month.length == '1'? '0' + result.month : result.month) + await this.searchChange() + }else{ + await this.fetchList() + } + // 初始化查询条件 this.defaultQueryData = this.COPY(this.queryData) this.ready = true