客户表单附件
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user