lifanagju_citu 2 недель назад
Родитель
Сommit
d4705ae582
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      src/views/menduner/system/talentMap/maintenance/gather/index.vue

+ 4 - 4
src/views/menduner/system/talentMap/maintenance/gather/index.vue

@@ -80,7 +80,7 @@
             v-model:file-list="fileList"
             :action="uploadUrl"
             :auto-upload="false"
-            :data="data"
+            :data="fileData"
             :limit="1"
             :on-change="handleChange"
             :on-error="submitFormError"
@@ -452,10 +452,10 @@ const handleAnalysis = async () => {
 const fileUrl = ref('') // https://minio.menduner.com/dev/person/229988673960153088/attachment/ee3eb21f45e13ede3557a03d18585ed80c5b4212ac5634e3436e309afaa8fe6a.pdf
 const uploadRef = ref()
 const fileList = ref([])
-const data = ref({ path: '' })
+const fileData = ref({ path: '' })
 // 文件上传
 const handleChange = async (file) => {
-  data.value.path = file.name
+  fileData.value.path = file.name
   unref(uploadRef)?.submit()
   if (!fileList.value.length) return
 
@@ -490,7 +490,7 @@ const handleText = () => {
 const handleResetUpload = async () => {
   await message.confirm('是否确定重新上传简历?确定后将清空当前信息')
   fileUrl.value = ''
-  data.value.path = ''
+  fileData.value.path = ''
   fileList.value = []
   resumeAnalysisToForm('reset') // 简历解析
 }