From 8716829f6f62cf3b98eebb90cda4b8737e5555af Mon Sep 17 00:00:00 2001
From: ali <ali9696@163.com>
Date: 星期三, 22 一月 2025 17:05:18 +0800
Subject: [PATCH] 计算公式管理去掉编辑等相关操作

---
 zhitan-vue/src/components/FileUpload/index.vue |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/zhitan-vue/src/components/FileUpload/index.vue b/zhitan-vue/src/components/FileUpload/index.vue
index 2af9672..488d3ee 100644
--- a/zhitan-vue/src/components/FileUpload/index.vue
+++ b/zhitan-vue/src/components/FileUpload/index.vue
@@ -40,7 +40,6 @@
 
 <script setup>
 import { getToken } from "@/utils/auth";
-
 const props = defineProps({
   modelValue: [String, Object, Array],
   // 鏁伴噺闄愬埗
@@ -56,7 +55,7 @@
   // 鏂囦欢绫诲瀷, 渚嬪['png', 'jpg', 'jpeg']
   fileType: {
     type: Array,
-    default: () => ["doc", "xls", "ppt", "txt", "pdf"],
+    default: () => ["doc", "xls", "ppt", "txt", "pdf","docx"],
   },
   // 鏄惁鏄剧ず鎻愮ず
   isShowTip: {
@@ -148,7 +147,7 @@
 // 鍒犻櫎鏂囦欢
 function handleDelete(index) {
   fileList.value.splice(index, 1);
-  emit("update:modelValue", listToString(fileList.value));
+  emit("update:modelValue", fileList.value);
 }
 
 // 涓婁紶缁撴潫澶勭悊
@@ -157,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