fix
Showing
2 changed files
with
6 additions
and
4 deletions
| ... | @@ -405,9 +405,10 @@ const importData = (info) => { | ... | @@ -405,9 +405,10 @@ const importData = (info) => { |
| 405 | // dialogInfo.value.footer.btns.map((item: any) => delete item.disabled) | 405 | // dialogInfo.value.footer.btns.map((item: any) => delete item.disabled) |
| 406 | return | 406 | return |
| 407 | } | 407 | } |
| 408 | let sheetPass = uploadSetting.value.every(item => item.value) | 408 | let sheetPass = uploadSetting.value.some(item => item.value) |
| 409 | if (!sheetPass) { | 409 | if (!sheetPass) { |
| 410 | ElMessage({ type: 'error', message: '请选择sheet页'}) | 410 | ElMessage.error('导入失败,没有导入数据') |
| 411 | dialogInfo.value.visible = false; | ||
| 411 | return | 412 | return |
| 412 | } | 413 | } |
| 413 | let paramUrl = ''; | 414 | let paramUrl = ''; | ... | ... |
| ... | @@ -405,9 +405,10 @@ const importData = (info) => { | ... | @@ -405,9 +405,10 @@ const importData = (info) => { |
| 405 | // dialogInfo.value.footer.btns.map((item: any) => delete item.disabled) | 405 | // dialogInfo.value.footer.btns.map((item: any) => delete item.disabled) |
| 406 | return | 406 | return |
| 407 | } | 407 | } |
| 408 | let sheetPass = uploadSetting.value.every(item => item.value) | 408 | let sheetPass = uploadSetting.value.some(item => item.value) |
| 409 | if (!sheetPass) { | 409 | if (!sheetPass) { |
| 410 | ElMessage({ type: 'error', message: '请选择sheet页'}) | 410 | ElMessage.error('导入失败,没有导入数据') |
| 411 | dialogInfo.value.visible = false; | ||
| 411 | return | 412 | return |
| 412 | } | 413 | } |
| 413 | let paramUrl = ''; | 414 | let paramUrl = ''; | ... | ... |
-
Please register or sign in to post a comment