<template>
  <div ref="tab" class="m20">
    <el-tabs v-model="activeName" type="border-card" class="tab" @tab-click="clickHandleTabs">
      <el-tab-pane name="entity">
        <span slot="label">主体查询</span>
        <entity></entity>
      </el-tab-pane>
      <el-tab-pane name="writs">
        <span slot="label">文书查询</span>
        <writs></writs>
      </el-tab-pane>
      <el-tab-pane name="abnormal">
        <span slot="label">经营异常</span>
        <div v-if="(activeName=='abnormal')">
          <business></business>
        </div>
      </el-tab-pane>
      <el-tab-pane name="illegal">
        <span slot="label">严重违法失信</span>
        <div v-if="(activeName=='illegal')">
          <business></business>
        </div>
      </el-tab-pane>
      <el-tab-pane name="credit">
        <span slot="label">信用修复</span>
        <div v-if="(activeName=='credit')">
          <business></business>
        </div>
      </el-tab-pane>
      <el-tab-pane name="revoke">
        <span slot="label">批量吊销</span>
        <div v-if="(activeName=='revoke')">
          <business></business>
        </div>
      </el-tab-pane>
      <el-tab-pane name="cancel">
        <span slot="label">撤销登记案件</span>
        <div v-if="(activeName=='cancel')">
          <business></business>
        </div>
      </el-tab-pane>
      <el-tab-pane name="punish">
        <span slot="label">联合惩戒</span>
        <div v-if="(activeName=='punish')">
          <business></business>
        </div>
      </el-tab-pane>
      <el-tab-pane name="correct">
        <span slot="label">数据勘误</span>
        <div v-if="(activeName=='correct')">
          <business></business>
        </div>
      </el-tab-pane>
    </el-tabs>
  </div>

</template>

<script>
import entity from './result.vue'
import writs from '../system/WritsSearch.vue'
import business from './business.vue'
export default {
  components: {
    entity, writs, business
  },
  data() {
    return {
        activeName: 'entity'
    }
  },
  mounted() {

  },
  methods: {
    clickHandleTabs() {
      sessionStorage.setItem('businessQuery', this.activeName)
    }
  }
}
</script>

<style lang="scss" scoped>
.main-content {
  padding: 10pt;

  .arrow{
    color: #3296FA;
    cursor: pointer;
    margin-right: 16px;
  }
  .search-box{
    padding:10px 0;
    .search-field{
      display:flex;
      width:100%;
      >p{
        margin:3px 16px 10px 0;
        font-family: Microsoft YaHei, Microsoft YaHei-Bold;
        color: #666;
        font-size:16PX;
        width:200px;
        text-align: right;
      }
    }
    .el-col{
      margin-bottom:15px;
    }
  }

  .content-header {
    background: white;

    .label-name_1u {
      text-align: right;
      display: inline-block; //转成行内快，才可定义宽度
      width: 180px;
      font-size: 16px;
    }

    .search-input-box_1u {
      display: inline-block;
      width: calc(100% - 230px);
    }

    .label-name_2u {
      text-align: right;
      display: inline-block; //转成行内快，才可定义宽度
      width: 210px;
      font-size: 16px;
    }

    .search-input-box_2u {
      display: inline-block;
      width: calc(65% - 120px);
    }

    .label-name_u {
      text-align: right;
      display: inline-block; //转成行内快，才可定义宽度
      width: 210px;
      font-size: 16px;
    }

    .search-input-box_u {
      display: inline-block;
      width: calc(65% - 120px);
    }

    .label-name_3u {
      text-align: right;
      display: inline-block; //转成行内快，才可定义宽度
      width: 180px;
      font-size: 16px;
    }

    .label-name_1 {
      text-align: right;
      display: inline-block; //转成行内快，才可定义宽度
      width: 100px;
      font-size: $font-size-content-text;
    }

    .search-input-box_1 {
      display: inline-block;
      width: calc(100% - 110px);
    }

    .label-name_2 {
      text-align: right;
      display: inline-block; //转成行内快，才可定义宽度
      width: 110px;
      font-size: $font-size-content-text;
    }

    .search-input-box_2 {
      display: inline-block;
      width: calc(100% - 120px);
    }

    .label-name_3 {
      text-align: right;
      display: inline-block; //转成行内快，才可定义宽度
      width: 140px;
      font-size: $font-size-content-text;
    }

    .custom {
      width: calc(100% - 150px);
    }

    .search-input {
      cursor: pointer;
    }

    .body {
      padding: 20px 0;
      border-top: none;
      margin-bottom: 10PX;
    }
  }

  .content-body {
    background: white;
    margin-bottom: 100px;
  }

  .header {
    /* height:50PX; */
    /* padding:15PX 10PX; */
    .title {
      font-weight: 600;
      /* font-size: 1.2rem; */
    }
  }

  .page-box {
    margin: 10PX;
    text-align: right
  }

  // .mb10{
  //   margin-bottom: 10px;
  // }
  .btn-box {
    display: inline-block;
    padding-left: 10px;
  }

  .prompt {
    color: #F53633;
  }
}

.tab {
  margin-bottom: 10px;
}

.fixed-bottom {
  position: fixed;
  width: 100%;
  bottom: -10px;
  right: 0;
  z-index: 99;
  padding: 10px;
  /* background: #8bbef6; */
  border-radius: 5px 5px 0 0;
  background: linear-gradient(to bottom, #fff 0%, #8bbef6 100%);
  box-shadow: 1px -4px 4px rgba(0, 21, 41, 0.08);
}

.content-body {
  background: #fff;

  /deep/ .el-table .warning-row {
    background: #eaf4fe !important;
  }

  /deep/ .el-table .sort-caret.descending {
    border-top-color: #fff !important;
  }

  /deep/ .el-table .sort-caret.ascending {
    border-bottom-color: #fff !important;
  }
}
</style>

<style lang="scss">

.el-input__inner {
  height: 28px !important;
}

.fixed-bottom {
  .el-pagination {
    text-align: right !important;
  }
}
</style>

<style lang="scss">
  .market.search-result{
    .el-table__row{
      cursor: pointer;
    }
  }
</style>
