<template>
  <div class="dashboard-container">
    <!-- 首页 -->
    <header class="header_title">漏缆</header>
    <el-row :gutter="24">
      <el-col :span="11" class="mb20">
        <el-card shadow="never">
          <div slot="header" class="clearfix posa">
            <span>当前状态u</span>
          </div>
          <div >
            <el-row class="text" :gutter="24">
              <el-col :span="10">
                <div class="item_name">漏缆状态</div>
              </el-col>
              <el-col :span="10">
                <div class="item_data">正常</div>
              </el-col>
            </el-row>
          </div>
        </el-card>
      </el-col>
      <el-col :span="11" class="mb20">
        <el-card shadow="never">
          <div slot="header" class="clearfix posa">
            <span>基础信息</span>
          </div>
          <div >
            <el-row class="text" :gutter="24">
              <el-col :span="10">
                <div class="item_name">漏缆编号</div>
              </el-col>
              <el-col :span="10">
                <div class="item_data">{{ form.baseInfo.leakyCableCode }}</div>
              </el-col>
            </el-row>
            <el-row class="text" :gutter="24">
              <el-col :span="10">
                <div class="item_name">漏缆描述</div>
              </el-col>
              <el-col :span="10">
                <div class="item_data">{{ form.baseInfo.leakyCableDescribe }}</div>
              </el-col>
            </el-row>
            <el-row class="text" :gutter="24">
              <el-col :span="10">
                <div class="item_name">所在铁路线</div>
              </el-col>
              <el-col :span="10">
                <div class="item_data">{{ form.baseInfo.wayId }}</div>
              </el-col>
            </el-row>
            <el-row class="text" :gutter="24">
              <el-col :span="10">
                <div class="item_name">所在站点</div>
              </el-col>
              <el-col :span="10">
                <div class="item_data">{{ form.baseInfo.siteId }}</div>
              </el-col>
            </el-row>
            <el-row class="text" :gutter="24">
              <el-col :span="10">
                <div class="item_name">所在FSU</div>
              </el-col>
              <el-col :span="10">
                <div class="item_data">{{ form.baseInfo.fsuId }}</div>
              </el-col>
            </el-row>
            <el-row class="text" :gutter="24">
              <el-col :span="10">
                <div class="item_name">所在监测设备</div>
              </el-col>
              <el-col :span="10">
                <div class="item_data">{{ form.baseInfo.equipId }}</div>
              </el-col>
            </el-row>
            <el-row class="text" :gutter="24">
              <el-col :span="10">
                <div class="item_name">漏缆型号</div>
              </el-col>
              <el-col :span="10">
                <div class="item_data">{{ form.baseInfo.leakyCableMode }}</div>
              </el-col>
            </el-row>
            <el-row class="text" :gutter="24">
              <el-col :span="10">
                <div class="item_name">漏缆长度</div>
              </el-col>
              <el-col :span="10">
                <div class="item_data">{{ form.baseInfo.leakyCableLength }}</div>
              </el-col>
            </el-row>
            <el-row class="text" :gutter="24">
              <el-col :span="10">
                <div class="item_name">漏缆百米损耗</div>
              </el-col>
              <el-col :span="10">
                <div class="item_data">{{ form.baseInfo.hundredMetersLoss }}</div>
              </el-col>
            </el-row>
            <el-row class="text" :gutter="24">
              <el-col :span="10">
                <div class="item_name">漏缆速度衰减系数</div>
              </el-col>
              <el-col :span="10">
                <div class="item_data">{{ form.baseInfo.reductRatio }}</div>
              </el-col>
            </el-row>
            <el-row class="text" :gutter="24">
              <el-col :span="10">
                <div class="item_name">漏缆测试信号发射功率</div>
              </el-col>
              <el-col :span="10">
                <div class="item_data">{{ form.baseInfo.sendPower }}</div>
              </el-col>
            </el-row>
            <el-row class="text" :gutter="24">
              <el-col :span="10">
                <div class="item_name">漏缆接头数量</div>
              </el-col>
              <el-col :span="10">
                <div class="item_data">{{ form.baseInfo.kmSign }}</div>
              </el-col>
            </el-row>
            <el-row class="text" :gutter="24">
              <el-col :span="10">
                <div class="item_name">跳线长度</div>
              </el-col>
              <el-col :span="10">
                <div class="item_data">{{ form.baseInfo.jumperLength }}</div>
              </el-col>
            </el-row>
            <el-row class="text" :gutter="24">
              <el-col :span="10">
                <div class="item_name">插入器长度</div>
              </el-col>
              <el-col :span="10">
                <div class="item_data">{{ form.baseInfo.inserterLength }}</div>
              </el-col>
            </el-row>
            <el-row class="text" :gutter="24">
              <el-col :span="10">
                <div class="item_name">天馈线长度</div>
              </el-col>
              <el-col :span="10">
                <div class="item_data">{{ form.baseInfo.antennaFeederLength }}</div>
              </el-col>
            </el-row>
          </div>
        </el-card>
      </el-col>
      <el-col :span="11" class="mb20 specialCard">
        <el-card shadow="never">
          <div slot="header" class="clearfix posa">
            <span>记录信息</span>
          </div>
          <div >
            <el-row class="text" :gutter="24">
              <el-col :span="10">
                <div class="item_name">历史记录</div>
              </el-col>
              <el-col :span="10">
                <div class="item_data">正常</div>
              </el-col>
            </el-row>
            <el-row class="text" :gutter="24">
              <el-col :span="10">
                <div class="item_name">维修记录</div>
              </el-col>
              <el-col :span="10">
                <div class="item_data">142根</div>
              </el-col>
            </el-row>
          </div>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { DetailMixins } from './mixins'

export default {
  name: 'Dashboard',
  data() {
    return {
    }
  },
  mixins: [DetailMixins],
}
</script>

<style lang="scss" scoped>
.header_title {
  font-size: 23px;
  font-family: Source Han Sans CN;
  font-weight: 500;
  line-height: 40px;
  text-align: center;
  color: #0058ff;
  letter-spacing: 10px;
  opacity: 1;
  margin-bottom: 20px;
}
::v-deep.el-card {
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  // min-height: 243px;
  .el-card__header {
    font-size: 18px;
    color: #333333;
    font-weight: 500;
    text-align: center;
    background: rgba(226, 235, 255, 0.39);
    opacity: 1;
  }
  .el-card__body {
    padding: 0px;
  }
}
.specialCard {
  position: absolute;
  top: 180px;
}
.posa {
  position: relative;
}

.text {
  padding: 10px 20px 10px 20px;
  border-bottom: 1px solid #e3e3e3;
  &:last-child {
    border-bottom: none;
  }
  .item_name,
  .item_data {
    height: 16px;
    line-height: 16px;
    margin-top: 12px;
    margin-bottom: 12px;
  }
  .item_name {
    width: 262px;
    height: 16px;
    line-height: 16px;
    color: #7e7e7e;
    margin-top: 12px;
    margin-bottom: 12px;
  }

  .el-card:last-child .text {
    border-bottom: none !important;
  }
}

</style>
