This commit is contained in:
bb_pan 2025-05-29 17:02:36 +08:00
parent 98c5cf75e6
commit 166946521f
2 changed files with 6 additions and 4 deletions

View File

@ -6,7 +6,7 @@
<div class="uploadImg"> <div class="uploadImg">
<div id="qrcode" class="qrcode" ref="codeItem"></div> <div id="qrcode" class="qrcode" ref="codeItem"></div>
</div> </div>
<div class="boxCode">编号{{ qrcodeValue }}</div> <div class="boxCode">编号{{ code }}</div>
</div> </div>
<div slot="footer" class="dialog-footer" style="text-align: center"> <div slot="footer" class="dialog-footer" style="text-align: center">
<el-button type="primary" @click="downloadCode"> </el-button> <el-button type="primary" @click="downloadCode"> </el-button>
@ -24,17 +24,19 @@ export default {
return { return {
dialogTitle: '查看', // dialogTitle: '查看', //
dialogVisible: false, // dialogVisible: false, //
qrcodeValue: '' // qrcodeValue: '', //
code: ''
} }
}, },
created() {}, created() {},
methods: { methods: {
showQRCode(qrCode) { showQRCode(qrCode, code) {
console.log('🚀 ~ showQRCode ~ qrCode:', qrCode) console.log('🚀 ~ showQRCode ~ qrCode:', qrCode)
this.qrcodeValue = '' // this.qrcodeValue = '' //
this.dialogTitle = '查看' this.dialogTitle = '查看'
this.dialogVisible = true this.dialogVisible = true
this.qrcodeValue = qrCode this.qrcodeValue = qrCode
this.code = code
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.codeItem.innerHTML = '' this.$refs.codeItem.innerHTML = ''

View File

@ -208,7 +208,7 @@ export default {
// } // }
// }, // },
handleSee(row) { handleSee(row) {
this.$refs.qrCodeView.showQRCode(row.qrCode) this.$refs.qrCodeView.showQRCode(row.qrCode, row.maCode)
}, },
} }
} }