<template>
  <div class="view-knowledgeExtraction-c">
    <div class="view-knowledgeExtraction-btn">
      <el-radio-group v-model="summarizing">
        <el-radio-button label="新建任务"></el-radio-button>
        <el-radio-button label="知识加工"></el-radio-button>
        <el-radio-button label="知识入库"></el-radio-button>
      </el-radio-group>
    </div>

    <NewTask v-if="summarizing == '新建任务'" @onSubmit="onSubmit" />
    <KnowledgeProcessing v-if="summarizing == '知识加工'" @onSubmit="onSubmit" />
    <KnowledgeWarehousing v-if="summarizing == '知识入库'" @onSubmit="onSubmit" />
  </div>
</template>

<script>
import NewTask from './components/NewTask.vue'
import KnowledgeProcessing from './components/KnowledgeProcessing.vue'
import KnowledgeWarehousing from './components/KnowledgeWarehousing.vue'
export default {
  name: 'KnowledgeExtraction',
  components: { NewTask, KnowledgeProcessing, KnowledgeWarehousing },
  data() {
    // 这里存放数据
    return {
      summarizing: '新建任务'
    }
  },
  mounted() {},
  methods: {
    onSubmit(row) {
      this.summarizing = row
    }
  }
}
</script>

<style lang="scss">
@import './index.scss';
</style>
