ygewm.vue
777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<template>
<div>
<div @click="hanldeViewQrCode" style="color: #2f54eb;cursor: pointer;">查看</div>
<employee-qr-code v-if="showQrCodeVisible" ref="employeeQrCode"></employee-qr-code>
</div>
</template>
<script>
import employeeQrCode from '@/components/employeeQRCode/index'
export default {
name: "ygewm",
components: {employeeQrCode},
props:{
row: {
type: Object
},
},
data(){
return {
showQrCodeVisible:false,
}
},
methods:{
//点击查看员工气瓶二维码的事件
hanldeViewQrCode(){
console.log('打印row',this.row);
this.showQrCodeVisible = true;
this.$nextTick(()=>{
this.$refs.employeeQrCode.show('qzry',this.row);
})
},
}
}
</script>
<style scoped>
</style>