Merge branch 'dev-lijianqi20250709' into 'dev'
签章图片修改处理BUG See merge request itc-framework/ma/2024/front!102
This commit is contained in:
@ -241,24 +241,22 @@
|
||||
}
|
||||
}
|
||||
async function submit() {
|
||||
let valid = await onCheck();
|
||||
let res = false;
|
||||
if (valid) {
|
||||
if (data.info.fileType === StampFileTypeAttributes.UPLOAD_PICTURES) {
|
||||
if (!data.photoUrl) {
|
||||
message.error(t('照片未上传'));
|
||||
return false;
|
||||
} else {
|
||||
data.info.fileUrl = data.photoUrl;
|
||||
}
|
||||
} else {
|
||||
if (!data.signUrl) {
|
||||
message.error(t('签名未上传'));
|
||||
return false;
|
||||
} else {
|
||||
data.info.fileUrl = data.signUrl;
|
||||
}
|
||||
}
|
||||
let valid = await onCheck();
|
||||
let res = false;
|
||||
if (valid) {
|
||||
if (data.info.fileType === StampFileTypeAttributes.UPLOAD_PICTURES) {
|
||||
if (!data.photoUrl) {
|
||||
message.error(t('照片未上传'));
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
if (!data.signUrl) {
|
||||
message.error(t('签名未上传'));
|
||||
return false;
|
||||
} else {
|
||||
data.info.fileUrl = data.signUrl;
|
||||
}
|
||||
}
|
||||
try {
|
||||
if (props.id) {
|
||||
res = await putStamp(props.id, props.type, data.info);
|
||||
|
||||
Reference in New Issue
Block a user