File was renamed from src/app/routes/systems/organization/organization.service.ts |
| | |
| | | import { ExampleService } from './../../../core/services/example.service'; |
| | | import { Organization } from '@business/entity/data'; |
| | | import { ExampleService } from '@business/services/util/example.service'; |
| | | import { _HttpClient } from '@delon/theme'; |
| | | import { environment } from './../../../../environments/environment'; |
| | | import { environment } from 'environments/environment'; |
| | | import { RouteConfigLoadStart } from '@angular/router'; |
| | | import { Injectable } from '@angular/core'; |
| | | import { equal } from 'assert'; |
| | | import { Observable } from 'rxjs/Observable'; |
| | | import { PageBean } from '@core/entity/grid'; |
| | | import { PageBean } from '@business/entity/grid'; |
| | | |
| | | |
| | | @Injectable() |
| | | export class OrganizationService { |
| | | handle: 'list'|'config' = 'list'; |
| | | |
| | | data: Organization; |
| | | title: '组织列表'|'组织配置' = '组织列表'; |
| | | private urls = { |
| | | edit: environment.SERVER_BASH_URL + '/organization/page-list', |
| | | save: environment.SERVER_BASH_URL + '/organization/add-or-modify', |
| | |
| | | if (queryText != null && queryText !== '') { |
| | | example.or().andLike({name: 'name', value: '%' + queryText + '%'}); |
| | | } |
| | | let orderByClause = ''; |
| | | if ( page.getOrderByClause != null && page.getOrderByClause instanceof Function) { |
| | | orderByClause = page.getOrderByClause(); |
| | | } |
| | | const param: PageBean = {pageSize: page.pageSize, pageIndex: page.pageIndex, |
| | | queryParams: example.getSqlParam(), orderByClause: page.getOrderByClause()}; |
| | | queryParams: example.getSqlParam(), orderByClause: orderByClause}; |
| | | return this.http.get(this.urls.edit, param); |
| | | } |
| | | public save(data: any): Observable<any> { |