|
@@ -1,5 +1,12 @@
|
|
|
<template>
|
|
|
<div class="organCoop">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="exportQuestion"
|
|
|
+ style="margin-top: 16px;"
|
|
|
+ v-permission="'export/now/EXPORT_INDEX_COOP'"
|
|
|
+ >导出</el-button
|
|
|
+ >
|
|
|
<ve-histogram
|
|
|
:data="chartData"
|
|
|
height="400px"
|
|
@@ -15,6 +22,7 @@
|
|
|
<script>
|
|
|
import "echarts/lib/component/dataZoom";
|
|
|
import histogram from "v-charts/lib/histogram.common";
|
|
|
+import { Export } from "@/utils/downLoadFile";
|
|
|
export default {
|
|
|
name: "organ-coop",
|
|
|
props: ["data"],
|
|
@@ -115,6 +123,20 @@ export default {
|
|
|
dataEmpty() {
|
|
|
return !this.chartData.rows.length;
|
|
|
}
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ exportQuestion() {
|
|
|
+ Export(
|
|
|
+ this,
|
|
|
+ {
|
|
|
+ url: "/api-web/export/now",
|
|
|
+ fileName: "合作单位回款.xls",
|
|
|
+ method: "post",
|
|
|
+ params: { exportEnum: "EXPORT_INDEX_COOP" }
|
|
|
+ },
|
|
|
+ "您确定导出合作单位回款?"
|
|
|
+ );
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|