This commit is contained in:
parent
2d9f13ea59
commit
bbf6fb0631
|
@ -584,7 +584,8 @@ export default {
|
||||||
this.quotXjFileLoading = true;
|
this.quotXjFileLoading = true;
|
||||||
let activeName = this.activeName;
|
let activeName = this.activeName;
|
||||||
if(activeName=='quotXjFile'){
|
if(activeName=='quotXjFile'){
|
||||||
if(file.name.split('.')[1].toLowerCase() != 'xls' && file.name.split('.')[1].toLowerCase() != 'xlsx'){
|
const fileExtension = file.name.split('.').pop();
|
||||||
|
if(fileExtension.toLowerCase() != 'xls' && fileExtension.toLowerCase() != 'xlsx'){
|
||||||
this.$modal.msgError("清单附件必须是Excel格式");
|
this.$modal.msgError("清单附件必须是Excel格式");
|
||||||
this.quotXjFileLoading = false;
|
this.quotXjFileLoading = false;
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue