<template>
  <!-- 小池集成分析 -->
  <div class="integration-container">
    <!-- 筛选 -->
    <div class="formData-box">
      <el-form ref="form" :model="formData" label-width="90px">
        <el-form-item label="请选择垮位" size="mini">
          <el-select v-model="formData.kw" placeholder="">
            <el-option label="四垮" :value="4"></el-option>
            <el-option label="五垮" :value="5"></el-option>
            <el-option label="六垮" :value="6"></el-option>
          </el-select>
        </el-form-item>
      </el-form>
      <div class="query-btn" @click="queryBtn">确定</div>
    </div>
    <div class="integration-box">
      <div class="border-out">
        <div class="border-inner">
          <div class="integration-flex">
            <div class="left-box">
              <div class="nr-box"></div>
              <div
                class="device-left-box"
                v-for="(item, index) in deviceLeftList"
                :key="index"
              >
                <div class="pop-left">
                  <dv-border-box-12 class="datav-border">
                    <div class="status-text">设备状态： 使用</div>
                    <div class="">加高套料图号： GHDLGFT</div>
                  </dv-border-box-12>
                </div>
                <img :src="item.img" alt="" />
              </div>
            </div>
            <div class="right-box">
              <div
                class="device-right-box"
                v-for="(item, index) in deviceRightList"
                :key="index"
              >
                <div class="pop-left">
                  <!-- <dv-border-box-8 style="width: 200px;height: 100px;">dv-border-box-8</dv-border-box-8> -->
                  <dv-border-box-12 class="datav-border">
                    <div class="status-text">设备状态： 使用</div>
                    <div class="">加工套料图号： GHDLGFT</div>
                  </dv-border-box-12>
                </div>
                <img :src="item.img" alt="" />
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import {} from "@/api/integration";
export default {
  name: "Integration",
  data() {
    return {
      formData: {
        kw: 4,
      },
      deviceLeftList: [
        {
          img: require("@/assets/image/xc1.png"),
        },
        {
          img: require("@/assets/image/xc1.png"),
        },
      ],
      deviceRightList: [
        {
          img: require("@/assets/image/xc2.png"),
        },
        {
          img: require("@/assets/image/xc2.png"),
        },
        {
          img: require("@/assets/image/xc2.png"),
        },
        {
          img: require("@/assets/image/xc2.png"),
        },
      ],
    };
  },
  created() {
    this.queryBtn();
  },
  methods: {
    // 根据垮位查询
    queryBtn() {},
  },
};
</script>

<style scoped lang="scss">
.integration-container {
  margin-top: 10px;
  padding-left: 5px;
  padding-right: 5px;
  .integration-box {
    display: flex;
    align-items: stretch;
    height: calc(100vh - 105px);
    .integration-flex {
      height: 100%;
      display: flex;
      .left-box {
        width: 50%;
        height: 100%;
        padding: 0 2% 0 1%;
        .nr-box {
          width: 100%;
          height: 50%;
        }
        .device-left-box {
          height: 25%;
          line-height: 25%;
          display: flex;
          align-items: center;
          justify-content: space-between;
          position: relative;
          .pop-left {
            color: #fff;
            font-size: 16px;
            .datav-border {
              padding: 30px 0 30px 30px;
              .status-text {
                margin-bottom: 20px;
              }
            }
          }
          img {
            width: 60%;
          }
        }
        // background-color: red;
      }
      .right-box {
        width: 50%;
        height: 100%;
        padding: 0 2% 0 2%;
        .device-right-box {
          height: 25%;
          line-height: 25%;
          display: flex;
          align-items: center;
          justify-content: space-between;
          position: relative;
          .pop-left {
            color: #fff;
            font-size: 16px;
            .datav-border {
              padding: 30px 0 30px 30px;
              .status-text {
                margin-bottom: 20px;
              }
            }
          }
          img {
            width: 60%;
          }
        }
      }
    }
  }

  .border-out {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 1px #0174f5 solid;
    padding: 1px;
    box-sizing: border-box;
  }
  .border-inner {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: 2px solid #016ae0;
    border-radius: 10px;
  }
  .border-inner {
    background-color: rgba(2, 8, 23, 0.1);
  }
}
</style>
