智能柜货柜二维码和刷新
This commit is contained in:
1 parent
d10ba485a6
commit
dcd70aadd5
3 files changed
+62
-28
No files matched your search
@@ -71,8 +71,7 @@
|
||||
<el-table-column prop="collectionCode" width="150" align="center" label="商户收款二维码" show-overflow-tooltip>
|
||||
<template #default="{ row }">
|
||||
<div class="flex flex-col justify-center items-center">
|
||||
<preview-image :src="row.collectionCode" />
|
||||
<el-button v-if="row.collectionCode" size="small" type="primary" link @click="downloadCollectionCode(row)">下载</el-button>
|
||||
<preview-image :src="row.collectionCode" download :downloadName="`${row.name} 收款二维码`" />
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -178,7 +177,6 @@ import { useDict } from "/@/hooks/dict"
|
||||
import FormDialog from "./form.vue"
|
||||
import Setting from "./setting.vue"
|
||||
import { useUserInfo } from "/@/stores/userInfo"
|
||||
import { downBlobFile as downCollectionCodeBlobFile } from "/@/utils/other"
|
||||
|
||||
const { merchant_type, wallet_type, yes_no_type } = useDict("merchant_type", "wallet_type", "yes_no_type")
|
||||
|
||||
@@ -279,12 +277,6 @@ const handleDelete = async (ids: string[]) => {
|
||||
useMessage().error(err.msg)
|
||||
}
|
||||
}
|
||||
|
||||
// 点击二维码下载
|
||||
const downloadCollectionCode = (row: any) => {
|
||||
if (!row.collectionCode) return useMessage().error("二维码链接不存在")
|
||||
downCollectionCodeBlobFile(row.collectionCode, {}, `${row.name} 收款二维码.png`)
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
Reference in new issue
Block a user