vue中 element-ui中 submit表单action下载(示例)

匿名 (未验证) 提交于 2019-12-03 00:22:01
<form name="orderform" style="display:inline-block;" action="http://dev.womaoapp.com/fwas-wishingLamp-admin/sys/wishingOrderRest/orderExportExcel" method="post">
<input v-show="false" style="visiable:hidden;" type="text" name="wishingLampId" v-model="form.wishingLampId">
<input v-show="false" style="visiable:hidden;" type="text" name="orderNo" v-model="form.orderNo">
<input v-show="false" style="visiable:hidden;" type="text" name="channelId" v-model="form.channelId">
<input v-show="false" style="visiable:hidden;" type="text" name="startTime" v-model="form.startTime">
<input v-show="false" style="visiable:hidden;" type="text" name="endTime" v-model="form.endTime">
<!-- <input style="height:40px;background:#C8C9CC;border-radius:3px;" @click="daochu" type="button" value="批量导出" /> -->
<el-button display="inline-block" class="filter-item" type="primary" :loading="downloadLoading" icon="el-icon-download" @click="handleDownload">导出</el-button>
</form>
下边是method中的方法

handleDownload () {
document.orderform.submit()
},
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!