routing issue and error issue fixed

This commit is contained in:
bitbucket 2023-04-18 16:00:21 +05:30
parent 2084caeb0b
commit 5792a61b13
7 changed files with 15 additions and 9 deletions

View File

@ -200,7 +200,11 @@ export class AppoinmentsListComponent implements OnInit {
}); });
dialogRef.afterClosed().subscribe(result => { dialogRef.afterClosed().subscribe(result => {
console.log(result) console.log(result)
this.formAddUpdateAndDelete(result,result.data) if(result == 0){
this.getAppoinmentsList()
}
// this.formAddUpdateAndDelete(result,result.data)
// if(result.event == 'Add'){ // if(result.event == 'Add'){
// this.addRowData(result.data); // this.addRowData(result.data);
// }else if(result.event == 'Update'){ // }else if(result.event == 'Update'){

View File

@ -220,7 +220,7 @@ export class DialogBoxComponent implements OnInit {
this._app.addFormDetails(paramsData).subscribe(res => { this._app.addFormDetails(paramsData).subscribe(res => {
if (res.status == 200) { if (res.status == 200) {
this.notifierService.notify('success', 'Appointment Added Successfully'); this.notifierService.notify('success', 'Appointment Added Successfully');
this.dialogRef.close(); this.dialogRef.close(0);
} }
}) })
} }

View File

@ -72,6 +72,7 @@ export class BusinessListComponent implements OnInit {
this.recordStatus=false; this.recordStatus=false;
} }
else{ else{
this.isLoading = false
this.businessList=[]; this.businessList=[];
this.businessListLength= null; this.businessListLength= null;
this.recordStatus=true; this.recordStatus=true;

View File

@ -112,7 +112,7 @@
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
</div> </div>
<div class="form-group label-container" *ngIf="userRole != 'BADMIN'"> <div class="form-group label-container" *ngIf="userRole != 'BADMIN'" >
<label>Caption <span style="margin-left: 4rem;">-</span></label> <label>Caption <span style="margin-left: 4rem;">-</span></label>
<a style="padding: 10px;" *ngIf="isEditable == false">{{practitionerdetails.caption}}</a> <a style="padding: 10px;" *ngIf="isEditable == false">{{practitionerdetails.caption}}</a>
<mat-form-field style="width: 60%;" *ngIf="isEditable == true"> <mat-form-field style="width: 60%;" *ngIf="isEditable == true">
@ -120,7 +120,7 @@
<textarea matInput rows="3" cols="30" placeholder="Caption" [(ngModel)]="caption"></textarea> <textarea matInput rows="3" cols="30" placeholder="Caption" [(ngModel)]="caption"></textarea>
</mat-form-field> </mat-form-field>
</div> </div>
<div class="form-group label-container" *ngIf="userRole != 'BADMIN'"> <div class="form-group label-container" *ngIf="userRole != 'BADMIN'">
<label>Description <span style="margin-left: 4rem;">-</span></label> <label>Description <span style="margin-left: 4rem;">-</span></label>
<a style="padding: 10px;" *ngIf="isEditable == false">{{practitionerdetails.description}}</a> <a style="padding: 10px;" *ngIf="isEditable == false">{{practitionerdetails.description}}</a>
<mat-form-field style="width: 60%;" *ngIf="isEditable == true"> <mat-form-field style="width: 60%;" *ngIf="isEditable == true">

View File

@ -35,11 +35,11 @@
<div class="main-content" fxLayout="row" fxLayoutAlign="center start"> <div class="main-content" fxLayout="row" fxLayoutAlign="center start">
<div fxFlex.gt-sm="90" fxFlex.gt-xs="95" fxFlex="100"> <div fxFlex.gt-sm="90" fxFlex.gt-xs="95" fxFlex="100">
<div class="messages-list material fullscreen"> <div class="messages-list material fullscreen">
<mat-accordion> <mat-accordion >
<!-- <mat-expansion-panel> <!-- <mat-expansion-panel>
<mat-expansion-panel-header > --> <mat-expansion-panel-header > -->
<!-- <div class="example-container mat-elevation-z8 "> --> <!-- <div class="example-container mat-elevation-z8 "> -->
<table mat-table [dataSource]="usersList" #mytable class="my-table mat-elevation-z8 len-table"> <table mat-table [dataSource]="usersList" #mytable class="my-table mat-elevation-z8 len-table">
<ng-container matColumnDef="id"> <ng-container matColumnDef="id">
<th mat-header-cell *matHeaderCellDef class="font-color"> S.No</th> <th mat-header-cell *matHeaderCellDef class="font-color"> S.No</th>

View File

@ -37,7 +37,8 @@ export class DoctorProfileComponent implements OnInit {
this.profileDetails = this.bookedAppointment.practitionerInfos[0] this.profileDetails = this.bookedAppointment.practitionerInfos[0]
console.log(this.profileDetails) console.log(this.profileDetails)
this.skillsDetails = JSON.parse(this.profileDetails.skills) this.skillsDetails = JSON.parse(this.profileDetails.skills)
console.log(this.skillsDetails) this.skillsDetails = JSON.parse(this.skillsDetails)
}else{ }else{
let URL = this.router.url; let URL = this.router.url;

View File

@ -10,8 +10,8 @@ export const environment = {
// apiEndpoint:'http://192.168.1.20:8080/api/', // apiEndpoint:'http://192.168.1.20:8080/api/',
// apiEndpoint:'https://api.venbait.in/api/', // apiEndpoint:'https://api.venbait.in/api/',
// apiEndpoint:'http://venbainfotech.com:5000/api/', // apiEndpoint:'http://venbainfotech.com:5000/api/',
// apiEndpoint:'http://192.168.1.8:8080/api/', // apiEndpoint:'http://192.168.1.8:8080/api/',
apiEndpoint:'https://api.venbait.in/api/', apiEndpoint:'https://api.venbait.in/api/',
//EndUser URL //EndUser URL
endUserUrl:'https://venbainfotech.com/appointment/#/customer/', endUserUrl:'https://venbainfotech.com/appointment/#/customer/',