mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
fix
This commit is contained in:
@@ -25,6 +25,8 @@ export class DiplomaOptionsPage implements OnInit {
|
||||
profile: string;
|
||||
task: any
|
||||
fulltask: any
|
||||
DraftIds = ""
|
||||
DraftNames= ""
|
||||
|
||||
|
||||
constructor(
|
||||
@@ -41,6 +43,13 @@ export class DiplomaOptionsPage implements OnInit {
|
||||
this.serialNumber = this.navParams.get('serialNumber');
|
||||
this.task = this.navParams.get('task');
|
||||
this.fulltask = this.navParams.get('fulltask');
|
||||
|
||||
this.DraftIds = this.navParams.get("DraftIds");
|
||||
this.DraftNames = this.navParams.get("DraftNames");
|
||||
|
||||
|
||||
console.log('this.task', this.task)
|
||||
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
@@ -200,6 +209,7 @@ export class DiplomaOptionsPage implements OnInit {
|
||||
"action": "Assinado",
|
||||
"ActionTypeId": 99999842,
|
||||
"dataFields": {
|
||||
"DraftIds": "",
|
||||
"ReviewUserComment": note,
|
||||
"InstanceIDNew": this.task.InstanceID,
|
||||
},
|
||||
@@ -229,10 +239,9 @@ export class DiplomaOptionsPage implements OnInit {
|
||||
let body = {
|
||||
"InstanceId": this.task.InstanceID,
|
||||
"FolderId": this.task.FolderID,
|
||||
"DraftIds": "163;164;77",
|
||||
"OriginalFileName": "Doc1;Doc2;Doc3"
|
||||
"DraftIds": this.DraftIds,
|
||||
"OriginalFileName": this.DraftNames
|
||||
}
|
||||
|
||||
const loader = this.toastService.loading()
|
||||
|
||||
try {
|
||||
@@ -240,7 +249,7 @@ export class DiplomaOptionsPage implements OnInit {
|
||||
|
||||
this.httpErroHandle.httpsSucessMessagge('Assinado')
|
||||
this.TaskService.loadDiplomas()
|
||||
this.goBack();
|
||||
this.popoverController.dismiss("")
|
||||
} catch (error) {
|
||||
this.httpErroHandle.httpStatusHandle(error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user