Commit 7c73fc61 by liuchenxi

update: 上传会员标签

parent 9cc2b407
......@@ -54,6 +54,7 @@ export default {
},
methods: {
tagItemImport() {
console.log(this.filesData);
if(!this.filesData) return this.$message.warning('请上传文件');
// this.$emit('update:visiable', false);
this.$emit('submit', this.filesData, this.$refs.upload);
......@@ -65,6 +66,7 @@ export default {
},
// 点击上传文件、
handleUpload() {
console.log(this.data);
if (this.data.excelData.length !== 0) return;
this.reHandleUpload();
},
......@@ -75,6 +77,7 @@ export default {
// 处理上传的表格
handleFileChange(e) {
const files = e.target.files[0];
console.log(files);
// 校验.xlsx, .xls, .csv格式的文件
const reg = /(\.(xlsx|xls|csv))$/;
if (!files) return;
......
......@@ -344,6 +344,7 @@ export default {
this.$toTaskCenter(res.data.result);
this.flag = false;
} else {
this.flag = false;
errMsg.errorMsg(res.data);
}
})
......@@ -382,6 +383,7 @@ export default {
this.$toTaskCenter(res.data.result);
this.flag = false;
} else {
this.flag = false;
errMsg.errorMsg(res.data);
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment