edit
This commit is contained in:
@ -5,6 +5,7 @@ import { apiConf } from '@conf/api.conf';
|
||||
import { STColumn, STComponent } from '@delon/abc/st';
|
||||
import { SFComponent, SFDateWidgetSchema, SFSchema, SFTagWidgetSchema, SFTextWidgetSchema, SFUISchema } from '@delon/form';
|
||||
import { ModalHelper, _HttpClient } from '@delon/theme';
|
||||
import { NzImageService } from 'ng-zorro-antd/image';
|
||||
import { NzMessageService } from 'ng-zorro-antd/message';
|
||||
import { NzModalService } from 'ng-zorro-antd/modal';
|
||||
import { ImageViewComponent } from 'src/app/shared/components/imagelist';
|
||||
@ -65,7 +66,8 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
|
||||
private nzModalService: NzModalService,
|
||||
public service: UsermanageService,
|
||||
public route: ActivatedRoute,
|
||||
private datePipe: DatePipe
|
||||
private datePipe: DatePipe,
|
||||
private nzImageService: NzImageService
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
@ -423,11 +425,7 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
|
||||
}
|
||||
|
||||
showImg(url: any) {
|
||||
const params = {
|
||||
imgList: [url],
|
||||
index: 0
|
||||
};
|
||||
this.nzModalService.create({ nzContent: ImageViewComponent, nzComponentParams: { params } });
|
||||
this.nzImageService.preview([{ src: url }]);
|
||||
}
|
||||
|
||||
deleteImg(data: any, key: string, key2: string) {
|
||||
|
||||
Reference in New Issue
Block a user