From 4a4c11c1d1ac7d0eb255678f7c96d06363e168ab Mon Sep 17 00:00:00 2001 From: DYL0109 <1332079466@qq.com> Date: 星期三, 22 一月 2025 17:35:34 +0800 Subject: [PATCH] !38 添加节能项目管理和政策法规页面 Merge pull request !38 from 张嘉伟/zcc_dev --- zhitan-vue/src/components/FileUpload/index.vue | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/zhitan-vue/src/components/FileUpload/index.vue b/zhitan-vue/src/components/FileUpload/index.vue index 4b76324..488d3ee 100644 --- a/zhitan-vue/src/components/FileUpload/index.vue +++ b/zhitan-vue/src/components/FileUpload/index.vue @@ -55,7 +55,7 @@ // 鏂囦欢绫诲瀷, 渚嬪['png', 'jpg', 'jpeg'] fileType: { type: Array, - default: () => ["doc", "xls", "ppt", "txt", "pdf"], + default: () => ["doc", "xls", "ppt", "txt", "pdf","docx"], }, // 鏄惁鏄剧ず鎻愮ず isShowTip: { @@ -147,7 +147,7 @@ // 鍒犻櫎鏂囦欢 function handleDelete(index) { fileList.value.splice(index, 1); - emit("update:modelValue", listToString(fileList.value)); + emit("update:modelValue", fileList.value); } // 涓婁紶缁撴潫澶勭悊 @@ -156,7 +156,8 @@ fileList.value = fileList.value.filter(f => f.url !== undefined).concat(uploadList.value); uploadList.value = []; number.value = 0; - emit("update:modelValue", listToString(fileList.value)); + console.log(fileList.value) + emit("update:modelValue", fileList.value); proxy.$modal.closeLoading(); } } -- Gitblit v1.9.3