<!--
 * @Descripttion:
 * @version:
 * @Author: fzq
 * @Date: 2022-03-05 14:35:07
 * @LastEditors: fzq
 * @LastEditTime: 2022-03-05 16:44:43
-->
<template>
  <span>
    <el-button type="text" size="small" @click="emitClick">{{ $t('module.report.inventory.viewSubstrates') }}</el-button>
  </span>
</template>

<script>
export default {
  props: {
    injectData: {
      type: Object,
      default: () => ({})
    }
  },
  methods: {
    emitClick() {
      this.$router.push({
        name: 'viewSubstrate',
        query: {
          id: this.injectData.id,
          code: this.injectData.code
        }
      })
    }
  }
}
</script>
