add parameter dates
This commit is contained in:
parent
601846594c
commit
afd252f83b
3 changed files with 7413 additions and 0 deletions
7383
frontend/package-lock.json
generated
Normal file
7383
frontend/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -7,6 +7,7 @@ import {
|
|||
MessagesService,
|
||||
NotNull,
|
||||
ObjectRef,
|
||||
DateTimePicker,
|
||||
TextArea
|
||||
} from "@webbpm/base-package";
|
||||
import {ExportDataRpcService} from "../generated/rpc/ExportDataRpcService";
|
||||
|
|
@ -31,6 +32,12 @@ export class ExportDataBtn extends AbstractButton {
|
|||
@NotNull()
|
||||
public ervuIdsField: TextArea;
|
||||
|
||||
@ObjectRef()
|
||||
public startDate: DateTimePicker;
|
||||
|
||||
@ObjectRef()
|
||||
public endDate: DateTimePicker;
|
||||
|
||||
private rpc: ExportDataRpcService;
|
||||
private messagesService: MessagesService;
|
||||
|
||||
|
|
@ -55,6 +62,8 @@ export class ExportDataBtn extends AbstractButton {
|
|||
let exportDataRequest = new ExportDataRequest();
|
||||
exportDataRequest.ids = ids;
|
||||
exportDataRequest.type = type;
|
||||
exportDataRequest.startDate = this.startDate ? this.startDate.getDateValue() : null;
|
||||
exportDataRequest.endDate = this.endDate ? this.endDate.getDateValue() : null;
|
||||
return this.rpc.exportData(exportDataRequest)
|
||||
.then((data: FileModel) => {
|
||||
FileUtils.downloadFile(data.fileName, data.fileContent);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue