事件记录导出

This commit is contained in:
caoqianming 2023-02-08 23:19:57 +08:00
parent 723e2db9c5
commit b14b57a3b8
4 changed files with 30 additions and 5 deletions

View File

@ -16,6 +16,7 @@
"cropperjs": "1.5.12",
"crypto-js": "4.1.1",
"d3": "^7.6.1",
"dagre": "^0.8.5",
"dagre-d3": "^0.4.18",
"echarts": "5.3.2",
"element-plus": "2.2.3",

View File

@ -90,6 +90,15 @@ export default {
data);
}
},
export_excel: {
name: "导出",
req: async function(data){
return await http.get(
`${config.API_URL}/ecm/event/export_excel/`,
data
);
}
}
}
,

View File

@ -42,7 +42,14 @@
clearable
/>
</div>
<div class="right-panel"></div>
<div class="right-panel">
<el-button
type="primary"
:loading = 'dLoading'
icon="el-icon-download"
@click="exportList"
>下载</el-button>
</div>
</el-header>
<el-main class="nopadding">
<scTable
@ -152,6 +159,7 @@ export default {
},
data() {
return {
dLoading: false,
defaultTime: ['00:00:00', '23:59:59'],
timeRange: [],
objCateOptions: {
@ -237,6 +245,16 @@ export default {
resetQuery() {
this.query = {};
},
exportList() {
this.dLoading = true;
this.$API.ecm.event.export_excel
.req(this.query)
.then(res=>{
window.open(res.path, "_blank");
this.dLoading = false;
}).catch(e=>{this.dLoading = false;})
}
},
};
</script>

View File

@ -51,10 +51,7 @@
</el-table-column>
<el-table-column label="可处理人" :show-overflow-tooltip="true">
<template #default="scope">
<span v-if="scope.row.participant_type==1">
{{ scope.row.participant_ .name}}
</span>
<span v-else-if="scope.row.participant_type==2">
<span v-if="scope.row.participant_type==2 || scope.row.participant_type == 1">
<span v-for="item in scope.row.participant_" :key="item.id">{{ item.name}}/</span>
</span>
<span v-else>