Record.Values
This commit is contained in:
@@ -55,7 +55,7 @@ export class LayerDetailComponent implements OnInit {
|
||||
this.form.disable();
|
||||
this.document.created = `${this.datePipe.transform(this.document.createdAt?.toDate(), 'short')}, ${this.document.createdBy?.userName}`;
|
||||
this.dataSource.sort.sort({ id: 'code', start: 'desc' } as MatSortable);
|
||||
this.valueSum = this.document.records.map(t => t.value || 0).reduce((acc, value) => acc + value, 0);
|
||||
this.valueSum = this.document.records.map(t => t.value1 || 0).reduce((acc, value) => acc + value, 0);
|
||||
}
|
||||
private async load(): Promise<Layer> {
|
||||
return await Layer.getById(this.route$.snapshot.paramMap.get('id') || "", this.http$);
|
||||
|
||||
@@ -74,6 +74,7 @@ export class LayersListComponent implements OnInit {
|
||||
this.dataSource.data = await Layer.getList(this._http, this.start, this.limit, this.codes);
|
||||
}
|
||||
}
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
async addCode(event: any) {
|
||||
const value = (event.target.value || '').trim();
|
||||
if (value) {
|
||||
|
||||
Reference in New Issue
Block a user