This commit is contained in:
linfso 2024-06-16 12:41:32 +08:00
parent 1d1f63b02a
commit c8d69198f2

View File

@ -123,7 +123,7 @@
v-hasPermi="['emis:emisTransProduct:remove']"
>删除</el-button>
</el-col>
<!-- <el-col :span="1.5">
<el-col :span="1.5">
<el-button
type="warning"
plain
@ -132,7 +132,7 @@
@click="handleExport"
v-hasPermi="['emis:emisTransProduct:export']"
>导出</el-button>
</el-col> -->
</el-col>
</el-row>
</div>
@ -446,8 +446,11 @@ export default {
if (response.code === 200) {
const curList = response.rows
import('@/vendor/Export2Excel').then(excel => {
const tHeader = ['序号','产品代码','名称','英文名称','启用状态','所属国家','所属线路','所属线路名称','取重方式','承运方式','时效描述','最小时效','最大时效','备注','租户ID','删除标志(0代表存在','创建者','创建时间','更新者','更新时间',];
const filterVal = ['id','prodCode','prodName','prodNameEn','status','country','transLineCode','transLine','carryType','transType','agingDesc','minAging','maxAging','remark','tenantId','delFlag','createBy','createTime','updateBy','updateTime',];
// const tHeader = ['序号','产品代码','名称','英文名称','启用状态','所属国家','所属线路','所属线路名称','取重方式','承运方式','时效描述','最小时效','最大时效','备注','租户ID','删除标志(0代表存在','创建者','创建时间','更新者','更新时间',];
// const filterVal = ['id','prodCode','prodName','prodNameEn','status','country','transLineCode','transLine','carryType','transType','agingDesc','minAging','maxAging','remark','tenantId','delFlag','createBy','createTime','updateBy','updateTime',];
const tHeader = ['线路','产品类型','所属国家','时效描述'];
const filterVal = ['transLine','prodName','countryName','agingDesc'];
const data = this.formatJson(filterVal, curList, response.rows)
excel.export_json_to_excel({
header: tHeader,