40 lines
		
	
	
		
			809 B
		
	
	
	
		
			Plaintext
		
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			809 B
		
	
	
	
		
			Plaintext
		
	
	
<template>
 | 
						|
  <el-tabs v-model="activeName" @tab-click="handleClick">
 | 
						|
    <el-tab-pane label="器官" name="organs">
 | 
						|
      <OrgansTbl :is-from-system="isFromSystem" :is-confirm="isConfirm" />
 | 
						|
    </el-tab-pane>
 | 
						|
  </el-tabs>
 | 
						|
</template>
 | 
						|
<script>
 | 
						|
import OrgansTbl from './OrgansTbl'
 | 
						|
export default {
 | 
						|
  name: 'CriterionsBaseData',
 | 
						|
  components: { OrgansTbl },
 | 
						|
  props: {
 | 
						|
    isFromSystem: {
 | 
						|
      type: Boolean,
 | 
						|
      required: true
 | 
						|
    },
 | 
						|
    isConfirm: {
 | 
						|
      type: Boolean,
 | 
						|
      required: true
 | 
						|
    }
 | 
						|
  },
 | 
						|
  data() {
 | 
						|
    return {
 | 
						|
      activeName: 'organs',
 | 
						|
      tabs: ['organs']
 | 
						|
    }
 | 
						|
  },
 | 
						|
  methods: {
 | 
						|
    handleClick(tab, event) {
 | 
						|
      if (this.tabs.includes(tab.name)) {
 | 
						|
        return
 | 
						|
      } else {
 | 
						|
        this.tabs.push(tab.name)
 | 
						|
      }
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
</script>
 |