Newer
Older
import {HttpClient} from '@angular/common/http';
import {Observable} from 'rxjs/Rx';
import {Injectable} from '@angular/core';
import {CommonService} from '../shared/common/common.service';
import {LocalStorageService, SessionStorageService} from 'ngx-webstorage';
@Injectable()
export class SystemChangeService {
headers;
options;
constructor(private http: HttpClient, private commonSer: CommonService,
private localStorage: LocalStorageService, private sessionStorage: SessionStorageService) {
}
//分页查询
sysChangePage(data): Observable<any> {
return this.http.post(SERVER_API_URL + '/sysChange/page', data);
return this.http.post(SERVER_API_URL + '/sysChange/save', data);
return this.http.post(SERVER_API_URL + '/sysChange/check', data);
return this.http.get(SERVER_API_URL + '/sysChange/export?' + this.commonSer.toQuery(data),{responseType:'blob'});
return this.http.get(SERVER_API_URL + '/sysChange/findMsg/' + params);
return this.http.get(SERVER_API_URL + '/sysChange/find/' + params);
return this.http.post(SERVER_API_URL + '/sysChange/update', data);
return this.http.post(SERVER_API_URL + '/sysChange/transfer', data);
//处理变更
sysChangeFinish(data): Observable<any> {
return this.http.post(SERVER_API_URL + '/sysChange/finish', data);
}
//删除变更
sysChangeDelete(data): Observable<any> {
return this.http.post(SERVER_API_URL + '/sysChange/delete', data);
}
return this.http.post(SERVER_API_URL + '/sysdict/update', data);
return this.http.get(SERVER_API_URL + '/sysdict/findByType/' + params);
return this.http.post(SERVER_API_URL + '/sysdict/delete', data);