From eb8f0649d29048badc90f6f05f0fcd3b0b8247b5 Mon Sep 17 00:00:00 2001
From: guanqb <18720758508@163.com>
Date: Mon, 19 Feb 2024 09:08:30 +0800
Subject: [PATCH] 场所检查加导出按钮
---
src/views/publicSecurity/ninePlaceManage/patrolRecord.vue | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/src/views/publicSecurity/ninePlaceManage/patrolRecord.vue b/src/views/publicSecurity/ninePlaceManage/patrolRecord.vue
index a5cb7d9..6fa4f25 100644
--- a/src/views/publicSecurity/ninePlaceManage/patrolRecord.vue
+++ b/src/views/publicSecurity/ninePlaceManage/patrolRecord.vue
@@ -15,6 +15,10 @@
详情
</el-button>
</template>
+ <template slot="menuLeft">
+ <el-button type="warning" size="small" plain icon="el-icon-download" @click="handleExport">导出
+ </el-button>
+ </template>
</avue-crud>
@@ -329,6 +333,28 @@
},
methods: {
+ handleExport () {
+ this.$confirm("是否导出档案管理数据?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning"
+ }).then(() => {
+ NProgress.start()
+ var data = {
+ ...this.query
+ }
+ // data.isNine = 1
+ data = Qs.stringify(data)
+ exportBlob(
+ `/api/blade-place/place/exportNineType?${this.website.tokenHeader}=${getToken()}&` + data
+ ).then(res => {
+ console.log('exportBlob', res)
+ downloadXls(res.data, `档案管理${dateNow()}.xlsx`)
+ NProgress.done()
+ })
+ })
+ },
+
showStringDispose (row, type) {
row[type] = !row[type]
},
--
Gitblit v1.9.3