From 895b5000c3f54cc73733823943292df38862132b Mon Sep 17 00:00:00 2001
From: guanqb <18720758508@163.com>
Date: Tue, 20 Feb 2024 10:32:07 +0800
Subject: [PATCH] Merge branch 'master' of http://s16s652780.51mypc.cn:49896/r/jczz_web

---
 src/views/publicSecurity/positionManage/TransactRegist.vue |   39 +++++++++++++++++++++++++++++++++++----
 1 files changed, 35 insertions(+), 4 deletions(-)

diff --git a/src/views/publicSecurity/positionManage/TransactRegist.vue b/src/views/publicSecurity/positionManage/TransactRegist.vue
index b293891..990ecaf 100644
--- a/src/views/publicSecurity/positionManage/TransactRegist.vue
+++ b/src/views/publicSecurity/positionManage/TransactRegist.vue
@@ -77,7 +77,21 @@
     update,
     add,
 } from "@/api/task/labelReporting"
-
+import NProgress from 'nprogress'
+import 'nprogress/nprogress.css'
+import Qs from "qs"
+import {
+    exportBlob
+} from "@/api/common"
+import {
+    getToken
+} from '@/util/auth'
+import {
+    downloadXls
+} from "@/util/util"
+import {
+    dateNow
+} from "@/util/date"
 import {
     mapGetters
 } from "vuex"
@@ -414,10 +428,27 @@
         }
     },
     methods: {
-        showStringDispose (row, type) {
-            row[type] = !row[type]
+        handleExport () {
+            this.$confirm("是否导出交易登记数据?", "提示", {
+                confirmButtonText: "确定",
+                cancelButtonText: "取消",
+                type: "warning"
+            }).then(() => {
+                NProgress.start()
+                var data = {
+                    ...this.query
+                }
+                // data.isNine = 1
+                data = Qs.stringify(data)
+                exportBlob(
+                    `/api/blade-taskLabelReportingEvent/taskLabelReportingEvent/export-taskLabelReportingEvent?${this.website.tokenHeader}=${getToken()}&` + data
+                ).then(res => {
+                    console.log('exportBlob', res)
+                    downloadXls(res.data, `交易登记${dateNow()}.xlsx`)
+                    NProgress.done()
+                })
+            })
         },
-
         // 弹窗关闭回调
         handleClose () {
             this.cancelAudit()

--
Gitblit v1.9.3