客户表单附件

This commit is contained in:
‘huanghaiixia’
2025-12-01 16:55:28 +08:00
parent b1cd0a5168
commit 3232319675
6 changed files with 85 additions and 86 deletions

View File

@ -69,9 +69,9 @@
<upload-outlined />
点击上传
</a-button>
<div v-if="VITE_GLOB_UPLOAD_ALERT_TIP?.trim()" style="color: red; margin-top: 8px">
<!-- <div v-if="VITE_GLOB_UPLOAD_ALERT_TIP?.trim()" style="color: red; margin-top: 8px">
{{ VITE_GLOB_UPLOAD_ALERT_TIP }}
</div>
</div> -->
</div>
<template #itemRender="{ file, actions }">
@ -213,10 +213,11 @@
x.status = 'done'; //没有则不会展示下载按钮
x.url = x.fileUrl;
x.thumbUrl = x.thUrl;
x.fileSize = x.fileSize
});
emit('update:value', folderId.value);
emit('change');
emit('change', fileList.value);
loading.value = false;
} catch (error) {
console.error(error);
@ -379,6 +380,12 @@
downloadByUrl({ url: res.url, fileName: res.name || 'files.zip' });
}
}
function getValue () {
return fileList.value
}
defineExpose({
getValue
});
</script>
<style lang="less" scoped>
.list-upload {