<!--
 * @Author: zhp
 * @Date: 2023-01-31 09:49:36
 * @LastEditTime: 2023-07-17 10:16:41
 * @LastEditors: zwq
 * @Description: 
-->
<template>
  <span>
    <el-avatar
      v-if="injectData.eightDisciplineStatus > injectData.num"
      size="small"
      style="background: #409EFF;"
      icon="el-icon-check"
    ></el-avatar>
    <el-avatar 
      v-else size="small" 
      icon="el-icon-close"
      ></el-avatar>
  </span>
</template>

<script>
// import { addDynamicRoute } from '@/router'
export default {
  props: {
    injectData: {
      type: Object,
      default: () => ({}),
    },
  },
  methods: {
    // 子级
    // 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>
