|
@@ -156,7 +156,7 @@
|
|
|
<a-upload
|
|
|
name="file"
|
|
|
:file-list="fileList"
|
|
|
- :customRequest="customRequest"
|
|
|
+ :customRequest="handleCustomRequest"
|
|
|
:remove="handleRemoveUpload"
|
|
|
>
|
|
|
<a-button><a-icon type="upload"/>文件上传</a-button>
|
|
@@ -741,7 +741,7 @@ export default {
|
|
|
console.log(error, 'eeee');
|
|
|
});
|
|
|
},
|
|
|
- customRequest(info) {
|
|
|
+ handleCustomRequest(info) {
|
|
|
const isZip = info.file.name.indexOf('xlsx') !== -1 || info.file.name.indexOf('xls') !== -1;
|
|
|
if (!isZip) {
|
|
|
this.$message.error('上传模板只能是 xls、xlsx格式!');
|
|
@@ -758,14 +758,6 @@ export default {
|
|
|
newUploadFile.splice(index, 1);
|
|
|
this.fileList = newUploadFile;
|
|
|
},
|
|
|
- // handleChange(info) {
|
|
|
- // const isZip = info.file.name.indexOf('xlsx') !== -1 || info.file.name.indexOf('xls') !== -1;
|
|
|
- // if (!isZip) {
|
|
|
- // this.$message.error('上传模板只能是 xls、xlsx格式!');
|
|
|
- // return;
|
|
|
- // }
|
|
|
- // this.fileList = info.fileList;
|
|
|
- // },
|
|
|
handleSearchMaster() {
|
|
|
this.hendleMaterialInfo();
|
|
|
},
|