|
@@ -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 + '、'
|