edit
This commit is contained in:
@ -10,6 +10,7 @@ import { Injectable, Injector } from '@angular/core';
|
||||
import { cacheConf } from '@conf/cache.conf';
|
||||
import { _HttpClient } from '@delon/theme';
|
||||
import { EACacheService, ShipperBaseService } from '@shared';
|
||||
import { NzImageService } from 'ng-zorro-antd/image';
|
||||
import { NzModalService } from 'ng-zorro-antd/modal';
|
||||
import { ImageViewComponent } from 'src/app/shared/components/imagelist';
|
||||
@Injectable({
|
||||
@ -144,7 +145,12 @@ export class UsermanageService extends ShipperBaseService {
|
||||
// 查询司机配置列表
|
||||
$api_configPage = '/api/mdc/cuc/driver/list/configPage';
|
||||
|
||||
constructor(public injector: Injector, private nzModalService: NzModalService, public eaCacheSrv: EACacheService) {
|
||||
constructor(
|
||||
public injector: Injector,
|
||||
private nzModalService: NzModalService,
|
||||
public eaCacheSrv: EACacheService,
|
||||
private nzImageService: NzImageService
|
||||
) {
|
||||
super(injector, eaCacheSrv);
|
||||
}
|
||||
|
||||
@ -153,6 +159,7 @@ export class UsermanageService extends ShipperBaseService {
|
||||
imgList: [url],
|
||||
index: 0
|
||||
};
|
||||
this.nzModalService.create({ nzContent: ImageViewComponent, nzComponentParams: { params } });
|
||||
this.nzImageService.preview([{ src: url }]);
|
||||
// this.nzModalService.create({ nzContent: ImageViewComponent, nzComponentParams: { params } });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user