|
@@ -16,19 +16,19 @@ export class DashboardService {
|
|
|
private authService: AuthServiceService,
|
|
|
private spinner: NgxSpinnerService) { }
|
|
|
|
|
|
- //get hospitals list
|
|
|
+ //get hospitals list
|
|
|
getListData(pageId: number, currentPage: number, dataTableNumber: number){
|
|
|
this.spinner.show();
|
|
|
console.log(this.authService.pathApi +'/page_list/' + pageId + '/' + currentPage + '/' + dataTableNumber + '/all');
|
|
|
return this.http.get(this.authService.pathApi +'/page_list/' + pageId + '/' + currentPage + '/' + dataTableNumber + '/all');
|
|
|
}
|
|
|
-
|
|
|
- //get data user from searchBar
|
|
|
+
|
|
|
+ //get data user from searchBar
|
|
|
getDataUSerSearchBar(data, pageId, pagenationNumber, dataTableNumber) {
|
|
|
console.log('url', this.authService.pathApi + '/page_list' + '/' + pageId + '/' + pagenationNumber + '/' + dataTableNumber + '/all/' + data);
|
|
|
return this.http.get(this.authService.pathApi + '/page_list' + '/' + pageId + '/' + pagenationNumber + '/' + dataTableNumber + '/all/' + data);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//addEvent
|
|
|
addItem(data, addType) {
|
|
|
if(addType == 'advertisiment'){
|
|
@@ -71,7 +71,7 @@ export class DashboardService {
|
|
|
return this.http.post(this.authService.pathApi + "/add_advertising_service", data);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//edit event
|
|
|
editItem(editId,dataEdit,editPageName){
|
|
|
const editData = dataEdit;
|
|
@@ -129,7 +129,7 @@ export class DashboardService {
|
|
|
return this.http.post(this.authService.pathApi + '/edit_advertising_service', editData);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//get event data
|
|
|
getItemData(pageId: number, typeGetData:string) {
|
|
|
console.log('wwwwwwwwwwwwwwwwwwwwwwwwwwww', pageId);
|
|
@@ -163,10 +163,10 @@ export class DashboardService {
|
|
|
return this.http.get(this.authService.pathApi + '/get_advertising_service/' + pageId);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- //delete event
|
|
|
+
|
|
|
+ //delete event
|
|
|
deleteItem(dataIds, pageId) {
|
|
|
-
|
|
|
+
|
|
|
console.log(dataIds);
|
|
|
console.log(pageId);
|
|
|
|
|
@@ -209,7 +209,7 @@ export class DashboardService {
|
|
|
} else if (pageId == 22){
|
|
|
return this.http.post(this.authService.pathApi + '/delete_advertising_services' , {'advertising_services_id' : dataIds});
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
};
|
|
|
|
|
|
|