mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
change text, fixe create and edit event
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<app-task-list-header
|
||||
class="width-100 height-100"
|
||||
[goBackButton] = false
|
||||
[headerName] = environment.dispatchPR
|
||||
[headerName] = headerName
|
||||
[ordinance] = ordinance
|
||||
[loading] = skeletonLoader
|
||||
[loaderTop] = true
|
||||
|
||||
@@ -8,7 +8,7 @@ import { SessionStore } from 'src/app/store/session.service';
|
||||
import { environment } from 'src/environments/environment';
|
||||
import { TaskService } from 'src/app/services/task.service'
|
||||
import { ThemeService } from 'src/app/services/theme.service'
|
||||
|
||||
import { PermissionService } from 'src/app/services/permission.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-despachos-pr',
|
||||
@@ -24,7 +24,7 @@ export class DespachosPrPage implements OnInit {
|
||||
despachosprstore = DespachosprStore;
|
||||
environment = environment
|
||||
filterName: 'Para hoje' | 'Novos'| 'Lidos'| 'Não lidos'| 'OverdueTasks' | 'Todos' = 'Todos'
|
||||
//
|
||||
//
|
||||
showSearch = false
|
||||
searchSubject = ''
|
||||
list = []
|
||||
@@ -34,14 +34,23 @@ export class DespachosPrPage implements OnInit {
|
||||
delete(): void;
|
||||
}
|
||||
routerSubscription;
|
||||
headerName = ''
|
||||
|
||||
constructor (
|
||||
private router: Router,
|
||||
public TaskService: TaskService,
|
||||
public ThemeService: ThemeService,
|
||||
public p: PermissionService,
|
||||
|
||||
) {
|
||||
this.loggeduser = SessionStore.user;
|
||||
|
||||
|
||||
if(this.p.userPermission([this.p.permissionList.Gabinete.md_tasks])) {
|
||||
this.headerName = `Despachos ${ environment.despachoLabel }`
|
||||
} else {
|
||||
this.headerName = "Despachos criados por mim"
|
||||
}
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
@@ -52,9 +61,9 @@ constructor (
|
||||
this.listSubscription = this.despachosprstore.registerCallback({
|
||||
id: import.meta.url,
|
||||
funx:() => {
|
||||
|
||||
|
||||
this.dynamicSearch()
|
||||
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
@@ -103,7 +112,7 @@ constructor (
|
||||
async dynamicSearch() {
|
||||
|
||||
if(this.showSearch && this.searchSubject) {
|
||||
|
||||
|
||||
const list = this.despachosprstore.list.filter((task) => {
|
||||
let subject = task.Folio || task.Subject || task.workflowInstanceDataFields.Subject
|
||||
subject = subject.toLowerCase();
|
||||
@@ -142,14 +151,14 @@ constructor (
|
||||
doRefresh(event) {
|
||||
if (event) {
|
||||
setTimeout(() => {
|
||||
|
||||
|
||||
try {
|
||||
event?.target?.complete();
|
||||
} catch(error) {}
|
||||
|
||||
|
||||
}, 2000);
|
||||
}
|
||||
|
||||
|
||||
setTimeout(() => {
|
||||
this.LoadList();
|
||||
try {
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<ion-header class="ion-no-border">
|
||||
<ion-progress-bar type="indeterminate" *ngIf="skeletonLoader"></ion-progress-bar>
|
||||
<div class="title">
|
||||
<div class="thetitle"><ion-label >Diplomas para assinar</ion-label></div>
|
||||
<div class="thetitle"><ion-label *ngIf="p.userPermission([p.permissionList.Gabinete.md_tasks])" >Diplomas por Assinar PR</ion-label></div>
|
||||
<div class="thetitle"><ion-label *ngIf="p.userPermission([p.permissionList.Gabinete.pr_tasks])" >Diplomas para assinar PR</ion-label></div>
|
||||
<div class="theicon d-flex align-center">
|
||||
<!-- <div>
|
||||
<div title="Pesquisa" *ngIf="!hideSearchBtn" class="mr-20 d-flex align-center cursor-pointer">
|
||||
@@ -22,24 +23,24 @@
|
||||
<ion-input (keyup.enter)="basicSearch()" [(ngModel)]='searchSubject' (ngModelChange)="dynamicSearch()"
|
||||
class="search-input text-black" type="search" placeholder="Pesquisar"></ion-input>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div (click)="basicSearch()" class="d-flex align-center icon">
|
||||
|
||||
<ion-icon class="icon-z" slot="end" src="assets/images/theme/gov/search.svg"></ion-icon>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
|
||||
<div>
|
||||
<div class="d-flex" (click)="reorderList('old')" *ngIf="ordinance == 'recent' ">
|
||||
|
||||
<ion-icon class="mr-10 font-25" src="assets/images/theme/gov/crescente.svg" ></ion-icon>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="d-flex" (click)="reorderList('recent')" *ngIf="ordinance != 'recent' ">
|
||||
<ion-icon class="mr-10 font-25" src="assets/images/theme/gov/decrescente.svg" ></ion-icon>
|
||||
</div>
|
||||
@@ -48,33 +49,33 @@
|
||||
<div>
|
||||
<mat-form-field class="task-filter-input" appearance="none" color="ion-color-secondary" placeholder="Selecione agenda">
|
||||
<mat-select [(value)]="filterName">
|
||||
|
||||
|
||||
<mat-option value="Para hoje" >
|
||||
Para hoje
|
||||
</mat-option>
|
||||
|
||||
|
||||
<mat-option value="Novos" >
|
||||
Novas
|
||||
</mat-option>
|
||||
|
||||
|
||||
<mat-option value="Lidos" >
|
||||
Lidas
|
||||
</mat-option>
|
||||
|
||||
|
||||
<mat-option value="Não lidos" >
|
||||
Não lidas
|
||||
</mat-option>
|
||||
|
||||
|
||||
|
||||
|
||||
<mat-option value="OverdueTasks">
|
||||
Em atraso
|
||||
</mat-option>
|
||||
|
||||
|
||||
<mat-option value="Todos" >
|
||||
Todas
|
||||
</mat-option>
|
||||
|
||||
|
||||
|
||||
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
</div>
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { NavigationStart, Router } from '@angular/router';
|
||||
import { customTask, DailyWorkTask } from '../../../models/dailyworktask.model';
|
||||
import { ProcessesService } from 'src/app/services/processes.service';
|
||||
import { DeplomasStore } from 'src/app/store/deplomas.service';
|
||||
import { CustomTaskPipe } from 'src/app/pipes/custom-task.pipe';
|
||||
import { SortService } from 'src/app/services/functions/sort.service';
|
||||
import { ThemeService } from 'src/app/services/theme.service'
|
||||
import { TaskService } from 'src/app/services/task.service'
|
||||
import { PermissionService } from 'src/app/services/permission.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-diplomas-assinar',
|
||||
@@ -21,7 +19,7 @@ export class DiplomasAssinarPage implements OnInit {
|
||||
deplomasStore = DeplomasStore
|
||||
customTaskPipe = new CustomTaskPipe()
|
||||
filterName: 'Para hoje' | 'Novos'| 'Lidos'| 'Não lidos'| 'OverdueTasks' | 'Todos' = 'Todos'
|
||||
//
|
||||
//
|
||||
showSearch = false
|
||||
searchSubject = ''
|
||||
list = []
|
||||
@@ -36,7 +34,8 @@ export class DiplomasAssinarPage implements OnInit {
|
||||
constructor(
|
||||
private router: Router,
|
||||
public ThemeService: ThemeService,
|
||||
public TaskService: TaskService
|
||||
public TaskService: TaskService,
|
||||
public p: PermissionService,
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
@@ -48,9 +47,9 @@ export class DiplomasAssinarPage implements OnInit {
|
||||
this.listSubscription = this.deplomasStore.registerCallback({
|
||||
id: import.meta.url,
|
||||
funx:() => {
|
||||
|
||||
|
||||
this.dynamicSearch()
|
||||
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
@@ -69,7 +68,7 @@ export class DiplomasAssinarPage implements OnInit {
|
||||
|
||||
ngOnDestroy() {
|
||||
this.listSubscription.delete()
|
||||
|
||||
|
||||
this.routerSubscription?.unsubscribe();
|
||||
}
|
||||
|
||||
@@ -84,7 +83,7 @@ export class DiplomasAssinarPage implements OnInit {
|
||||
async dynamicSearch() {
|
||||
|
||||
if(this.showSearch && this.searchSubject) {
|
||||
|
||||
|
||||
const list = this.deplomasStore.diplomasParaAssinarList.filter((task) => {
|
||||
let subject = task.Folio || task.Subject || task.workflowInstanceDataFields.Subject
|
||||
subject = subject.toLowerCase();
|
||||
|
||||
Reference in New Issue
Block a user