@farris/bef
Advanced tools
Comparing version 0.0.11-201903181900 to 0.0.11-201903192035
@@ -724,10 +724,17 @@ import { InjectionToken, Injectable, Injector } from '@angular/core'; | ||
updateDataAndVariableChanges() { | ||
// @todo:考虑有没有数据为空但要提交变量变更的情况,比如一个查询页面。 | ||
const entities = this.entityCollection.toArray(); | ||
if (entities.length === 0) { | ||
return; | ||
} | ||
const id = entities[0][this.primaryKey]; | ||
const filterConditions = []; | ||
const sortConditions = []; | ||
const entityFilter = { | ||
FilterConditions: filterConditions, | ||
SortConditions: sortConditions, | ||
IsUsePagination: true, | ||
Pagination: { | ||
PageIndex: 1, | ||
PageSize: 1, | ||
PageCount: 0, | ||
TotalCount: 0 | ||
} | ||
}; | ||
const requestInfo = this.restService.buildRequestInfo(); | ||
return this.restService.extendRetrieve(id, requestInfo); | ||
return this.restService.extendQuery(entityFilter, requestInfo); | ||
} | ||
@@ -734,0 +741,0 @@ /** |
{ | ||
"name": "@farris/bef", | ||
"version": "0.0.11-201903181900", | ||
"version": "0.0.11-201903192035", | ||
"description": "Farris Bef", | ||
@@ -5,0 +5,0 @@ "main": "./bundles/index.umd.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
614893
6495