文件服务修改

This commit is contained in:
zhujiyan
2024-10-11 09:25:36 +08:00
parent 52bac41b68
commit 328837eb31
2 changed files with 158 additions and 139 deletions

View File

@@ -6,9 +6,10 @@
<div class="progress_left">
正在下载
{{
fileData?.prjDataPath
? fileData?.prjDataPath.split('/')[fileData?.prjDataPath.split('/').length - 1]
: '/'
// fileData?.prjDataPath
// ? fileData?.prjDataPath.split('/')[fileData?.prjDataPath.split('/').length - 1]
// : '/'
fileName
}}
</div>
<div class="progress_right">
@@ -125,8 +126,10 @@ const handleDownLoad = () => {
onMounted(() => {})
onUnmounted(() => {})
const status = ref(0)
const fileName=ref('')
const setStatus = (val: any) => {
status.value = val
status.value = parseInt(Number((val.nowStep / val.allStep) * 100))
fileName.value = val.fileName
}
defineExpose({ open, setStatus })
</script>