|
|
@@ -226,9 +226,11 @@
|
|
|
</div>
|
|
|
<el-button type="primary" link @click="downloadImportFailedData(importModifyCallback)">下载导入失败文件</el-button>
|
|
|
</div>
|
|
|
+ <div v-if="uploadMsg" class="text-red">上传错误信息:{{ uploadMsg }}</div>
|
|
|
+
|
|
|
<template #footer>
|
|
|
- <el-button class="border-[#0083FF] color-[#0083FF]" plain @click="batchShow = false">取消</el-button>
|
|
|
- <el-button type="primary" @click="batchShow = false">确定</el-button>
|
|
|
+ <el-button class="border-[#0083FF] color-[#0083FF]" plain @click="batchShow = false,uploadMsg = null">取消</el-button>
|
|
|
+ <el-button type="primary" @click="batchShow = false,uploadMsg = null">确定</el-button>
|
|
|
</template>
|
|
|
</el-dialog>
|
|
|
<el-image-viewer v-if="imageShow" :url-list="[bigImageUrl]" @close="imageShow = false" />
|
|
|
@@ -386,6 +388,7 @@ const downloadTemplate = () => {
|
|
|
})
|
|
|
}
|
|
|
let importModifyCallback = ref()// 导入数据回调
|
|
|
+let uploadMsg = ref(null);//上传失败信息
|
|
|
const uploadJYFile = async (file) => {
|
|
|
let files = file.raw
|
|
|
const params = new FormData(); // 声明formData数据类型
|
|
|
@@ -407,10 +410,8 @@ const uploadJYFile = async (file) => {
|
|
|
type: 'success'
|
|
|
})
|
|
|
}else{
|
|
|
- ElMessage({
|
|
|
- message: msg,
|
|
|
- type: 'error'
|
|
|
- })
|
|
|
+ uploadMsg.value = msg
|
|
|
+ console.log(uploadMsg.value)
|
|
|
}
|
|
|
}
|
|
|
const getSummaries = (param) => {
|