diff --git a/ng-seed/src/app/appoinment/appoinments/appoinments-list/appoinments-list.component.html b/ng-seed/src/app/appoinment/appoinments/appoinments-list/appoinments-list.component.html index 9fe4215..fe3be01 100644 --- a/ng-seed/src/app/appoinment/appoinments/appoinments-list/appoinments-list.component.html +++ b/ng-seed/src/app/appoinment/appoinments/appoinments-list/appoinments-list.component.html @@ -37,7 +37,7 @@ Appointment Time -
{{element.appoinmentSlots }}
+
{{element.appoinmentSlots }}
diff --git a/ng-seed/src/app/appoinment/appoinments/appoinments-list/appoinments-list.component.ts b/ng-seed/src/app/appoinment/appoinments/appoinments-list/appoinments-list.component.ts index 2c87f65..51c5666 100644 --- a/ng-seed/src/app/appoinment/appoinments/appoinments-list/appoinments-list.component.ts +++ b/ng-seed/src/app/appoinment/appoinments/appoinments-list/appoinments-list.component.ts @@ -63,8 +63,18 @@ export class AppoinmentsListComponent implements OnInit { this._app.getAppoinmentsListDetails().subscribe(res => { if (res.status == 200) { this.appoinmentsList = res.data; + let user_role = localStorage.getItem('user_role'); + if(user_role == 'PRACTITIONER'){ + let id = localStorage.getItem('user_id') + console.log(id) + this.appoinmentsList console.log(this.appoinmentsList) - + + let filter = this.appoinmentsList.filter(arr=>{return arr["ServicesMapDetail.userId"] + == id}) + console.log(filter) + this.appoinmentsList = filter + } } else{ diff --git a/ng-seed/src/app/appoinment/business/business-list/business-list.component.ts b/ng-seed/src/app/appoinment/business/business-list/business-list.component.ts index a2bb14f..8b93e29 100644 --- a/ng-seed/src/app/appoinment/business/business-list/business-list.component.ts +++ b/ng-seed/src/app/appoinment/business/business-list/business-list.component.ts @@ -160,7 +160,19 @@ export class BusinessListComponent implements OnInit { // var d = this.customersList.length+1 console.log(formValue[0]) - this._bus.addFormDetails(formValue[0]).subscribe(res => { + + const formData:FormData = new FormData(); + formData.append('image', formValue[0].logo); + // formData.append('busId', JSON.stringify(formValue[0].busName)); + // formData.append('busName', JSON.stringify(formValue[0].busName)); + + // formData.append('address', JSON.stringify(formValue[0].address)); + // formData.append('state', JSON.stringify(formValue[0].state)); + // formData.append('city', JSON.stringify(formValue[0].city)); + // formData.append('email', JSON.stringify(formValue[0].email)); + // formData.append('contactNo', JSON.stringify(formValue[0].contactNo)); +console.log(formData) + this._bus.addFormDetails(formData).subscribe(res => { if (res.status == 200) { // this.customersList = res.data; this.getBusinessList() diff --git a/ng-seed/src/app/appoinment/business/business-service/business.service.ts b/ng-seed/src/app/appoinment/business/business-service/business.service.ts index 77d638f..03a2154 100644 --- a/ng-seed/src/app/appoinment/business/business-service/business.service.ts +++ b/ng-seed/src/app/appoinment/business/business-service/business.service.ts @@ -19,7 +19,7 @@ export class BusinessService { ) } - addFormDetails(addParams): Observable { + addFormDetails(addParams:any): Observable { return this._http.post(this.apiUrl + 'createBusinessDetails', addParams) // .pipe( // catchError(this.handleError('role', [])) diff --git a/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.html b/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.html index b1472d9..ac28e01 100644 --- a/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.html +++ b/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.html @@ -19,6 +19,10 @@ Profile + + + +
@@ -26,6 +30,7 @@
@@ -41,32 +46,67 @@
- {{practitionerdetails.dob}} + {{practitionerdetails.dob}} + + Date of Birth + + +
- {{practitionerdetails.exp}} + {{practitionerdetails.exp}} + + Experience + + +
-
+
-
-
-
-
-
-
- - - - -
- - - - {{ filterType }} - - - - - - - {{ apiType }} - - - - - add - - - delete - -
-
-
-
-
-
-
-
-
-
-
- - - - -
- - - - {{ filterType }} - - - - - - - {{ apiType }} - - - - - add - - - delete - -
-
-
- -
-
-
-
-
-
-
-
- - - - -
- - - - {{ filterType }} - - - - - - - {{ apiType }} - - - - - add - - - delete - -
-
-
-
-
-
-
-
-
-
-
- - - - -
- - - - {{ filterType }} - - - - - - - {{ apiType }} - - - - - add - - - delete - -
-
-
-
-
-
-
-
-
-
-
- - - - -
- - - - {{ filterType }} - - - - - - - {{ apiType }} - - - - - add - - - delete - -
-
-
-
-
-
-
-
-
-
-
- - - - -
- - - - {{ filterType }} - - - - - - - {{ apiType }} - - - - - add - - - delete - -
-
-
-
-
- + + add + + + delete +
- + - - -
Apply To All
- - -
-
- - - - -
-
-
-
-
-
-
-
-
- -
-
- -
-
-
-
-
-
- + -
-
Apply To All
-
-
-
-
- - - -
-
-
-
-
-
-
-
-
- -
-
- -
-
-
-
+ + +
+ +
+
+
+
+
+
+ + + +
-
- + - + + + + {{ filterType }} + + + + + + + {{ apiType }} + + + + + + + add + + + delete + +
-
Apply To All
-
-
-
-
- - - -
-
-
-
-
- -
-
-
- -
-
- -
-
-
- + + +
+ +
+
+
+
+
+
+ + + +
-
- + - + + + + {{ filterType }} + + + + + + + {{ apiType }} + + + + + + + add + + + delete + +
-
Apply To All
-
-
-
-
- - - -
-
-
-
-
- -
-
-
- -
-
- -
-
-
- + + +
+ +
+
+
+
+
+
+ + + +
-
- + - + + + + {{ filterType }} + + + + + + + {{ apiType }} + + + + + + + add + + + delete + +
-
Apply To All
-
-
-
-
- - - -
-
-
-
-
- -
-
-
- -
-
- -
-
-
- + + +
+ +
+
+
+
+
+
+ + + +
-
- + - + + + + {{ filterType }} + + + + + + + {{ apiType }} + + + + + + + add + + + delete + +
-
Apply To All
-
-
-
-
- - - -
-
-
-
-
- -
-
-
- -
-
- -
-
-
- + + +
+ +
+
+
+
+
+
+ + + +
-
- + - + + + + {{ filterType }} + + + + + + + {{ apiType }} + + + + + + + add + + + delete + +
-
Apply To All
-
-
--> - +
+ + +
+ +