You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
676 B
26 lines
676 B
import { Injectable } from '@angular/core';
|
|
import {HttpClient} from '@angular/common/http';
|
|
import {CommonsService} from './commons.service';
|
|
import {environment} from '../../environments/environment';
|
|
|
|
@Injectable({
|
|
providedIn: 'root'
|
|
})
|
|
export class OrganizationService {
|
|
|
|
constructor(
|
|
private http: HttpClient,
|
|
private common: CommonsService
|
|
) { }
|
|
|
|
/**
|
|
* 查询组织架构列表
|
|
* @param paramObject 参数
|
|
* @param callBack
|
|
*/
|
|
getOrganizationList(companyId: number, callBack) {
|
|
this.http.get(environment.baseUrl + 'bsOrganization/getOrganizationList?companyId=' + companyId).subscribe(data => {
|
|
callBack(data);
|
|
});
|
|
}
|
|
}
|
|
|