<template> <div id="rightBox2"> <div class="LiuYuHeader"> <span class="LiuYuHeader_span LiuYuHeader_span1">水系</span> <span class="LiuYuHeader_span LiuYuHeader_span2">河湖</span> <span class="LiuYuHeader_span LiuYuHeader_span3">关联泵闸</span> <span class="LiuYuHeader_span LiuYuHeader_span4">设防m</span> <span class="LiuYuHeader_span LiuYuHeader_span5">警戒m</span> <span class="LiuYuHeader_span LiuYuHeader_span6">保证m</span> </div> <div class="LiuYuBody"> <div class="LiuYuListBox" v-for="(item, index) in LiuYuData" :key="index"> <div class="LiuYuLeft"> <div class="LiuYuLeftBox"> <p class="LiuYuLeftBox_P1"> <n-ellipsis style="max-width: 65px"> {{ item.ShuiXi }} </n-ellipsis> </p> <p class="LiuYuLeftBox_P2">水系</p> </div> </div> <div class="LiuYuRight"> <div class="LiuYuRightList" v-for="(item2, index2) in item.HeHu"> <span class="LiuYuRightList_span2" ><n-ellipsis style="max-width: 75px"> {{ item2.HeHuName }} </n-ellipsis></span > <span class="LiuYuRightList_span3" :title="item2.BengZha"> <!-- <n-ellipsis style="max-width: 80px"> --> {{ item2.BengZha }} <!-- </n-ellipsis> --> </span> <span class="LiuYuRightList_span4">{{ item2.SheFang }}</span> <span class="LiuYuRightList_span5">{{ item2.JingJie }}</span> <span class="LiuYuRightList_span6">{{ item2.BaoZheng }}</span> </div> </div> </div> </div> </div> </template> <script> import { ref, reactive, toRefs, onMounted } from "vue"; export default { name: "rightBox2", setup() { const AllData = reactive({ // 泵闸流域关联 LiuYuData: [ { ShuiXi: "黄孝河", HeHu: [ { HeHuName: "河湖一", BengZha: "后湖二期泵站", SheFang: 30, JingJie: 30, BaoZheng: 30, }, { HeHuName: "河湖二", BengZha: "铁路桥泵站", SheFang: 30, JingJie: 30, BaoZheng: 30, }, { HeHuName: "河湖三", BengZha: "机场河补水泵站", SheFang: 30, JingJie: 30, BaoZheng: 30, }, ], }, { ShuiXi: "机场河", HeHu: [ { HeHuName: "河湖一", BengZha: "后湖二期泵站", SheFang: 30, JingJie: 30, BaoZheng: 30, }, { HeHuName: "河湖二", BengZha: "铁路桥泵站", SheFang: 30, JingJie: 30, BaoZheng: 30, }, ], }, { ShuiXi: "江汉", HeHu: [ { HeHuName: "河湖一", BengZha: "后湖二期泵站", SheFang: 30, JingJie: 30, BaoZheng: 30, }, { HeHuName: "河湖二", BengZha: "后湖二期泵站", SheFang: 30, JingJie: 30, BaoZheng: 30, }, { HeHuName: "河湖三", BengZha: "后湖二期泵站", SheFang: 30, JingJie: 30, BaoZheng: 30, }, { HeHuName: "河湖三", BengZha: "后湖二期泵站", SheFang: 30, JingJie: 30, BaoZheng: 30, }, { HeHuName: "河湖三", BengZha: "后湖二期泵站", SheFang: 30, JingJie: 30, BaoZheng: 30, }, { HeHuName: "河湖三", BengZha: "后湖二期泵站", SheFang: 30, JingJie: 30, BaoZheng: 30, }, ], }, ], }); onMounted(() => {}); return { ...toRefs(AllData), }; }, computed: {}, methods: {}, }; </script> <style lang="less" scoped> #rightBox2 { width: 100%; height: 100%; .LiuYuHeader { height: 35px; width: 100%; .LiuYuHeader_span { height: 35px; line-height: 35px; text-align: center; float: left; font-size: 14px; font-family: Alibaba PuHuiTi; font-weight: bold; color: #305784; } .LiuYuHeader_span1 { width: 65px; } .LiuYuHeader_span2 { width: 75px; } .LiuYuHeader_span3 { width: 80px; } .LiuYuHeader_span4 { width: 50px; } .LiuYuHeader_span5 { width: 50px; } .LiuYuHeader_span6 { width: 50px; } } .LiuYuBody { width: 100%; height: calc(100% - 35px); overflow: auto; .LiuYuListBox { width: 100%; height: auto; box-sizing: border-box; box-shadow: 0px 0px 15px 2px inset #00aeff9c; margin-bottom: 10px; display: inline-block; position: relative; .LiuYuLeft { height: 100%; line-height: 100%; text-align: center; width: 65px; display: inline-block; position: absolute; left: 0; top: 0; .LiuYuLeftBox { width: 100%; height: auto; position: absolute; top: 50%; left: 0; margin-top: -19px; .LiuYuLeftBox_P1 { font-size: 18px; font-family: Alibaba PuHuiTi; font-weight: 500; color: #1f78f7; margin-bottom: 10px; line-height: 20px; max-height: 40px; height: auto; // overflow: hidden; // text-overflow: ellipsis; // display: -webkit-box; /**对象作为伸缩盒子模型展示**/ // -webkit-box-orient: vertical; /**设置或检索伸缩盒子对象的子元素的排列方式**/ // -webkit-line-clamp: 2; /**显示的行数**/ } .LiuYuLeftBox_P2 { font-size: 14px; font-family: Alibaba PuHuiTi; font-weight: 400; color: var(--OneMao-font-color1); } } } .LiuYuRight { width: calc(100% - 65px); height: auto; display: inline-block; margin-left: 65px; .LiuYuRightList { width: 100%; height: 40px; .LiuYuRightList_span2 { width: 75px; height: 40px; line-height: 40px; float: left; text-align: center; color: var(--OneMao-font-color1); } .LiuYuRightList_span3 { width: 80px; height: 40px; line-height: 20px; float: left; text-align: center; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; /**对象作为伸缩盒子模型展示**/ -webkit-box-orient: vertical; /**设置或检索伸缩盒子对象的子元素的排列方式**/ -webkit-line-clamp: 2; /**显示的行数**/ color: var(--OneMao-font-color1); } .LiuYuRightList_span4 { width: 48px; height: 40px; line-height: 40px; float: left; text-align: center; font-size: 18px; font-family: DIN; font-weight: 500; color: #23dadc; } .LiuYuRightList_span5 { width: 48px; height: 40px; line-height: 40px; float: left; text-align: center; font-size: 18px; font-family: DIN; font-weight: 500; color: #eaa153; } .LiuYuRightList_span6 { width: 48px; height: 40px; line-height: 40px; float: left; text-align: center; font-size: 18px; font-family: DIN; font-weight: 500; color: #f35151; } } } } } } </style>