mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
-style approve entents for desktop finished
-style expedient for desktop ongoing
This commit is contained in:
@@ -10,7 +10,9 @@ import { GabineteDigitalPage } from './gabinete-digital.page';
|
||||
import { SharedModule } from 'src/app/shared/shared.module';
|
||||
|
||||
import { EventListComponent } from 'src/app/shared/agenda/event-list/event-list.component';
|
||||
import { ExpedientePage } from 'src/app/shared/gabinete-digital/expediente/expediente.page'
|
||||
import { EmptyContainerPage } from 'src/app/shared/empty-container/empty-container.page';
|
||||
import { EventsToApprovePage } from 'src/app/shared/gabinete-digital/events-to-approve/events-to-approve.page';
|
||||
import { ExpedientePage } from 'src/app/shared/gabinete-digital/expediente/expediente.page';
|
||||
|
||||
/* import { ComponentsModule } from 'src/app/components/components.module'; */
|
||||
|
||||
@@ -25,7 +27,14 @@ import { ExpedientePage } from 'src/app/shared/gabinete-digital/expediente/exped
|
||||
declarations: [
|
||||
GabineteDigitalPage,
|
||||
EventListComponent,
|
||||
ExpedientePage
|
||||
EmptyContainerPage,
|
||||
EventsToApprovePage,
|
||||
ExpedientePage,
|
||||
],
|
||||
entryComponents: [
|
||||
EmptyContainerPage,
|
||||
EventsToApprovePage,
|
||||
ExpedientePage,
|
||||
],
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||
})
|
||||
|
||||
@@ -8,15 +8,13 @@
|
||||
<ion-refresher-content>
|
||||
</ion-refresher-content>
|
||||
</ion-refresher>
|
||||
<div class="main-content height-100">
|
||||
<div class="main-content d-flex height-100">
|
||||
|
||||
<div class="d-flex height-100">
|
||||
|
||||
<!-- -->
|
||||
<div class="d-flex aside-wrapper flex-column pt-25 justify-center width-md-40 ">
|
||||
<!-- Aside left -->
|
||||
<div class="aside-wrapper d-flex flex-column pt-25 justify-center width-md-40 ">
|
||||
<p class="text-center mt-0 aside-title px-20">Gabinete Digital</p>
|
||||
<div class="aside overflow-y-auto d-flex d-md-block flex-wrap justify-center width-100 px-20">
|
||||
<div class="exp-card d-flex flex-column justify-center" (click)="openEventsToApproveList('MDGPR')">
|
||||
<div class="exp-card d-flex flex-column justify-center" (click)="openEventsToApprovePage('MDGPR')">
|
||||
<div class="d-flex justify-center">
|
||||
<ion-icon src="assets/images/icons-agenda.svg"></ion-icon>
|
||||
</div>
|
||||
@@ -69,12 +67,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- -->
|
||||
<div class="d-none flex-1 aside-content height-100 overflow-y-auto pt-25">
|
||||
<app-event-list class="d-flex flex-1 flex-column height-100" *ngIf="desktopComponent.showEventList"></app-event-list>
|
||||
<app-expediente class="d-flex flex-1 flex-column height-100" *ngIf="desktopComponent.showExpediente"></app-expediente>
|
||||
<!-- Aside right -->
|
||||
<div class="aside-content d-none flex-column height-100">
|
||||
<app-empty-container [texto]="emptyTextDescription" *ngIf="showEmptyContainer" class="d-flex height-100 flex-column"></app-empty-container>
|
||||
<app-events-to-approve [segment]="'MDGPR'" *ngIf="showEventsToApprove" class="d-flex height-100 flex-column"></app-events-to-approve>
|
||||
<app-expediente [profile]="profile" class="d-flex flex-1 flex-column height-100" *ngIf="desktopComponent.showExpediente"></app-expediente>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</ion-content>
|
||||
|
||||
@@ -107,7 +107,7 @@ ion-content{
|
||||
padding: 30px 5px 30px 5px;
|
||||
border-radius: 15px;
|
||||
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.07);
|
||||
border: solid 1px #e9e9e9;
|
||||
//border: solid 1px #e9e9e9;
|
||||
/* --background-color: #ffffff !important; */
|
||||
background-color: #ffffff !important;
|
||||
float: left;
|
||||
@@ -153,8 +153,9 @@ ion-content{
|
||||
|
||||
.main-content{
|
||||
.aside-wrapper{
|
||||
border: 1px solid red;
|
||||
width: 40%;
|
||||
justify-content: flex-start !important;
|
||||
border-right: 1px solid #d8d8d8;
|
||||
.aside-title{
|
||||
font-family: Roboto;
|
||||
font-size: 25px;
|
||||
@@ -162,25 +163,38 @@ ion-content{
|
||||
}
|
||||
}
|
||||
.aside-content{
|
||||
width: 60%;
|
||||
display: flex !important;
|
||||
background-color: white;
|
||||
}
|
||||
}
|
||||
|
||||
.exp-card{
|
||||
margin: 5px auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 0 auto;
|
||||
margin-bottom: 15px;
|
||||
flex-direction: row !important;
|
||||
width: 100%;
|
||||
padding-right: 11px;
|
||||
padding-bottom: 5px;
|
||||
padding-top: 5px;
|
||||
padding: 10px 17px 10px 17px;
|
||||
height: unset !important;
|
||||
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.07);
|
||||
|
||||
.exp-card-title{
|
||||
flex: 1;
|
||||
text-align: left;
|
||||
margin-top: 0px !important;
|
||||
}
|
||||
.exp-card-content{
|
||||
margin: 0 !important;
|
||||
}
|
||||
.exp-card-content .title1{
|
||||
display: none;
|
||||
margin-top: 0px !important;
|
||||
}
|
||||
.exp-card-content .number{
|
||||
//display: none;
|
||||
margin-top: 0px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,6 +31,10 @@ export class GabineteDigitalPage implements OnInit {
|
||||
showEventList: false,
|
||||
showExpediente : false
|
||||
}
|
||||
showEventsToApprove = true;
|
||||
showEmptyContainer = false;
|
||||
showExpedients = false;
|
||||
emptyTextDescription = 'Sem opção selecionada';
|
||||
|
||||
constructor(
|
||||
private processesbackend:ProcessesService,
|
||||
@@ -90,6 +94,13 @@ this.processesbackend.GetActionsList().subscribe(res=>{
|
||||
});
|
||||
}
|
||||
|
||||
closeAllDesktopComponents(){
|
||||
this.showEmptyContainer = false;
|
||||
this.showEventsToApprove = false;
|
||||
this.showExpedients = false;
|
||||
this.showExpedients = false;
|
||||
}
|
||||
|
||||
LoadCounts() {
|
||||
this.showLoader = true;
|
||||
this.processesbackend.GetTasksList("Expediente", true).subscribe(res =>{
|
||||
@@ -122,6 +133,16 @@ this.processesbackend.GetActionsList().subscribe(res=>{
|
||||
notImplemented(){
|
||||
this.alertService.presentAlert('Funcionalidade em desenvolvimento');
|
||||
}
|
||||
|
||||
openEventsToApprovePage(segment:any){
|
||||
this.closeAllDesktopComponents();
|
||||
if( window.innerWidth <= 1024){
|
||||
this.openEventsToApproveList(segment);
|
||||
}
|
||||
else{
|
||||
this.showEventsToApprove = true;
|
||||
}
|
||||
}
|
||||
|
||||
async openEventsToApproveList(segment:any){
|
||||
|
||||
@@ -151,7 +172,15 @@ this.processesbackend.GetActionsList().subscribe(res=>{
|
||||
//}
|
||||
|
||||
}
|
||||
|
||||
openExpedientListPage(){
|
||||
this.closeAllDesktopComponents();
|
||||
if( window.innerWidth <= 1024){
|
||||
this.openExpedientList();
|
||||
}
|
||||
else{
|
||||
this.showExpedients = true;
|
||||
}
|
||||
}
|
||||
async openExpedientList(){
|
||||
|
||||
this.closeAllDesktopComponent();
|
||||
|
||||
Reference in New Issue
Block a user