const headerr = [
{ key: "serial", title: "序号" },
{ key: "department", title: "科室名称" },
{ key: "name", title: "名称" },
{ key: "charge", title: "收费编码" },
{ key: "local", title: "地方项目编码" },
{ key: "international", title: "国标项目编码" },
{ key: "project", title: "项目分类" },
{ key: "company", title: "单位" },
{ key: "chargeprice", title: "收费价格" },
{ key: "monthly", title: "月发生量" },
];
for (const j in this.tableHead) {
const title = { title: this.tableHead[j] };
headerr.push(title);
}
//给导出表格空数据
const data = [{}];
//导出表格命名
const fileName = "名字.xlsx";
this.exportExcelName + "_" + new Date().getTime() + ".xlsx";
ExportExcel(headerr, data, fileName);
elementui下载空表格,自定义表格
最新推荐文章于 2022-07-11 17:38:18 发布