事件记录导出
This commit is contained in:
parent
723e2db9c5
commit
b14b57a3b8
|
@ -16,6 +16,7 @@
|
||||||
"cropperjs": "1.5.12",
|
"cropperjs": "1.5.12",
|
||||||
"crypto-js": "4.1.1",
|
"crypto-js": "4.1.1",
|
||||||
"d3": "^7.6.1",
|
"d3": "^7.6.1",
|
||||||
|
"dagre": "^0.8.5",
|
||||||
"dagre-d3": "^0.4.18",
|
"dagre-d3": "^0.4.18",
|
||||||
"echarts": "5.3.2",
|
"echarts": "5.3.2",
|
||||||
"element-plus": "2.2.3",
|
"element-plus": "2.2.3",
|
||||||
|
|
|
@ -90,6 +90,15 @@ export default {
|
||||||
data);
|
data);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
export_excel: {
|
||||||
|
name: "导出",
|
||||||
|
req: async function(data){
|
||||||
|
return await http.get(
|
||||||
|
`${config.API_URL}/ecm/event/export_excel/`,
|
||||||
|
data
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
,
|
,
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,14 @@
|
||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
</div>
|
</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-header>
|
||||||
<el-main class="nopadding">
|
<el-main class="nopadding">
|
||||||
<scTable
|
<scTable
|
||||||
|
@ -152,6 +159,7 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
dLoading: false,
|
||||||
defaultTime: ['00:00:00', '23:59:59'],
|
defaultTime: ['00:00:00', '23:59:59'],
|
||||||
timeRange: [],
|
timeRange: [],
|
||||||
objCateOptions: {
|
objCateOptions: {
|
||||||
|
@ -237,6 +245,16 @@ export default {
|
||||||
resetQuery() {
|
resetQuery() {
|
||||||
this.query = {};
|
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>
|
</script>
|
|
@ -51,10 +51,7 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="可处理人" :show-overflow-tooltip="true">
|
<el-table-column label="可处理人" :show-overflow-tooltip="true">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span v-if="scope.row.participant_type==1">
|
<span v-if="scope.row.participant_type==2 || scope.row.participant_type == 1">
|
||||||
{{ scope.row.participant_ .name}}
|
|
||||||
</span>
|
|
||||||
<span v-else-if="scope.row.participant_type==2">
|
|
||||||
<span v-for="item in scope.row.participant_" :key="item.id">{{ item.name}}/</span>
|
<span v-for="item in scope.row.participant_" :key="item.id">{{ item.name}}/</span>
|
||||||
</span>
|
</span>
|
||||||
<span v-else>
|
<span v-else>
|
||||||
|
|
Loading…
Reference in New Issue