<template>
    <div>
        <el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;">
            <div slot="header" class="clearfix">
              <span>{{ title }}</span>
              <el-button size="mini" icon="el-icon-plus" style="float: right; padding: 3px 0" round>保存</el-button>
              <el-button size="mini" icon="el-icon-back" style="float: right; padding: 3px 0" round @click="showCard">返回列表</el-button>
<!--              <el-button-group style="float: right;">-->
<!--              </el-button-group>-->
            </div>
            111
        </el-card>
    </div>
</template>

<script>
export default {
  name: 'PostAdd',
  data () {
    return {
      bodyHeight: document.body.offsetHeight - 130 + 'px',
      title: '岗位新增',
      // 展示切换
      showOptions: {
        id: undefined,
        showList: true,
        showAdd: false,
        showEdit: false,
        showDetail: false
      }
    }
  },
  created () {
  },
  methods: {
    showCard () {
      this.$emit('showCard', this.showOptions)
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
