Newer
Older
HuangJiPC / src / pages / views / prevention / components / Recommendations.vue
@zhangdeliang zhangdeliang on 21 Jun 4 KB update
<template>
  <div class="recommendations">
    <n-radio-group v-model:value="selectedValue" size="small">
      <n-radio-button v-for="v in tongdaoList" :key="v.value" :value="v.value">
        {{ v.label }}
      </n-radio-button>
    </n-radio-group>
    <div class="current">
      <div class="left">当前状况</div>
      <ul>
        <li>
          <span class="tit">当前运行状况:</span
          ><span>前池液位(86.6m) 大于 启抽水位(86.63m)</span>
        </li>
        <li>
          <span class="tit">未来2小时预报:</span
          ><span>降雨等级为大雨 桥隧涵洞积水深度29cm</span>
        </li>
        <li>
          <span class="tit">当前运行状况:</span
          ><span>前池液位(86.6m) 大于 启抽水位(86.63m)</span>
        </li>
      </ul>
    </div>
    <div class="current forecast">
      <div class="left">预测建议</div>
      <ul>
        <li>
          <span class="tit">当前运行状况:</span
          ><span>前池液位(86.6m) 大于 启抽水位(86.63m)</span>
        </li>
        <li>
          <span class="tit">未来2小时预报:</span
          ><span>降雨等级为大雨 桥隧涵洞积水深度29cm</span>
        </li>
        <li>
          <span class="tit">当前运行状况:</span
          ><span>前池液位(86.6m) 大于 启抽水位(86.63m)</span>
        </li>
      </ul>
    </div>
    <p>
      基于降雨预报可能存在不确定性,当未来2小时气象信息产生变化时候,对应预案如下:
    </p>
    <div class="current">
      <div class="left">当前前池大于启抽时候水位</div>
      <ul>
        <li>
          <span class="tit">当前运行状况:</span
          ><span>前池液位(86.6m) 大于 启抽水位(86.63m)</span>
        </li>
        <li>
          <span class="tit">未来2小时预报:</span
          ><span>降雨等级为大雨 桥隧涵洞积水深度29cm</span>
        </li>
        <li>
          <span class="tit">当前运行状况:</span
          ><span>前池液位(86.6m) 大于 启抽水位(86.63m)</span>
        </li>
      </ul>
    </div>
    <div class="current forecast">
      <div class="left">当前前池小于启抽时候水位</div>
      <ul>
        <li>
          <span class="tit">当前运行状况:</span
          ><span>前池液位(86.6m) 大于 启抽水位(86.63m)</span>
        </li>
        <li>
          <span class="tit">未来2小时预报:</span
          ><span>降雨等级为大雨 桥隧涵洞积水深度29cm</span>
        </li>
        <li>
          <span class="tit">当前运行状况:</span
          ><span>前池液位(86.6m) 大于 启抽水位(86.63m)</span>
        </li>
      </ul>
    </div>
    <div class="send">发送操作建议</div>
    
  </div>
</template>

<script>
import { reactive, toRefs, onMounted, provide } from "vue";
export default {
  name: "recommendations",
  setup() {
    const state = reactive({
      selectedValue: 0,
      tongdaoList: [
        { label: "王家墩污水泵站", value: "3" },
        { label: "后湖二期泵站", value: "4" },
        { label: "铁路桥泵站", value: "5" },
        { label: "机场河补水泵站", value: "6" },
      ],
    });
    return {
      ...toRefs(state),
    };
  },
};
</script>

<style lang='less' scoped>
.recommendations {
  padding: 10px;
  .current {
    margin: 10px 0;
    display: flex;
    box-shadow: 0px 4px 12px 1px rgba(119, 176, 214, 0.35);
    .left {
      padding: 15px;
      width: 110px;
      height: 110px;
      display: flex;
      justify-content: center;
      align-items: center;
      background: linear-gradient(181deg, #418ff2 0%, #6bb2fe 100%);
      font-size: 18px;
      font-family: Alibaba PuHuiTi;
      font-weight: 400;
      color: #ffffff;
    }
    ul {
      padding: 10px;
      background: var(--bg-menu);
      width: calc(100% - 110px);
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      li {
        display: flex;
        color: #5970a5;
        .tit {
          width: 120px;
        }
      }
    }
  }
  .forecast {
    .left {
      background: linear-gradient(181deg, #71a9ef 0%, #af96ef 100%);
    }
  }
  p {
    line-height: 50px;
    font-size: 13px;
    font-family: Alibaba PuHuiTi;
    color: var(--color-btn-text-a);
    line-height: 34px;
  }
  .send {
    position: absolute;
    bottom: 100px;
    left: 50%;
   transform: translate(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 167px;
    height: 46px;
    background: linear-gradient(0deg, #54dbef 0%, #4290f2 0%, #69b0fe 100%);
    border-radius: 5px;
    font-size: 16px;
    font-family: Source Han Sans CN;
    color: #f8f9fb;
  }
}
</style>