🐛fix导入失败没提示
This commit is contained in:
parent
452fb89dc3
commit
f5da308123
@ -11,6 +11,7 @@
|
||||
:disabled="isUploading"
|
||||
:on-progress="handleFileUploadProgress"
|
||||
:on-success="handleFileSuccess"
|
||||
:on-error="handleFileError"
|
||||
:auto-upload="true">
|
||||
<el-button type="primary" icon="Upload">上传文件</el-button>
|
||||
|
||||
@ -66,7 +67,9 @@ const handleFileSuccess = (response, file, fileList) => {
|
||||
emit('success', response)
|
||||
}
|
||||
}
|
||||
|
||||
const handleFileError = function (error) {
|
||||
proxy.$modal.msgError('导入数据失败,原因:' + error)
|
||||
}
|
||||
function importTemplate() {
|
||||
proxy.downFile(props.templateUrl)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user