@@ -2,6 +2,8 @@ import axios from "@/config/axios" | |||
export default { | |||
applyCooperate(params) { | |||
return axios.post('/chainindustryapply/applyDept', params) | |||
} | |||
}, | |||
exportList(params){ | |||
return axios.get('/chainindustryapply/export',{params}) | |||
}, | |||
} |
@@ -1,7 +1,7 @@ | |||
<template> | |||
<div class="apply-cooperation ele-body"> | |||
<el-card shadow="never" element-loading-background="rgba(255, 255, 255, 1)"> | |||
<search @search:task="updateParams($event)" /> | |||
<search @search:task="updateParams($event)" @export="exportData($event)" :show-export="true"/> | |||
<el-table | |||
border | |||
highlight-current-row | |||
@@ -156,7 +156,7 @@ export default { | |||
page: { | |||
page: 1, | |||
limit: Math.floor( | |||
(document.documentElement.clientHeight - 260 - 45) / 45 | |||
(document.documentElement.clientHeight - 310 - 45) / 45 | |||
), | |||
}, | |||
tableHeight: document.documentElement.clientHeight - 260, | |||
@@ -172,6 +172,22 @@ export default { | |||
this.getDataList(); | |||
}, | |||
methods: { | |||
exportData(data){ | |||
this.loading=true; | |||
api.exportList(Object.assign({sheetName:"链长制配合申请列表"},data)).then(res=>{ | |||
console.log(res.data.data) | |||
window.open(res.data.data); | |||
this.$message({ | |||
type:"success", | |||
message:"导出成功" | |||
}) | |||
}).catch(e=>{ | |||
console.log(e) | |||
this.$message.error("导出失败") | |||
}).finally(()=>{ | |||
this.loading=false; | |||
}) | |||
}, | |||
updateParams(data) { | |||
this.searchParams = data; | |||
this.getDataList(); |
@@ -114,7 +114,7 @@ | |||
>分项</router-link | |||
> --> | |||
<!-- <span @click="toSegmentation(row)">分项</span> --> | |||
<el-link @click="toSegmentation(row)" type="primary" >分项</el-link> | |||
<el-link @click="toSegmentation(row)" type="primary" ><i class="el-icon-setting"></i>分项</el-link> | |||
</template> | |||
</el-table-column> | |||
</el-table> |
@@ -110,7 +110,7 @@ | |||
}" | |||
>分项</router-link | |||
> --> | |||
<el-link @click="toSegmentation(row)" type="primary">分项</el-link> | |||
<el-link @click="toSegmentation(row)" type="primary"><i class="el-icon-setting"></i>分项</el-link> | |||
</template> | |||
</el-table-column> | |||
</el-table> |
@@ -116,7 +116,7 @@ | |||
}" | |||
>分项</router-link | |||
> --> | |||
<el-link @click="toSegmentation(row)" type="primary">分项</el-link> | |||
<el-link @click="toSegmentation(row)" type="primary"><i class="el-icon-setting"></i>分项</el-link> | |||
</template> | |||
</el-table-column> | |||
</el-table> |
@@ -110,6 +110,7 @@ | |||
:underline="false" | |||
@click="edit(row)" | |||
:disabled="!row.id" | |||
icon="el-icon-edit" | |||
>编辑</el-link | |||
> | |||
</template> |
@@ -109,6 +109,7 @@ | |||
:underline="false" | |||
@click="edit(row)" | |||
:disabled="!row.id" | |||
icon="el-icon-edit" | |||
>编辑</el-link | |||
> | |||
</template> |
@@ -115,6 +115,7 @@ | |||
:underline="false" | |||
@click="edit(row)" | |||
:disabled="!row.id" | |||
icon="el-icon-edit" | |||
>编辑</el-link | |||
> | |||
</template> |