This commit is contained in:
wangshiming
2022-02-17 14:33:28 +08:00
parent 7ebf38bc1f
commit 825a3deea6
4 changed files with 23 additions and 10 deletions

View File

@ -8,6 +8,8 @@ import { of } from 'rxjs';
import { ShipperBaseService } from '@shared';
import { Router } from '@angular/router';
import { InsuranceManagementService } from '../../services/insurance-management.service';
import { VehicleImgViewComponent } from 'src/app/routes/vehicle/components/list/img-view/img-view.component';
import { ImageViewComponent } from 'src/app/shared/components/imagelist';
@Component({
selector: 'app-insurance-management-list',
@ -60,7 +62,8 @@ export class insuranceManagementListComponent implements OnInit {
public service: InsuranceManagementService,
private modal: NzModalService,
public shipperservice: ShipperBaseService,
private router: Router
private router: Router,
private modale: ModalHelper,
) {}
/**
@ -443,7 +446,7 @@ export class insuranceManagementListComponent implements OnInit {
},
{
text: '查看保单',
click: _record => console.log('')
click: _record => this.showImg(_record)
// iif: item =>
// item.billStatus == '4' || item.billStatus == '5' || item.billStatus == '2' || item.billStatus == '3' || item.billStatus == '1'
},
@ -455,7 +458,13 @@ export class insuranceManagementListComponent implements OnInit {
}
];
}
showImg(_record: any) {
const params = {
imgList: [_record.policyUrl],
index: 0
};
this.modal.create({ nzContent: ImageViewComponent, nzComponentParams: { params } });
}
/**
* 查询字段个数
*/