<template>
<div class="main-contain">
  <div class="position">
    <bread-crumb :crumbs='crumbs'></bread-crumb>
  </div>
  <div class="app-container">
    <el-tabs v-model="activeName" >
      <el-tab-pane v-for="item in tabMapOptions" :label="item.label" :key='item.key' :name="item.key" style="display:flex;">
        <keep-alive>
          <div style="display:flex;width:100%;">
          <tab-pane v-if='activeName==item.key' :type='item.key' style="flex:1;"></tab-pane>
          </div>
        </keep-alive>
      </el-tab-pane>
    </el-tabs>
  </div>
  </div>

</template>

<script>
import tabPane from './components/hisConfigInfo'
import BreadCrumb from "@/xt_pages/components/bread-crumb";
export default {
  name: 'hisconfig',
  components: { tabPane,BreadCrumb},
  data() {
    return {
      crumbs: [
        { path: false, name: '系统管理' },
        { path: 'data/hisconfig', name: 'His集成' },
      ],
      tabMapOptions: [
        { label: "集成配置", key: 'education'},
        { label: "医护配置", key: 'summary'},
        { label: "病患配置", key: 'course_disease' },
        { label: "同步配置", key: 'rescue_record'}
      ],
      activeName: 'education',
      createdTimes: 0
    }
  },
  methods: {
    showCreatedTimes() {
      this.createdTimes = this.createdTimes + 1
    }
  }
}
</script>

<style scoped>
  .tab-container{
    margin: 30px;
  }
</style>
