fix bug
This commit is contained in:
@ -92,7 +92,7 @@ export class CarAddDriverComponent implements OnInit {
|
||||
title: '',
|
||||
ui: {
|
||||
offsetControl: 6,
|
||||
action: apiConf.fileUpload,
|
||||
action: apiConf.waterFileUpload,
|
||||
accept: 'image/png,image/jpeg,image/jpg,image/gif',
|
||||
limit: 1,
|
||||
limitFileCount: 1,
|
||||
@ -108,6 +108,18 @@ export class CarAddDriverComponent implements OnInit {
|
||||
listType: 'picture-card',
|
||||
change: (args: any) => {
|
||||
if (args.type === 'success') {
|
||||
const avatar = [
|
||||
{
|
||||
uid: -1,
|
||||
name: 'LOGO',
|
||||
status: 'done',
|
||||
url: args.file.response.data.fullFileWatermarkPath,
|
||||
response: {
|
||||
url: args.file.response.data.fullFileWatermarkPath,
|
||||
},
|
||||
},
|
||||
];
|
||||
this.sf?.setValue('/certificatePhotoFrontWatermark', avatar);
|
||||
this.detailData.certificatePhotoFront = args.file.response.data.fullFilePath
|
||||
this.checkIdCard(args.file.response.data.fullFilePath, 'front', 0);
|
||||
} else {
|
||||
@ -142,7 +154,7 @@ export class CarAddDriverComponent implements OnInit {
|
||||
title: '',
|
||||
ui: {
|
||||
offsetControl: 6,
|
||||
action: apiConf.fileUpload,
|
||||
action: apiConf.waterFileUpload,
|
||||
accept: 'image/png,image/jpeg,image/jpg,image/gif',
|
||||
limit: 1,
|
||||
limitFileCount: 1,
|
||||
@ -158,6 +170,18 @@ export class CarAddDriverComponent implements OnInit {
|
||||
listType: 'picture-card',
|
||||
change: (args: any) => {
|
||||
if (args.type === 'success') {
|
||||
const avatar = [
|
||||
{
|
||||
uid: -1,
|
||||
name: 'LOGO',
|
||||
status: 'done',
|
||||
url: args.file.response.data.fullFileWatermarkPath,
|
||||
response: {
|
||||
url: args.file.response.data.fullFileWatermarkPath,
|
||||
},
|
||||
},
|
||||
];
|
||||
this.sf?.setValue('/certificatePhotoBackWatermark', avatar);
|
||||
this.detailData.certificatePhotoBack = args.file.response.data.fullFilePath
|
||||
this.checkIdCard(args.file.response.data.fullFilePath, 'back', 0);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user