clear count

This commit is contained in:
Peter Maquiran
2023-01-30 16:27:33 +01:00
parent 261478a204
commit 49142391e9
8 changed files with 15 additions and 24 deletions
@@ -99,7 +99,7 @@
<div *ngIf="p.userPermission([p.permissionList.Gabinete.md_tasks])" class="option-desc"> <div>Outras opções</div> </div>
<button (click)="openExpedientActionsModal('0',fulltask)" class="btn-cancel" shape="round" >Efetuar Despacho</button>
<button (click)="openExpedientActionsModal('1',fulltask)" class="btn-cancel" shape="round" >Solicitar Parecer</button>
<button (click)="openExpedientActionsModal('2',fulltask)" class="btn-cancel" shape="round" >Pedido de Deferimento</button>
<button *ngIf="!p.userPermission([p.permissionList.Gabinete.pr_tasks])" (click)="openExpedientActionsModal('2',fulltask)" class="btn-cancel" shape="round" >Pedido de Deferimento</button>
<button *ngIf="p.userPermission([p.permissionList.Agenda.access])" (click)="openBookMeetingModal(task)" class="btn-cancel" shape="round" >Marcar Reunião</button>
<button *ngIf="p.userPermission([p.permissionList.Gabinete.md_tasks])" (click)="attachDocument()" class="btn-cancel" shape="round" >Anexar Documentos</button>
<button (click)="distartExpedientModal('descartar')" class="btn-cancel" shape="round" >Descartar</button>
@@ -637,7 +637,6 @@ export class GabineteDigitalPage implements OnInit {
expedientes = expedientes.map((element) => this.expedienteTaskPipe.transform(element));
this.expedientegbstore.count = expedientes.length;
this.expedientegbstore.reset(expedientes);
this.updateAllProcess()
@@ -58,6 +58,9 @@ export class EventListPage implements OnInit {
ngOnChanges() {
this.LoadToApproveEvents();
setTimeout(() => {
this.LoadToApproveEvents();
}, 3000)
}
segmentChanged(ev: any) {
@@ -16,7 +16,7 @@
<button (click)="openExpedientActionsModal('0',fulltask)" class="btn-cancel" shape="round" >Efetuar Despacho</button>
<!-- <button (click)="close()" full class="btn-cancel" shape="round" >Cancelar</button> -->
<button (click)="openExpedientActionsModal('1',fulltask)" class="btn-cancel" shape="round" >Solicitar Parecer</button>
<button (click)="openExpedientActionsModal('2',fulltask)" class="btn-cancel" shape="round" >Pedido de Deferimento</button>
<button *ngIf="!p.userRole(['PR'])" (click)="openExpedientActionsModal('2',fulltask)" class="btn-cancel" shape="round" >Pedido de Deferimento</button>
<button *ngIf="p.userPermission([p.permissionList.Agenda.access])" (click)="openBookMeetingModal()" class="btn-cancel" shape="round" >Marcar Reunião</button>
<button *ngIf="p.userPermission([p.permissionList.Gabinete.md_tasks])" (click)="attachDocument()" class="btn-cancel" shape="round" >Anexar Documentos</button>
<button (click)="distartExpedientModal('descartar')" class="btn-cancel" shape="round" >Descartar</button>
+1 -1
View File
@@ -98,7 +98,7 @@ export class DespachoStoreService {
}
get count() {
return this._count || 0
return this._list.length || 0
}
set count(value: number) {
+2 -7
View File
@@ -11,7 +11,6 @@ export class DespachosprStoreService {
private _list: [] = []
// local storage keyName
private keyName: string;
private _count = 0
constructor() {
@@ -21,7 +20,6 @@ constructor() {
setTimeout(()=>{
let restore = localstoreService.get(this.keyName, {})
this._list = restore.list || []
this._count = parseInt(restore.count) || 0
}, 10)
}
@@ -30,9 +28,8 @@ get list() {
return this._list || []
}
get count() { return this._count || 0 }
get count() { return this._list.length || 0 }
set count(value: number) {
this._count = value
this.save()
}
@@ -46,11 +43,9 @@ reset(eventsList: any) {
private save() {
setTimeout(()=>{
localstoreService.set(this.keyName,{
list: this._list,
count:this._count
list: this._list
})
}, 10)
}
}
+1 -7
View File
@@ -30,17 +30,11 @@ export class ExpedientegdStoreService {
return this._list
}
get count() {
return this._count || 0
}
set count(value: number) {
this._count = value
this.save()
return this._list.length || 0
}
reset(eventsList: any) {
this._list = eventsList
this.count = this._list.length
this.save()
}
+6 -6
View File
@@ -1,12 +1,12 @@
export let versionData = {
"shortSHA": "31fa9fe87",
"SHA": "31fa9fe87c98776b5e9b0b63a24b73ad82ba3989",
"shortSHA": "261478a20",
"SHA": "261478a20448ec09c13fdc649a9ea39c63bcae90",
"branch": "no_bug_movemente",
"lastCommitAuthor": "'Peter Maquiran'",
"lastCommitTime": "'Mon Jan 30 14:04:57 2023 +0100'",
"lastCommitMessage": "Despacho",
"lastCommitNumber": "4691",
"lastCommitTime": "'Mon Jan 30 15:24:37 2023 +0100'",
"lastCommitMessage": "improve",
"lastCommitNumber": "4692",
"change": "",
"changeStatus": "On branch no_bug_movemente\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: src/app/pages/chat/chat.page.ts\n\tmodified: src/app/pages/chat/messages/messages.page.ts\n\tmodified: src/app/pages/gabinete-digital/gabinete-digital.page.ts",
"changeStatus": "On branch no_bug_movemente\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: src/app/pages/gabinete-digital/expediente/expediente-detail/expediente-detail.page.html\n\tmodified: src/app/pages/gabinete-digital/gabinete-digital.page.ts\n\tmodified: src/app/shared/agenda/event-list/event-list.page.ts\n\tmodified: src/app/shared/popover/opts-expediente/opts-expediente.page.html\n\tmodified: src/app/store/despacho-store.service.ts\n\tmodified: src/app/store/despachospr-store.service.ts\n\tmodified: src/app/store/expedientegd-store.service.ts",
"changeAuthor": "peter.maquiran"
}