mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
clear count
This commit is contained in:
+1
-1
@@ -99,7 +99,7 @@
|
|||||||
<div *ngIf="p.userPermission([p.permissionList.Gabinete.md_tasks])" class="option-desc"> <div>Outras opções</div> </div>
|
<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('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('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.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 *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>
|
<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));
|
expedientes = expedientes.map((element) => this.expedienteTaskPipe.transform(element));
|
||||||
|
|
||||||
this.expedientegbstore.count = expedientes.length;
|
|
||||||
this.expedientegbstore.reset(expedientes);
|
this.expedientegbstore.reset(expedientes);
|
||||||
this.updateAllProcess()
|
this.updateAllProcess()
|
||||||
|
|
||||||
|
|||||||
@@ -58,6 +58,9 @@ export class EventListPage implements OnInit {
|
|||||||
|
|
||||||
ngOnChanges() {
|
ngOnChanges() {
|
||||||
this.LoadToApproveEvents();
|
this.LoadToApproveEvents();
|
||||||
|
setTimeout(() => {
|
||||||
|
this.LoadToApproveEvents();
|
||||||
|
}, 3000)
|
||||||
}
|
}
|
||||||
|
|
||||||
segmentChanged(ev: any) {
|
segmentChanged(ev: any) {
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
<button (click)="openExpedientActionsModal('0',fulltask)" class="btn-cancel" shape="round" >Efetuar Despacho</button>
|
<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)="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('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.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 *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>
|
<button (click)="distartExpedientModal('descartar')" class="btn-cancel" shape="round" >Descartar</button>
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ export class DespachoStoreService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get count() {
|
get count() {
|
||||||
return this._count || 0
|
return this._list.length || 0
|
||||||
}
|
}
|
||||||
|
|
||||||
set count(value: number) {
|
set count(value: number) {
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ export class DespachosprStoreService {
|
|||||||
private _list: [] = []
|
private _list: [] = []
|
||||||
// local storage keyName
|
// local storage keyName
|
||||||
private keyName: string;
|
private keyName: string;
|
||||||
private _count = 0
|
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
||||||
@@ -21,7 +20,6 @@ constructor() {
|
|||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
let restore = localstoreService.get(this.keyName, {})
|
let restore = localstoreService.get(this.keyName, {})
|
||||||
this._list = restore.list || []
|
this._list = restore.list || []
|
||||||
this._count = parseInt(restore.count) || 0
|
|
||||||
}, 10)
|
}, 10)
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -30,9 +28,8 @@ get list() {
|
|||||||
return this._list || []
|
return this._list || []
|
||||||
}
|
}
|
||||||
|
|
||||||
get count() { return this._count || 0 }
|
get count() { return this._list.length || 0 }
|
||||||
set count(value: number) {
|
set count(value: number) {
|
||||||
this._count = value
|
|
||||||
this.save()
|
this.save()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -46,11 +43,9 @@ reset(eventsList: any) {
|
|||||||
private save() {
|
private save() {
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
localstoreService.set(this.keyName,{
|
localstoreService.set(this.keyName,{
|
||||||
list: this._list,
|
list: this._list
|
||||||
count:this._count
|
|
||||||
})
|
})
|
||||||
}, 10)
|
}, 10)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,17 +30,11 @@ export class ExpedientegdStoreService {
|
|||||||
return this._list
|
return this._list
|
||||||
}
|
}
|
||||||
get count() {
|
get count() {
|
||||||
return this._count || 0
|
return this._list.length || 0
|
||||||
}
|
|
||||||
set count(value: number) {
|
|
||||||
this._count = value
|
|
||||||
this.save()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
reset(eventsList: any) {
|
reset(eventsList: any) {
|
||||||
this._list = eventsList
|
this._list = eventsList
|
||||||
|
|
||||||
this.count = this._list.length
|
|
||||||
this.save()
|
this.save()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
export let versionData = {
|
export let versionData = {
|
||||||
"shortSHA": "31fa9fe87",
|
"shortSHA": "261478a20",
|
||||||
"SHA": "31fa9fe87c98776b5e9b0b63a24b73ad82ba3989",
|
"SHA": "261478a20448ec09c13fdc649a9ea39c63bcae90",
|
||||||
"branch": "no_bug_movemente",
|
"branch": "no_bug_movemente",
|
||||||
"lastCommitAuthor": "'Peter Maquiran'",
|
"lastCommitAuthor": "'Peter Maquiran'",
|
||||||
"lastCommitTime": "'Mon Jan 30 14:04:57 2023 +0100'",
|
"lastCommitTime": "'Mon Jan 30 15:24:37 2023 +0100'",
|
||||||
"lastCommitMessage": "Despacho",
|
"lastCommitMessage": "improve",
|
||||||
"lastCommitNumber": "4691",
|
"lastCommitNumber": "4692",
|
||||||
"change": "",
|
"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"
|
"changeAuthor": "peter.maquiran"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user