fix bug
This commit is contained in:
@ -19,7 +19,7 @@ export class InsuranceTableComponent implements OnInit {
|
||||
ui!: SFUISchema;
|
||||
|
||||
formatterDollar = (value: number): string => `${value} (含)`;
|
||||
price: number = 0;
|
||||
minInsurancePrice: number = 0;
|
||||
changeSub = new Subject<string>();
|
||||
constructor(public service: BaseService, private cdr: ChangeDetectorRef) {}
|
||||
|
||||
@ -27,7 +27,7 @@ export class InsuranceTableComponent implements OnInit {
|
||||
this.loadData();
|
||||
this.initSF()
|
||||
this.changeEndKmAction();
|
||||
this.price = 1000
|
||||
this.minInsurancePrice = 1000
|
||||
}
|
||||
|
||||
loadData() {
|
||||
@ -38,6 +38,14 @@ export class InsuranceTableComponent implements OnInit {
|
||||
this.cdr.detectChanges();
|
||||
}
|
||||
});
|
||||
this.service.request('/api/mdc/pbc/sysConfigItem/findItemValueByItemKeys', [
|
||||
"insurance.config.minInsurancePrice"
|
||||
]).subscribe(res => {
|
||||
if (res) {
|
||||
console.log(res);
|
||||
this.minInsurancePrice = Number(res[0].itemValue)
|
||||
}
|
||||
});
|
||||
}
|
||||
initSF() {
|
||||
this.schema = {
|
||||
@ -143,15 +151,20 @@ export class InsuranceTableComponent implements OnInit {
|
||||
|
||||
save() {
|
||||
console.log(this.data);
|
||||
console.log(this.price);
|
||||
console.log(this.minInsurancePrice);
|
||||
console.log(this.sf.value);
|
||||
// this.service.request('/api/mdc/cuc/freightConfig/saveBatch', this.data).subscribe(res => {
|
||||
// if (res) {
|
||||
// console.log(res);
|
||||
// this.service.msgSrv.success('修改成功');
|
||||
// this.loadData();
|
||||
// }
|
||||
// });
|
||||
let params= {
|
||||
minInsurancePrice: this.minInsurancePrice,
|
||||
insuranceConfigDTOS: this.data
|
||||
}
|
||||
console.log(params);
|
||||
this.service.request('/api/mdc/cuc/insuranceConfig/saveBatch', params).subscribe(res => {
|
||||
if (res) {
|
||||
console.log(res);
|
||||
this.service.msgSrv.success('修改成功');
|
||||
this.loadData();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user