Default Changelist

pull/1/head
袁野 3 years ago
parent 209459d4de
commit a9169f5cdc
  1. 2
      src/app/admin/system/system-routing.module.ts
  2. 3
      src/app/admin/system/system.module.ts
  3. 50
      src/app/services/commons.service.ts

@ -9,6 +9,7 @@ import {MenuComponent} from './menu/menu.component';
import {PositionRelComponent} from './position-rel/position-rel.component';
import {SinopecConfigComponent} from './sinopec-config/sinopec-config.component';
import {SinopecEditComponent} from './sinopec-edit/sinopec-edit.component';
import {OilsDiscountComponent} from './oils-discount/oils-discount.component';
const routes: Routes = [
{ path: 'systemorganization', component: SystemOrganizationComponent},
@ -20,6 +21,7 @@ const routes: Routes = [
{ path: 'positionrel', component: PositionRelComponent },
{ path: 'sinopec-config', component: SinopecConfigComponent },
{ path: 'sinopec-edit', component: SinopecEditComponent },
{ path: 'oils-discount', component: OilsDiscountComponent },
];
@NgModule({

@ -18,8 +18,9 @@ import { PositionRelComponent } from './position-rel/position-rel.component';
import {AppCommonModule} from '../../app-common.module';
import { SinopecConfigComponent } from './sinopec-config/sinopec-config.component';
import { SinopecEditComponent } from './sinopec-edit/sinopec-edit.component';
import { OilsDiscountComponent } from './oils-discount/oils-discount.component';
@NgModule({
declarations: [SystemOrganizationComponent, SystemRoleComponent, SystemRoleShowComponent, SystemUserComponent, MenuComponent, PermissionComponent, PositionRelComponent, SinopecConfigComponent, SinopecEditComponent],
declarations: [SystemOrganizationComponent, SystemRoleComponent, SystemRoleShowComponent, SystemUserComponent, MenuComponent, PermissionComponent, PositionRelComponent, SinopecConfigComponent, SinopecEditComponent, OilsDiscountComponent],
imports: [
CommonModule,
SystemRoutingModule,

@ -294,4 +294,54 @@ export class CommonsService {
callback(data);
});
}
/**
*
*
* @param params
* @param callBack
* @return data
*/
public editGasDiscountOilPrice(params: object, callBack) {
this.http.post(environment.baseUrl + 'highGasDiscountOilPrice/editGasDiscountOilPrice', params).subscribe(data => {
callBack(data);
});
}
/**
*
*
* @param paramsObject
* @param callBack
*/
public getList(paramsObject: object, callBack) {
this.http.get(environment.baseUrl + 'highGasDiscountOilPrice/getList?' + this.getWhereCondition(paramsObject)).subscribe(data => {
callBack(data);
});
}
/**
* estateId
*
* @param id id
* @param callBack
*/
public getDetailById(id: number , callBack) {
this.http.get(environment.baseUrl + 'highGasDiscountOilPrice/getDetailById?id=' + id).subscribe(data => {
callBack(data);
});
}
/**
* estateId
*
* @param id id
* @param callBack
*/
public delete(id: number , callBack) {
this.http.post(environment.baseUrl + 'highGasDiscountOilPrice/delete' , { id: id}).subscribe(data => {
callBack(data);
});
}
}

Loading…
Cancel
Save