|
@@ -14,7 +14,7 @@
|
|
|
ref="upload"
|
|
|
>
|
|
|
<!-- 上传按钮 -->
|
|
|
- <el-button size="mini" type="primary" class="select_file" @blur.native="choose">选取文件</el-button>
|
|
|
+ <el-button size="mini" type="primary" class="select_file">选取文件</el-button>
|
|
|
<!-- 上传提示 -->
|
|
|
<div class="el-upload__tip" slot="tip" v-if="showTip">
|
|
|
请上传
|
|
@@ -111,10 +111,6 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
- choose() {
|
|
|
- console.log(this.names, 5555)
|
|
|
- this.$emit("names", this.fileList)
|
|
|
- },
|
|
|
// 上传前校检格式和大小
|
|
|
handleBeforeUpload(file) {
|
|
|
// 校检文件类型
|
|
@@ -154,8 +150,7 @@ export default {
|
|
|
// 上传成功回调
|
|
|
handleUploadSuccess(res, file) {
|
|
|
this.$message.success("上传成功");
|
|
|
- this.fileList.push({name: file.name, url: res.fileName,});
|
|
|
- console.log(this.fileList)
|
|
|
+ this.fileList.push({name: file.name, url: res.fileName,pageCount:res.pageCount,houZUI:res.houZUi,fileLength:res.fileLength});
|
|
|
this.$emit("input", this.fileList);
|
|
|
},
|
|
|
// 删除文件
|