<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['scale:scale:export']"
>导出
</el-button>
</el-col>
vue2写法
/** 导出按钮操作 */
handleExport() {
this.download('evaluate/scale/scale/export', {
...this.queryParams
}, `量基本信息数据.xlsx`)
},
vue3写法
proxy.download("system/subject/importTemplate", {}, `subject_template_${new Date().getTime()}.xlsx`);