|
@@ -338,6 +338,12 @@ function handleLogoUpload(info: any) {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+function handleLogoRemove() {
|
|
|
|
|
+ formData.value.logo = null;
|
|
|
|
|
+ formData.value.fileId = '';
|
|
|
|
|
+ formData.value.imgLogoFileId = '';
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
async function handleSave() {
|
|
async function handleSave() {
|
|
|
if (!formData.value.fileId) {
|
|
if (!formData.value.fileId) {
|
|
|
message.error($t('applicationManagement.modal.uploadLogo'));
|
|
message.error($t('applicationManagement.modal.uploadLogo'));
|
|
@@ -637,6 +643,7 @@ function resetFormData() {
|
|
|
:max-count="1"
|
|
:max-count="1"
|
|
|
list-type="picture-card"
|
|
list-type="picture-card"
|
|
|
@change="handleLogoUpload"
|
|
@change="handleLogoUpload"
|
|
|
|
|
+ @remove="handleLogoRemove"
|
|
|
>
|
|
>
|
|
|
<div
|
|
<div
|
|
|
class="flex h-[100px] w-[200px] items-center justify-center border-2 border-dashed"
|
|
class="flex h-[100px] w-[200px] items-center justify-center border-2 border-dashed"
|