edit
This commit is contained in:
@ -19,6 +19,7 @@ import { NzModalService } from 'ng-zorro-antd/modal';
|
||||
import { apiConf } from '@conf/api.conf';
|
||||
import { ImageViewComponent } from 'src/app/shared/components/imagelist';
|
||||
import { NzCascaderOption } from 'ng-zorro-antd/cascader';
|
||||
import { NzImageService } from 'ng-zorro-antd/image';
|
||||
@Component({
|
||||
selector: 'app-Freight-components-EnterpriseAudit-view',
|
||||
templateUrl: './view.component.html',
|
||||
@ -49,7 +50,12 @@ export class FreightComponentsEnterpriseAuditViewComponent implements OnInit {
|
||||
|
||||
values: string[] | null = null;
|
||||
ltdId: any[] = [];
|
||||
constructor(private nzModalService: NzModalService, public service: UsermanageService, private route: ActivatedRoute) {}
|
||||
constructor(
|
||||
private nzModalService: NzModalService,
|
||||
public service: UsermanageService,
|
||||
private route: ActivatedRoute,
|
||||
private nzImageService: NzImageService
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.initData();
|
||||
@ -127,7 +133,8 @@ export class FreightComponentsEnterpriseAuditViewComponent implements OnInit {
|
||||
imgList: [url],
|
||||
index: 0
|
||||
};
|
||||
this.nzModalService.create({ nzContent: ImageViewComponent, nzComponentParams: { params } });
|
||||
this.nzImageService.preview([{ src: url }]);
|
||||
// this.nzModalService.create({ nzContent: ImageViewComponent, nzComponentParams: { params } });
|
||||
}
|
||||
|
||||
deleteImg(key: string) {
|
||||
|
||||
Reference in New Issue
Block a user