mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
change home
This commit is contained in:
@@ -49,18 +49,21 @@ export class EventListPage implements OnInit {
|
||||
}
|
||||
|
||||
ngAfterViewInit(): void {
|
||||
if(!this.segment) {
|
||||
if(this.eventService.calendarNamesAry.includes('Meu calendario')) {
|
||||
this.segment = 'Meu calendario';
|
||||
} else {
|
||||
this.segment = this.eventService.calendarNamesAry[0].OwnerUserId
|
||||
this.eventService.onCalendarFinishLoad.subscribe(() => {
|
||||
if(!this.segment) {
|
||||
if(this.eventService.calendarNamesAry.includes('Meu calendario')) {
|
||||
this.segment = 'Meu calendario';
|
||||
} else {
|
||||
this.segment = this.eventService.calendarNamesAry[0].OwnerUserId
|
||||
}
|
||||
|
||||
// select pr by default
|
||||
const pr = this.eventService.calendarNamesAry.find( e => e.Role == 'Presidente da República')
|
||||
if(pr) {
|
||||
this.segment = pr.OwnerUserId
|
||||
}
|
||||
}
|
||||
|
||||
// const pr = this.eventService.calendarNamesAry.find( e => e.Role == 'Presidente da República')
|
||||
// if(pr) {
|
||||
// this.segment = pr.OwnerUserId
|
||||
// }
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
@@ -266,9 +266,9 @@
|
||||
<ion-icon name="add"></ion-icon>
|
||||
</ion-fab-button>
|
||||
<ion-fab-list side="top">
|
||||
<ion-fab-button *ngIf="p.userPermission([p.permissionList.Agenda.access])" title="Nova Reunião" (click)="bookMeeting()" color="light">
|
||||
<!-- <ion-fab-button *ngIf="p.userPermission([p.permissionList.Agenda.access])" title="Nova Reunião" (click)="bookMeeting()" color="light">
|
||||
<ion-icon name="calendar"></ion-icon>
|
||||
</ion-fab-button>
|
||||
</ion-fab-button> -->
|
||||
<ion-fab-button title="Adicionar Documento" (click)="addFile()" color="light">
|
||||
<ion-icon name="document"></ion-icon>
|
||||
</ion-fab-button>
|
||||
|
||||
@@ -249,9 +249,9 @@
|
||||
<ion-icon name="add"></ion-icon>
|
||||
</ion-fab-button>
|
||||
<ion-fab-list side="top">
|
||||
<ion-fab-button *ngIf="p.userPermission([p.permissionList.Agenda.access])" title="Nova Reunião" (click)="bookMeeting()" color="light">
|
||||
<!-- <ion-fab-button *ngIf="p.userPermission([p.permissionList.Agenda.access])" title="Nova Reunião" (click)="bookMeeting()" color="light">
|
||||
<ion-icon name="calendar"></ion-icon>
|
||||
</ion-fab-button>
|
||||
</ion-fab-button> -->
|
||||
<ion-fab-button title="Adicionar Documento" (click)="addFile()" color="light">
|
||||
<ion-icon name="document"></ion-icon>
|
||||
</ion-fab-button>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { AfterViewInit, Component, ElementRef, EventEmitter, Input, OnChanges, OnDestroy, OnInit, Output, SimpleChanges, ViewChild } from '@angular/core';
|
||||
import { AnimationController, GestureController, IonRange, ModalController, PopoverController } from '@ionic/angular';
|
||||
import { AuthService } from 'src/app/services/auth.service';
|
||||
import { ChatService } from 'src/app/services/chat.service';
|
||||
import { ToastService } from 'src/app/services/toast.service';
|
||||
import { ChatOptionsPopoverPage } from 'src/app/shared/popover/chat-options-popover/chat-options-popover.page';
|
||||
@@ -18,7 +17,6 @@ import { Storage } from '@ionic/storage';
|
||||
import { ChatSystemService } from 'src/app/services/chat/chat-system.service'
|
||||
import { RochetChatConnectorService } from 'src/app/services/chat/rochet-chat-connector.service'
|
||||
import { MessageService } from 'src/app/services/chat/message.service';
|
||||
import { AttachmentsService } from 'src/app/services/attachments.service';
|
||||
import { CameraService } from 'src/app/services/camera.service';
|
||||
import { FileType } from 'src/app/models/fileType';
|
||||
import { SearchPage } from 'src/app/pages/search/search.page';
|
||||
|
||||
@@ -130,8 +130,8 @@
|
||||
</div>
|
||||
<div class="item-middle-detail">
|
||||
<div class="item-remetente">
|
||||
<ion-label *ngIf="task.Senders">{{task.Senders }}</ion-label>
|
||||
<ion-label *ngIf="task.workflowInstanceDataFields">{{ task.workflowInstanceDataFields.Sender }}</ion-label>
|
||||
<ion-label class="sender" *ngIf="task.Senders">{{task.Senders }}</ion-label>
|
||||
<ion-label class="sender" *ngIf="task.workflowInstanceDataFields">{{ task.workflowInstanceDataFields.Sender }}</ion-label>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="task.Agenda" class="item-middle-detail">
|
||||
|
||||
@@ -41,6 +41,7 @@ ion-list{
|
||||
padding: 15px;
|
||||
|
||||
.item{
|
||||
height: 78px;
|
||||
//background-color: var(--white);
|
||||
margin: 0 auto;
|
||||
overflow: hidden;
|
||||
@@ -60,7 +61,7 @@ ion-list{
|
||||
|
||||
ion-label{
|
||||
margin: 0 !important;
|
||||
padding: 2.5px 10.5px 2.5px 10.5px;
|
||||
padding: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -99,7 +100,7 @@ ion-list{
|
||||
/* border: 1px solid red; */
|
||||
|
||||
ion-label{
|
||||
padding: 2.5px 10.5px 2.5px 10.5px;
|
||||
padding: 0px;
|
||||
margin: 0 !important;
|
||||
}
|
||||
}
|
||||
@@ -136,6 +137,7 @@ ion-list{
|
||||
background: var(--label-bg-color);
|
||||
/* font-size: 12px; */
|
||||
float: right;
|
||||
font-size: 12px;
|
||||
padding: 2.5px 13.5px 2.5px 13.5px;
|
||||
color: #fff;
|
||||
}
|
||||
@@ -193,3 +195,8 @@ ion-list{
|
||||
width: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.sender {
|
||||
font-size: 10px;
|
||||
}
|
||||
@@ -3,7 +3,6 @@ import { NavigationEnd, Router } from '@angular/router';
|
||||
import { LoginUserRespose } from 'src/app/models/user.model';
|
||||
import { ThemeService } from 'src/app/services/theme.service'
|
||||
import { TaskService } from 'src/app/services/task.service'
|
||||
/* import MiniSearch from 'minisearch' */
|
||||
|
||||
@Component({
|
||||
selector: 'app-all-processes',
|
||||
@@ -83,7 +82,7 @@ export class AllProcessesPage implements OnInit {
|
||||
}
|
||||
async closeSearch() {
|
||||
this.searchSubject = ''
|
||||
// this.dynamicSearch()
|
||||
this.dynamicSearch()
|
||||
}
|
||||
|
||||
async basicSearch() {
|
||||
|
||||
@@ -86,11 +86,18 @@
|
||||
|
||||
</div>
|
||||
<ion-toolbar>
|
||||
<ion-segment [(ngModel)]="segment" (ionChange)="segmentChanged($event)" class="row-reverse">
|
||||
<ion-segment [(ngModel)]="segment" (ionChange)="segmentChanged($event)" >
|
||||
<!-- <ion-segment-button value="MDGPR">
|
||||
Minha agenda
|
||||
</ion-segment-button> -->
|
||||
<ion-segment-button *ngFor="let calendars of eventService.calendarNamesAry; let i index" [value]="i === 'Meu calendario' ? 'Meu calendario' : i.OwnerUserId ">
|
||||
<ion-segment-button *ngFor="let calendars of eventService.calendarNamesAryPR; let i index" [value]="i === 'Meu calendario' ? 'Meu calendario' : i.OwnerUserId ">
|
||||
<div *ngIf="calendars == 'Meu calendario'"> Minha agenda </div>
|
||||
<div *ngIf="calendars != 'Meu calendario' && calendars.Role == 'Presidente da República'"> {{ environment.agendaPR}} </div>
|
||||
<div *ngIf="calendars != 'Meu calendario' && calendars.Role == 'Ministro e Director do Gabinete do PR'"> {{ environment.agendaVP}} </div>
|
||||
<div *ngIf="calendars != 'Meu calendario' && calendars.Role != 'Ministro e Director do Gabinete do PR' && calendars.Role != 'Presidente da República'"> Agenda do {{calendars.Fullname}} </div>
|
||||
</ion-segment-button>
|
||||
|
||||
<ion-segment-button *ngFor="let calendars of eventService.calendarNamesAryNoPr; let i index" [value]="i === 'Meu calendario' ? 'Meu calendario' : i.OwnerUserId ">
|
||||
<div *ngIf="calendars == 'Meu calendario'"> Minha agenda </div>
|
||||
<div *ngIf="calendars != 'Meu calendario' && calendars.Role == 'Presidente da República'"> {{ environment.agendaPR}} </div>
|
||||
<div *ngIf="calendars != 'Meu calendario' && calendars.Role == 'Ministro e Director do Gabinete do PR'"> {{ environment.agendaVP}} </div>
|
||||
|
||||
@@ -62,18 +62,23 @@ export class EventsToApprovePage implements OnInit {
|
||||
{}
|
||||
|
||||
ngOnInit() {
|
||||
if(!this.segment) {
|
||||
if(this.eventService.calendarNamesAry.includes('Meu calendario')) {
|
||||
this.segment = 'Meu calendario';
|
||||
} else {
|
||||
this.segment = this.eventService.calendarNamesAry[0].OwnerUserId
|
||||
|
||||
this.eventService.onCalendarFinishLoad.subscribe(() => {
|
||||
if(!this.segment) {
|
||||
if(this.eventService.calendarNamesAry.includes('Meu calendario')) {
|
||||
this.segment = 'Meu calendario';
|
||||
} else {
|
||||
this.segment = this.eventService.calendarNamesAry[0].OwnerUserId
|
||||
}
|
||||
|
||||
// select pr by default
|
||||
const pr = this.eventService.calendarNamesAry.find( e => e.Role == 'Presidente da República')
|
||||
if(pr) {
|
||||
this.segment = pr.OwnerUserId
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
// const pr = this.eventService.calendarNamesAry.find( e => e.Role == 'Presidente da República')
|
||||
// if(pr) {
|
||||
// this.segment = pr.OwnerUserId
|
||||
// }
|
||||
}
|
||||
this.LoadToApproveEvents()
|
||||
|
||||
this.listSubscription = this.eventoaprovacaostore.registerCallback({
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<button (click)="addDocGestaoDocumental()" class="btn-ok" shape="round" >Gestão Documental</button>
|
||||
<div class="solid"></div>
|
||||
|
||||
<button *ngIf="p.userPermission([p.permissionList.Agenda.access]) == true " (click)="bookMeeting()" class="btn-ok" shape="round" >Novo Evento</button>
|
||||
<!-- <button *ngIf="p.userPermission([p.permissionList.Agenda.access]) == true " (click)="bookMeeting()" class="btn-ok" shape="round" >Novo Evento</button> -->
|
||||
<button (click)="close()" full class="btn-cancel" shape="round" >Cancelar</button>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user