<!--
 * @Author: zhp
 * @Date: 2023-05-15 14:27:30
 * @LastEditTime: 2023-07-13 10:00:09
 * @LastEditors: zhp
 * @Description: 
-->
<!--
 * @Author: zhp
 * @Date: 2023-01-31 14:12:10
 * @LastEditTime: 2023-05-15 14:09:30
 * @LastEditors: zhp
 * @Description: 
-->
<template>
  <span>
    <el-button type="text" @click="getInspectionDetail">{{ $t('oss.type1') }} </el-button>
  </span>
</template>

<script>
import i18n from "@/i18n"

export default {
  props: {
    injectData: {
      type: Object,
      default: () => ({}),
    },
  },
  methods: {
    getInspectionDetail() {
      this.$router.push({
        name: 'laboratory-qmsLaboratoryTesterInspectionQualification',
        query: {
          laboratoryTesterId: this.injectData.userId
        }
      })
    }
    // 子级
    // emitClick () {
    //   // 路由参数
    //   const routeParams = {
    //     routeName: `${this.$route.name}__${this.injectData.id}`,
    //     title: `${this.$route.meta.title} - ${this.injectData.dictType}`,
    //     path: 'sys/dict-data',
    //     params: {
    //       dictTypeId: this.injectData.id
    //     }
    //   }
    //   // 动态路由
    //   addDynamicRoute(routeParams, this.$router)
    // }
  },
};
</script>
