|
@@ -65,8 +65,8 @@
|
|
|
rowKey="month">
|
|
|
<span slot="action" slot-scope="record">
|
|
|
<template>
|
|
|
- <!-- <a @click="handleView(record)">查看明细</a>
|
|
|
- <a-divider type="vertical" />-->
|
|
|
+ <a @click="doExportInfo(record)">明细导出</a>
|
|
|
+ <a-divider type="vertical" />
|
|
|
<a @click="doExportDetail(record)">导出</a>
|
|
|
</template>
|
|
|
</span>
|
|
@@ -84,7 +84,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getMonthReport, exportMonthReport, getSbType, getSbTypeReport } from '@/api/report/sbinfo'
|
|
|
+import { getMonthReport, exportMonthReport, getSbType, getSbTypeReport, exportMonthInfoReport } from '@/api/report/sbinfo'
|
|
|
import { Chart } from '@antv/g2'
|
|
|
import PrintInSbInfoTypeReport from '@/views/dashboard/modules/PrintInSbInfoTypeReport'
|
|
|
import DetailMeasureLogReport from '@/views/dashboard/modules/DetailMeasureLogReport'
|
|
@@ -240,6 +240,14 @@ export default {
|
|
|
this.BaseTool.UPLOAD.downLoadExportExcel(file)
|
|
|
})
|
|
|
},
|
|
|
+ doExportInfo (record) {
|
|
|
+ const parameter = {
|
|
|
+ typeId: record.id
|
|
|
+ }
|
|
|
+ exportMonthInfoReport(parameter).then(file => {
|
|
|
+ this.BaseTool.UPLOAD.downLoadExportExcel(file)
|
|
|
+ })
|
|
|
+ },
|
|
|
handlePrint (record) {
|
|
|
const modal = this.$refs.basePrintModal
|
|
|
this.visible = false
|