BaseService.postN('/managew/api/bls/card/cardImport', { excelUrl: url }).then((res: any) => { | BaseService.postN('/managew/api/bls/card/cardImport', { excelUrl: url }).then((res: any) => { | ||||
if (res && res.code === 0) { | if (res && res.code === 0) { | ||||
console.log(res) | console.log(res) | ||||
const errUrl = res.data?.path ?? '' | |||||
const errUrl = res.data?.excelUrl ?? '' | |||||
if (errUrl) { | if (errUrl) { | ||||
ElMessage.error("导入失败,请查看下载到本地文件的具体错误信息"); | ElMessage.error("导入失败,请查看下载到本地文件的具体错误信息"); | ||||
BaseService.getDownload( | BaseService.getDownload( |
BaseService.postN('/managew/api/bls/obu/obuImport', { excelUrl: url }).then((res: any) => { | BaseService.postN('/managew/api/bls/obu/obuImport', { excelUrl: url }).then((res: any) => { | ||||
if (res && res.code === 0) { | if (res && res.code === 0) { | ||||
console.log(res) | console.log(res) | ||||
const errUrl = res.data?.path ?? '' | |||||
const errUrl = res.data?.excelUrl ?? '' | |||||
if (errUrl) { | if (errUrl) { | ||||
ElMessage.error("导入失败,请查看下载到本地文件的具体错误信息"); | ElMessage.error("导入失败,请查看下载到本地文件的具体错误信息"); | ||||
BaseService.getDownload( | BaseService.getDownload( |