<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>
