improve edition of draft

This commit is contained in:
Eudes Inácio
2023-07-10 12:38:41 +01:00
parent 9676bab7eb
commit c69ea92c91
11 changed files with 124 additions and 33 deletions
@@ -127,6 +127,9 @@ export class DespachoPage implements OnInit {
"Sender": "",
"SourceDocId": "",
"content": resd.data.content,
"path": resd.data.path,
"ownerId": resd.data.ownerId,
"status": resd.data.status,
}
this.mergedArray.push(object)
console.log('List of draff', resd)
@@ -155,7 +158,7 @@ export class DespachoPage implements OnInit {
"DeadlineType": res.workflowInstanceDataFields.DeadlineType,
"activityInstanceName": res.activityInstanceName,
"Status": res.workflowInstanceDataFields.Status,
"Deadline": res.deadline
"Deadline": res.deadline,
}
// this.updateProcessOnDB(res);
@@ -165,7 +168,7 @@ export class DespachoPage implements OnInit {
const mergedArray1 = [];
const mergedArray2 = [];
// Merge array1 with tag
this.fulltask.Documents.forEach(element => {
@@ -179,11 +182,14 @@ export class DespachoPage implements OnInit {
"Sender": element.Sender,
"SourceDocId": element.SourceDocId,
"content": "",
"path": "",
"ownerId": "",
"status": "",
}
this.mergedArray.push(docObject);
});
console.log('All',this.mergedArray)
console.log('All', this.mergedArray)
let thedate = new Date(this.task.CreateDate);
this.customDate = this.days[thedate.getDay()] + ", " + thedate.getDate() + " de " + (this.months[thedate.getMonth()]);
@@ -235,7 +241,7 @@ export class DespachoPage implements OnInit {
async viewDocument(docId: string, Document, content) {
if(Document.content == "") {
if (Document.content == "") {
const modal = await this.modalController.create({
component: ViewDocumentPage,
componentProps: {
@@ -266,7 +272,7 @@ export class DespachoPage implements OnInit {
await modal.present();
}
}
+1 -1
View File
@@ -119,7 +119,7 @@ export class LoginPage implements OnInit {
const loader = this.toastService.loading()
let attempt = await this.authService.login(this.userattempt, {saveSession: false})
await this.authService.loginContenteProduction(this.userattempt, {saveSession: false})
await this.authService.loginContenteProduction(this.userattempt, {saveSession: true})
loader.remove()