|
|
@@ -93,8 +93,8 @@
|
|
|
this.importloading = false
|
|
|
} else {
|
|
|
this.$message({
|
|
|
- duration: 10000,
|
|
|
- type: 'warning',
|
|
|
+ duration: 10000,
|
|
|
+ type: 'warning',
|
|
|
message: '查无数据!'
|
|
|
})
|
|
|
this.importloading = false
|
|
|
@@ -102,8 +102,8 @@
|
|
|
})
|
|
|
} else if (this.Excelurl == '') {
|
|
|
this.$message({
|
|
|
- duration: 10000,
|
|
|
- type: 'warning',
|
|
|
+ duration: 10000,
|
|
|
+ type: 'warning',
|
|
|
message: '获取文件地址错误!'
|
|
|
})
|
|
|
this.importloading = false
|
|
|
@@ -125,16 +125,16 @@
|
|
|
_this.Excelurl = option.action
|
|
|
} else {
|
|
|
_this.$message({
|
|
|
- duration: 10000,
|
|
|
- type: 'warning',
|
|
|
+ duration: 10000,
|
|
|
+ type: 'warning',
|
|
|
message: '未上传成功!请刷新界面重新上传!'
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
.catch(res => {
|
|
|
_this.$message({
|
|
|
- duration: 10000,
|
|
|
- type: 'warning',
|
|
|
+ duration: 10000,
|
|
|
+ type: 'warning',
|
|
|
message: '未上传成功!请重新上传!'
|
|
|
})
|
|
|
})
|
|
|
@@ -143,9 +143,9 @@
|
|
|
beforeAvatarUpload (file) {
|
|
|
if (file.name.indexOf('.xlsx') < 0) {
|
|
|
this.$message.error({
|
|
|
- duration: 10000,
|
|
|
- message: '文件格式必须为.xlsx'
|
|
|
- })
|
|
|
+ duration: 10000,
|
|
|
+ message: '文件格式必须为.xlsx'
|
|
|
+ })
|
|
|
return false
|
|
|
}
|
|
|
return true
|