Jelajahi Sumber

Merge remote-tracking branch 'origin/master'

lmm 2 bulan lalu
induk
melakukan
5bd3875fd5
1 mengubah file dengan 6 tambahan dan 2 penghapusan
  1. 6 2
      src/views/museums/specimeninfo/SpecimenImportForm.vue

+ 6 - 2
src/views/museums/specimeninfo/SpecimenImportForm.vue

@@ -146,13 +146,17 @@ const submitForm = async () => {
 /** 文件上传成功 */
 const emits = defineEmits(['success'])
 const submitFormSuccess = (response: any) => {
-  if (response.code !== 0) {
+
+  console.log(response.data.code != 0 , response.data.code)
+  if (response.data.code != 0) {
     message.error(response.msg)
     formLoading.value = false
     return
   }
   // 拼接提示语
-  const data = response.data
+
+  const data = response.data.data
+  console.log(data)
   let text = '上传成功数量:' + data.createSpecimenNumbers.length + ';'
   for (let specimenInfodata of data.createSpecimenNumbers) {
     text += '标本编号:' + specimenInfodata + '、'