<template> <div class="mapbengzhan"> <!-- <div class="bengzhanleft" :class="allData.activeName=='基础信息'?'bg':''"> <div class="body-title"> <div class="title-item" v-for="item in allData.toplist" :key="item.value" :class="allData.activeName == item.label ? 'actived' : ''" @click="change(item.label)"> {{item.label}} </div> </div> <div class="jichupic" v-if="allData.activeName=='基础信息'"> <img :src="allData.bengzhanPic"> </div> </div> --> <div class="body-title"> <div class="title-item" v-for="item in allData.toplist" :key="item.value" :class="allData.activeName == item.label ? 'actived' : ''" @click="change(item.label)"> {{item.label}} </div> </div> <div class="bengzhanleft bg" v-if="allData.activeName=='基础信息'"> <div class="jichupic"> <img v-show="props.pointfeature.sewageCode=='WSCLC002'" src="../../../assets/images/wsclc/shanan.gif"> <img v-show="props.pointfeature.sewageCode=='WSCLC001'" src="../../../assets/images/wsclc/shabei.gif"> </div> </div> <div class="bengzhanright" v-if="allData.activeName=='基础信息'"> <div class="zhibanbox"> <div class="zhibanfirst">值班</div> <div class="zhibansecend"> <div>{{ props.pointfeature.dutyDailyDataDto.userName }}</div> <div style="color:#B4CDED">{{ props.pointfeature.dutyDailyDataDto.userPhone }}</div> </div> <div class="three" v-show="props.pointfeature.dutyDailyDataDto.inPlace">已到位</div> </div> <div class="zhibanlist"> <div class="item-title">基本信息</div> <div class="item-des"> {{ props.pointfeature.xzScale }} </div> <div class="item-title">工艺流程</div> <div class="item-des"> {{ props.pointfeature.workmanship }} </div> </div> </div> <div v-if="allData.activeName=='报表分析'" class="body-detail"> <wsclcbaobiaofenxi :pointfeature="props.pointfeature" :refreshsecond="refreshsecond"></wsclcbaobiaofenxi> </div> <div v-if="allData.activeName=='实时数据'" class="body-detail"> <shishishuju :pointfeature="props.pointfeature" :refreshsecond="refreshsecond"></shishishuju> </div> </div> </template> <script setup> import { getImageUrl, geTel } from "@/utils/ruoyi"; import { useRouter } from "vue-router"; const router = useRouter(); const { proxy } = getCurrentInstance(); import moment from "moment"; import useUserStore from "@/store/modules/user"; const appStore = useUserStore(); import wsclcbaobiaofenxi from "@/components/Detailbox/pointwsclc/wsclc-baobiaofenxi.vue"; import shishishuju from "@/components/Detailbox/pointwsclc/shishishuju.vue"; const weatherpop = ref(false); const props = defineProps({ pointfeature: { type: Object, default: {}, }, refresh: { type: Number } }); watch( () => props.refresh, (newValue, oldValue) => { console.log('mapdetail', props.pointfeature); change(allData.activeName) }, { immediate: false } ); const refreshsecond = ref('1') const allData = reactive({ bengzhanPic: '../../../assets/images/wsclc/gyt.gif', activeName: '基础信息', toplist: [ { label: '基础信息', value: 1 }, { label: '实时数据', value: 2 }, { label: '报表分析', value: 3 }, ], actived: 1, phone: getImageUrl('phone', 'cockpit'), optionsData1: [ { label: 'xxxx', value: 'xxx' } ], BottomValue1: '', yuqingicon: getImageUrl("yujing_icon", "cockpit"), dateRange: [Date.now(), Date.now()], NFSNowDataTableHead: [ { field: "name", title: "泵站名称" }, { field: "time", title: "日期" }, { field: "type", title: "类型" }, // { field: "peoplename", title: "值班人员" }, ], //实时数据表格表头数据 HistoryTableData: [ { level: "1", name: "XX积水点", address: "XX街道XX路", time: "04-24 08:00", type: "雨水", peoplename: '张三', peoplenametwo: '李三', phone: '13588888888', status: "待处理", dispatch: "查看", }, { level: "1", name: "XX积水点", address: "XX街道XX路", time: "04-24 08:00", type: "雨水", peoplename: '张三', peoplenametwo: '李三', phone: '13588888888', status: "待处理", dispatch: "查看", }, { level: "0", name: "XX积水点", address: "XX街道XX路", time: "04-24 08:00", type: "雨水", peoplename: '张三', peoplenametwo: '李三', phone: '13588888888', status: "待处理", dispatch: "查看", }, { level: "1", name: "XX积水点", address: "XX街道XX路", time: "04-24 08:00", type: "雨水", peoplename: '张三', peoplenametwo: '李三', phone: '13588888888', status: "待处理", dispatch: "查看", }, { level: "1", name: "XX积水点", address: "XX街道XX路", time: "04-24 08:00", type: "雨水", peoplename: '张三', peoplenametwo: '李三', phone: '13588888888', status: "待处理", dispatch: "查看", }, ], }); function change (name) { allData.activeName = name; switch (name) { case '基础信息': break; case '实时数据': refreshsecond.value = Math.random() break; case '报表分析': refreshsecond.value = Math.random() break; } } onMounted(() => { }); </script> <style lang="scss" scoped> .mapbengzhan { width: 100%; height: 100%; display: flex; .bengzhanleft { padding: 0px 10px; box-sizing: border-box; width: 70%; height: calc(100% - 46px); margin-top: 46px; .jichupic { height: 100%; width: 100%; background: #001a4d; padding: 10px; img { width: 100%; height: 100%; } } } .bg { background: #042147; } .bengzhanright { width: 30%; padding: 0px 20px; .zhibanbox { position: relative; background: #062f66; display: flex; height: 60px; .zhibanfirst { color: #8addff; padding: 10px 5px; font-size: 15px; width: 24px; background: linear-gradient( 0deg, rgba(16, 107, 219, 0.3) 0%, rgba(16, 107, 219, 0.3) 100% ); } .zhibansecend { color: #ffffff; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-left: 10px; font-size: 15px; } .three { position: absolute; right: 20px; top: 20px; border: 1px solid #1ddeb3; background: linear-gradient( 0deg, rgba(29, 222, 179, 0.2) 0%, rgba(29, 222, 179, 0.2) 100% ); border-radius: 2px; height: 23px; padding: 0 3px; color: #1ddeb3; font-size: 15px; } } .zhibanlist { height: calc(100% - 62px); overflow: hidden; overflow-y: auto; .item-title { margin-top: 15px; margin-bottom: 10px; color: #61a6ff; font-size: 18px; font-weight: 500; height: 20px; } .item-des { height: auto; font-size: 15px; color: #c1dcff; font-family: Source Han Sans CN; } } } } .body-title { height: 46px; display: flex; align-items: center; position: absolute; .title-item { cursor: pointer; color: #4678d4; background: linear-gradient(0deg, #032463 0%, #042d7a 100%); border-radius: 2px; height: 26px; padding: 3px 13px; font-size: 14px; font-family: Source Han Sans CN; font-weight: 500; margin-right: 10px; &.actived { border: 1px solid #50a3ff; color: #50a3ff; } } } .body-detail { margin-top: 46px; height: calc(100% - 46px); width: 100%; } </style>