From 19fd7785705f30d25c6c8e44b9356cc585af68cd Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期三, 19 三月 2025 14:26:41 +0800
Subject: [PATCH] 111
---
admin/src/components/business/QRcode.vue | 32 +++++++++++++++++++++++++-------
1 files changed, 25 insertions(+), 7 deletions(-)
diff --git a/admin/src/components/business/QRcode.vue b/admin/src/components/business/QRcode.vue
index 2d84331..37b1274 100644
--- a/admin/src/components/business/QRcode.vue
+++ b/admin/src/components/business/QRcode.vue
@@ -8,16 +8,17 @@
>
<div class="box" id="print-content">
<div class="box_item" v-for="(item, index) in list" :key="index">
- <div class="box_item_title">寰俊</div>
+<!-- <div class="box_item_title">寰俊</div>-->
<div class="box_item_qr">
<img :src="item.imgfullurl" />
- <span>{{item.siteId}}/{{item.code}}</span>
+<!-- <span>{{item.siteId}}/{{item.code}}</span>-->
</div>
- <div class="box_item_footer">鎵爜鍙栬溅</div>
+<!-- <div class="box_item_footer">鎵爜鍙栬溅</div>-->
</div>
</div>
<template v-slot:footer>
- <el-button type="primary" v-print="'#print-content'">鎵撳嵃</el-button>
+<!-- <el-button type="primary" v-print="'#print-content'">鎵撳嵃</el-button>-->
+ <el-button type="primary" :loading="isWorking.export" v-if="isLoading==false" @click="exportImages">鎵撳寘涓嬭浇</el-button>
<el-button @click="close">杩斿洖</el-button>
</template>
</GlobalWindow>
@@ -26,13 +27,15 @@
<script>
import BaseOpera from '@/components/base/BaseOpera'
import GlobalWindow from '@/components/common/GlobalWindow'
-import { qrcodeList } from '@/api/business/sites'
+import { qrcodeList,exportImages } from '@/api/business/sites'
export default {
name: 'QRcode',
extends: BaseOpera,
components: { GlobalWindow },
data () {
return {
+ siteId:'',
+ isLoading : true,
list: []
}
},
@@ -47,13 +50,28 @@
this.list = []
this.title = title
this.visible = true
+ this.siteId = id
+ var that = this
qrcodeList(id)
.then(res => {
+ that.isLoading = false
this.list = res
})
},
close () {
this.visible = false
+ },
+ exportImages () {
+ exportImages( this.siteId)
+ .then(response => {
+ this.download(response)
+ })
+ .catch(e => {
+ this.$tip.apiFailed(e)
+ })
+ .finally(() => {
+ this.isWorking.export = false
+ })
}
}
}
@@ -68,7 +86,7 @@
flex-wrap: wrap;
.box_item {
width: 152px;
- height: 228px;
+ height: auto;
display: flex;
flex-direction: column;
justify-content: space-between;
@@ -96,7 +114,7 @@
justify-content: space-between;
img {
width: 126px;
- height: 126px;
+ height: 146px;
}
span {
font-size: 13px;
--
Gitblit v1.9.3