已经获取到upload上传的文件名, 但是不知道从哪里把文件名的值放在数据类型input的value中html <div class="data_type"> 数据类型: <div class="import_type_input"> <el-input v-model="input" :value="this.file.name"></el-input> <el-upload class="upload-demo" ref="upload" name="excelFile" :action="this.uploadFile" :on-preview="handlePreview" :on-change="handleChange" :auto-upload="false" fa:on-remove="handleRemove" :file-list="fileList" :on-success="uploadSuccess" :data="{type: type}"> <el-button size="small" type="primary">选择Excel数据文件</el-button> </el-upload> </div> </div>js submitForm() { console.log('this.file',this.file); },在点击提交的时候打印上传文件名
添加回答
举报
0/150
提交
取消
