<template>
    <div class="index"> 
      <div class="index-left">
  
      </div>
      <div class="index-right">
        <div class="one-card">
          <div class="one-card-left">
            
            <div class="one-card-content">
              <div>
                <p>节水量</p>
                <font>4.00m³</font>
              </div>
              <div>
                <p>节碳量</p>
                <font>0.67KG</font>
              </div>
            </div>
          </div>
          <div class="color0 one-card-right">
            <h3>
              节水与节碳
            </h3>
          </div>
          
        </div>
        <div class="one-card">
          <div class="one-card-left">
           
            <div class="one-card-content">
              <div>
                <p>原水箱液位</p>
                <p>0.39m</p>
                <p>历史最高：0.50m</p>
                <p>历史最低：0.24m</p>
              </div>
              <div>
                <p>净水箱液位</p>
                <p>0.81m</p>
                <p>历史最高：1.63m</p>
                <p>历史最低：0.48m</p>
              </div>
            </div>
          </div>
          <div class="color1 one-card-right">
            <h3>
              液位
            </h3>
          </div>
          
        </div>
        <div class="one-card">
          <div class="one-card-left">
           
            <div class="one-card-content">
              <div>
                <p>UF产水</p>
                <p>瞬时流量：0.00 m³/H</p>
                <p>累计流量：4m³</p>
              </div>
              <div>
                <p>自来水前端</p>
                <p>瞬时流量：0.00 m³/H</p>
                <p>累计流量：4m³</p>
              </div>
              <div class="mt10">
                <p>供水</p>
                <p>瞬时流量：0.00 m³/H</p>
                <p>累计流量：4m³</p>
              </div>
              <div class="mt10">
                <p>自来水后端</p>
                <p>瞬时流量：0.00 m³/H</p>
                <p>累计流量：4m³</p>
              </div>
            </div>
          </div>
          <div class="color2 one-card-right">
            <h3>
              流量
            </h3>
          </div>
          
        </div>
        <div class="one-card">
          <div class="one-card-left">
            
            <div class="one-card-content">
              <div>
                <p>原水水质</p>
                <p>余氯：0.00 mg/L</p>
                <p>浊度：1.63 mg/L</p>
                <p>氨氮：1.41 mg/L</p>
                <p>COD：4.80 mg/L</p>
              </div>
              <div>
                <p>净水水质</p>
                <p>余氯：-0.73 mg/L</p>
                <p>浊度：3.56 mg/L</p>
                <p>氨氮：41.89 mg/L</p>
                <p>COD：3.53 mg/L</p>
              </div>
            </div>
          </div>
          <div class="color3 one-card-right">
            <h3>
              水质
            </h3>
          </div>
          
        </div>
      </div>
    </div>
  </template>
  
  <script>
  import Menus from "@/components/Menus.vue";
  import { onMounted, reactive, ref, toRefs, nextTick } from "vue";
  export default {
    name: 'index',
    components: {
      Menus
    },
    setup() {
      const state = reactive({
      })
    }
  }
  </script>
  <style lang="scss" scoped>
  .mt10 {
      margin-top: 10px;
    }
    .index {
      width: 100%;
      height:100%;
      display: flex;
      justify-content: space-between;
      .index-left {
        width: 69%;
        border: 1px solid rgb(179, 174, 174);
      }
      .index-right {
        width: 30%;
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        .one-card {
        width: 100%;
        height: 260px;
        box-shadow: 0 0 8px #99ACB0 inset;
        display: flex;
        justify-content: space-between;
        .one-card-left {
          width: 80%;
          padding: 10px;
          
          .one-card-content {
            width: 100%;
            height: 100%;
            display: flex;
            flex-wrap: wrap;
            // border: 1px solid #1840af;
            justify-content: space-between;
            >div {
              width: 48%;
              // height: 48%;
              border: 1px solid rgb(197, 195, 195);
              display: flex;
              flex-direction: column;
              // align-items: center;
              justify-content: center;
              text-align: left;
              padding: 10px;
              border-radius: 10px;
              
            }
          }
        }
        .one-card-right {
          width: 20%;
          background: #ddd;
          h3 {
            width: 100%;
            height:100%;
            display: flex;
            justify-content: center;
            align-items: center;
          }
        }
        .color0 {
          background: linear-gradient(to right, rgb(171, 187, 187), #7BB7B7);
        }
        .color1 {
          background: linear-gradient(to right, #e2eff1, #99ACB0);
        }
        .color2 {
          background: linear-gradient(to right, #b8e5f5, #6ED2F6);
        }
        .color3 {
          background: linear-gradient(to right, #bfdad9, #A3D8D6);
        }
      }
      }
    }
  </style>