routing changes
This commit is contained in:
parent
c85fb1c66e
commit
a81b8bf098
@ -6,8 +6,8 @@ import { CognitoService} from './AwsService/cognito.service';
|
|||||||
import { AuthGuard } from './_guard/auth.guard';
|
import { AuthGuard } from './_guard/auth.guard';
|
||||||
// import { SalesPdComponent } from './sales-pd/sales-pd.component';
|
// import { SalesPdComponent } from './sales-pd/sales-pd.component';
|
||||||
export const AppRoutes: Routes = [{
|
export const AppRoutes: Routes = [{
|
||||||
path: '',
|
path: 'sales-pd-list',
|
||||||
redirectTo: 'personal_discussion',
|
redirectTo: 'sales-pd-list',
|
||||||
pathMatch: 'full',
|
pathMatch: 'full',
|
||||||
}, {
|
}, {
|
||||||
path: '',
|
path: '',
|
||||||
@ -22,10 +22,10 @@ export const AppRoutes: Routes = [{
|
|||||||
// loadChildren:'./settings/settings.module#SettingsModule'
|
// loadChildren:'./settings/settings.module#SettingsModule'
|
||||||
// }
|
// }
|
||||||
// ,
|
// ,
|
||||||
{
|
// {
|
||||||
path:'personal_discussion',
|
// path:'personal_discussion',
|
||||||
loadChildren:'./personal-discussion/personal-discussion.module#PersonalDiscussionModule'
|
// loadChildren:'./personal-discussion/personal-discussion.module#PersonalDiscussionModule'
|
||||||
},
|
// },
|
||||||
// {
|
// {
|
||||||
// path:'quality_check_discussion',
|
// path:'quality_check_discussion',
|
||||||
// loadChildren:'./quality-check/quality-check.module#QualityCheckModule'
|
// loadChildren:'./quality-check/quality-check.module#QualityCheckModule'
|
||||||
|
|||||||
@ -14,7 +14,6 @@ import { SharedModule } from 'app/shared/shared.module';
|
|||||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
// import { AdvanceFilterComponent } from 'app/sales-pd/advance-filter/advance-filter.component';
|
// import { AdvanceFilterComponent } from 'app/sales-pd/advance-filter/advance-filter.component';
|
||||||
import { CreditAdvanceFilterComponent } from './credit-advance-filter/credit-advance-filter.component';
|
import { CreditAdvanceFilterComponent } from './credit-advance-filter/credit-advance-filter.component';
|
||||||
import { AlertDialogComponent } from './alert-dialog/alert-dialog.component';
|
|
||||||
|
|
||||||
const pdCustomNotifierOptions: NotifierOptions = {
|
const pdCustomNotifierOptions: NotifierOptions = {
|
||||||
position: {
|
position: {
|
||||||
@ -115,8 +114,8 @@ export class MaterialModule { }
|
|||||||
MatTableModule,
|
MatTableModule,
|
||||||
MatPaginatorModule
|
MatPaginatorModule
|
||||||
],
|
],
|
||||||
entryComponents:[AlertDialogComponent],
|
entryComponents:[],
|
||||||
declarations: [PdListComponent,PdQuestionsComponent,QuesTemplateComponent,CreditAdvanceFilterComponent,AlertDialogComponent]
|
declarations: [PdListComponent,PdQuestionsComponent,QuesTemplateComponent,CreditAdvanceFilterComponent]
|
||||||
})
|
})
|
||||||
export class LenderCreditPdModule { }
|
export class LenderCreditPdModule { }
|
||||||
|
|
||||||
|
|||||||
@ -9,9 +9,10 @@ import { ReactiveFormsModule } from '@angular/forms';
|
|||||||
import { BrowserModule } from '@angular/platform-browser';
|
import { BrowserModule } from '@angular/platform-browser';
|
||||||
//import { IonicModule } from 'ionic-angular';
|
//import { IonicModule } from 'ionic-angular';
|
||||||
//import { MyApp } from '../../../app/app.component';
|
//import { MyApp } from '../../../app/app.component';
|
||||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||||||
import { CaptureBtnComponent } from './ques-template/capture-btn/capture-btn.component';
|
import { CaptureBtnComponent } from './ques-template/capture-btn/capture-btn.component';
|
||||||
import { SingleCaptureBtnComponent } from './ques-template/single-capture-btn/single-capture-btn.component';
|
import { SingleCaptureBtnComponent } from './ques-template/single-capture-btn/single-capture-btn.component';
|
||||||
|
import { QuestionServiceService } from '../services/question-service.service';
|
||||||
//import { SharedModule } from '../../../Shared/shared.module';
|
//import { SharedModule } from '../../../Shared/shared.module';
|
||||||
|
|
||||||
|
|
||||||
@ -57,6 +58,6 @@ import { SingleCaptureBtnComponent } from './ques-template/single-capture-btn/si
|
|||||||
NgxMatSelectSearchModule,
|
NgxMatSelectSearchModule,
|
||||||
ReactiveFormsModule],
|
ReactiveFormsModule],
|
||||||
exports: [QuesTemplateComponent],
|
exports: [QuesTemplateComponent],
|
||||||
providers:[]
|
providers:[QuestionServiceService]
|
||||||
})
|
})
|
||||||
export class ComponentsModule {}
|
export class ComponentsModule {}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
|
|
||||||
import { HomePage, Section9} from '../home/home';
|
import { HomePage, Section9, Section1, Section2, Section3, Section4, Section5, Section6, Section7, Section8} from '../home/home';
|
||||||
import { QuesTemplateComponent } from '../components/ques-template/ques-template';
|
import { QuesTemplateComponent } from '../components/ques-template/ques-template';
|
||||||
//import { ComponentsModule } from '../../components/components.module';
|
//import { ComponentsModule } from '../../components/components.module';
|
||||||
//import { SalesPdProvider } from '../../providers/sales-pd/sales-pd';
|
//import { SalesPdProvider } from '../../providers/sales-pd/sales-pd';
|
||||||
@ -12,25 +12,26 @@ import { SectionListModule } from '../section-list/section-list.module';
|
|||||||
//import {NgxImageCompressService} from 'ngx-image-compress'
|
//import {NgxImageCompressService} from 'ngx-image-compress'
|
||||||
import { SalesPdService } from '../services/sales-pd.service';
|
import { SalesPdService } from '../services/sales-pd.service';
|
||||||
import { MatDialogRef, MatDialog, MAT_DIALOG_DATA } from '@angular/material';
|
import { MatDialogRef, MatDialog, MAT_DIALOG_DATA } from '@angular/material';
|
||||||
|
import { ComponentsModule } from '../components/components.module';
|
||||||
//import {MatDialogModule } from '@angular/material/dialog';
|
//import {MatDialogModule } from '@angular/material/dialog';
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
// SectionListPage,
|
// SectionListPage,
|
||||||
HomePage,
|
HomePage,
|
||||||
//Section1,
|
Section1,
|
||||||
//Section2,
|
Section2,
|
||||||
//Section3,
|
Section3,
|
||||||
//Section4,
|
Section4,
|
||||||
//Section5,
|
Section5,
|
||||||
//Section6,
|
Section6,
|
||||||
//Section7,
|
Section7,
|
||||||
// Section8,
|
Section8,
|
||||||
Section9
|
Section9
|
||||||
],
|
],
|
||||||
entryComponents:[HomePage,Section9,MatDialogModule],
|
entryComponents:[HomePage,Section1,Section2,Section3,Section4,Section5,Section6,Section7,Section8,Section9,MatDialogModule],
|
||||||
imports: [
|
imports: [
|
||||||
SectionListModule,
|
SectionListModule,
|
||||||
|
ComponentsModule,
|
||||||
// IonicPageModule.forChild(HomePage),
|
// IonicPageModule.forChild(HomePage),
|
||||||
MatButtonModule,
|
MatButtonModule,
|
||||||
MatButtonToggleModule,
|
MatButtonToggleModule,
|
||||||
|
|||||||
@ -52,6 +52,7 @@ export class SalesPdComponent implements OnInit {
|
|||||||
console.log('userdetails');
|
console.log('userdetails');
|
||||||
console.log(userDetails);
|
console.log(userDetails);
|
||||||
let role= this.constantProvider.takeDecisionRouting(JSON.parse(userDetails))
|
let role= this.constantProvider.takeDecisionRouting(JSON.parse(userDetails))
|
||||||
|
console.log(role)
|
||||||
if(role == 'sales'){
|
if(role == 'sales'){
|
||||||
this.is_sales_login = true
|
this.is_sales_login = true
|
||||||
}
|
}
|
||||||
|
|||||||
@ -29,16 +29,22 @@ const HORIZONTALMENUITEMS = [
|
|||||||
// icon: 'home'
|
// icon: 'home'
|
||||||
// },
|
// },
|
||||||
{
|
{
|
||||||
state:'personal_discussion',
|
state:'sales-pd-list',
|
||||||
name:'Personal Discussion',
|
name:'Sales PD',
|
||||||
type:'link',
|
type:'link',
|
||||||
icon:'forum',
|
icon:'work',
|
||||||
|
|
||||||
// children:[
|
|
||||||
// {state:'pdtriggerlist',name:'Pd Trigger Listing'}
|
|
||||||
// ]
|
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
|
// state:'personal_discussion',
|
||||||
|
// name:'Personal Discussion',
|
||||||
|
// type:'link',
|
||||||
|
// icon:'forum',
|
||||||
|
|
||||||
|
// // children:[
|
||||||
|
// // {state:'pdtriggerlist',name:'Pd Trigger Listing'}
|
||||||
|
// // ]
|
||||||
|
// },
|
||||||
|
// {
|
||||||
// state:'quality_check_discussion',
|
// state:'quality_check_discussion',
|
||||||
// name:'Quality Check',
|
// name:'Quality Check',
|
||||||
// type:'link',
|
// type:'link',
|
||||||
@ -58,16 +64,16 @@ const salesmenu = [
|
|||||||
// type: 'link',
|
// type: 'link',
|
||||||
// icon: 'home'
|
// icon: 'home'
|
||||||
// },
|
// },
|
||||||
{
|
// {
|
||||||
state:'personal_discussion',
|
// state:'personal_discussion',
|
||||||
name:'Personal Discussion',
|
// name:'Personal Discussion',
|
||||||
type:'link',
|
// type:'link',
|
||||||
icon:'forum',
|
// icon:'forum',
|
||||||
|
|
||||||
// children:[
|
// // children:[
|
||||||
// {state:'pdtriggerlist',name:'Pd Trigger Listing'}
|
// // {state:'pdtriggerlist',name:'Pd Trigger Listing'}
|
||||||
// ]
|
// // ]
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
state:'sales-pd-list',
|
state:'sales-pd-list',
|
||||||
name:'Sales PD',
|
name:'Sales PD',
|
||||||
|
|||||||
@ -71,15 +71,21 @@ const MENUITEMS : Menu[] = [
|
|||||||
// ]
|
// ]
|
||||||
// },
|
// },
|
||||||
{
|
{
|
||||||
state:'personal_discussion',
|
state:'sales-pd-list',
|
||||||
name:'Personal Discussion',
|
name:'Sales PD',
|
||||||
type:'link',
|
type:'link',
|
||||||
icon:'forum',
|
icon:'work',
|
||||||
// children:[
|
|
||||||
// {state:'pdtriggerlist',name:'Pd Trigger Listing'}
|
|
||||||
// ]
|
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
|
// state:'personal_discussion',
|
||||||
|
// name:'Personal Discussion',
|
||||||
|
// type:'link',
|
||||||
|
// icon:'forum',
|
||||||
|
// // children:[
|
||||||
|
// // {state:'pdtriggerlist',name:'Pd Trigger Listing'}
|
||||||
|
// // ]
|
||||||
|
// },
|
||||||
|
// {
|
||||||
// state:'quality_check_discussion',
|
// state:'quality_check_discussion',
|
||||||
// name:'Quality Check',
|
// name:'Quality Check',
|
||||||
// type:'link',
|
// type:'link',
|
||||||
@ -140,16 +146,16 @@ const salesMenus: Menu[]= [
|
|||||||
// // {state:'pdtriggerlist',name:'Pd Trigger Listing'}
|
// // {state:'pdtriggerlist',name:'Pd Trigger Listing'}
|
||||||
// // ]
|
// // ]
|
||||||
// },
|
// },
|
||||||
{
|
// {
|
||||||
state:'personal_discussion',
|
// state:'personal_discussion',
|
||||||
name:'Personal Discussion',
|
// name:'Personal Discussion',
|
||||||
type:'link',
|
// type:'link',
|
||||||
icon:'forum',
|
// icon:'forum',
|
||||||
|
|
||||||
// children:[
|
// // children:[
|
||||||
// {state:'pdtriggerlist',name:'Pd Trigger Listing'}
|
// // {state:'pdtriggerlist',name:'Pd Trigger Listing'}
|
||||||
// ]
|
// // ]
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
state:'sales-pd-list',
|
state:'sales-pd-list',
|
||||||
name:'Sales PD',
|
name:'Sales PD',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user