|
@@ -82,7 +82,6 @@ export default {
|
|
|
typeList: table_type,
|
|
|
// 弹框
|
|
|
dialog: { title: '桌码', show: false, type: '1' },
|
|
|
- url: 'https://blog.csdn.net/weixin_42601136',
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -103,15 +102,15 @@ export default {
|
|
|
this.search();
|
|
|
},
|
|
|
// 生成桌码
|
|
|
- toCode() {
|
|
|
+ toCode({ data }) {
|
|
|
this.dialog = { title: '桌码', show: true, type: '1' };
|
|
|
- this.creatQrCode();
|
|
|
+ this.creatQrCode(data);
|
|
|
},
|
|
|
- creatQrCode() {
|
|
|
+ creatQrCode(e) {
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.qrCodeUrl.innerHTML = ''; //二维码清除
|
|
|
new QRCode(this.$refs.qrCodeUrl, {
|
|
|
- text: this.url, //二维码链接,参数是否添加看需求
|
|
|
+ text: `https://broadcast.waityou24.cn/cattle?tableid=` + e._id, //二维码链接,参数是否添加看需求
|
|
|
width: 150,
|
|
|
height: 150,
|
|
|
colorDark: '#000000',
|