123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294 |
- <template>
- <div class="appmian">
-
- <el-container>
- <el-header>
- <div class="ve_menu_logo">
- <div class="ve_title">
- <div class="ve_logo_img">
- <el-image
- style="height: 100%"
- :src="logo"
- fit="contain"
- ></el-image>
- </div>
- <h3 class="ve_logo_title">
- {{ title }}
- </h3>
- </div>
- <el-menu
- :default-active="activeIndex"
- class="el-menu-demo"
- mode="horizontal"
- :popper-offset="2"
-
- style="width:780px"
- background-color="#0D1639 "
- active-background-color="#0E50C8"
- text-color="#68ADFF"
- active-text-color="#fff"
- @select="handleSelect"
- >
- <el-menu-item index="1">灾害源设置</el-menu-item>
- <el-menu-item index="2">边界设置</el-menu-item>
-
- <el-menu-item index="3" >灾害推演</el-menu-item>
- <el-menu-item index="4">推演结果</el-menu-item>
- </el-menu>
- <div class="ve_right">
- <div class="ve_time">
- <span class="l_huoqing">火灾事故2023.02.26</span>
- <span class="l_time">2024-03-20 11:30:20</span>
- </div>
- <div class="ve_timeioc">
- <el-image
- :src="Vector"
- fit="contain"
- ></el-image>
- <span>模型库</span>
- </div>
- </div>
- </div>
- </el-header>
-
- <el-main>
- <Dialoges ref="lliudialog" :addselect="addselect"></Dialoges>
- <source-disaster ref="sourcedis" :classradio="classradio"/>
- <my-boundary ref="boundary" :classradio="classradio" />
-
- </el-main>
- </el-container>
- </div>
- </template>
-
- <script setup>
- import { ref, onMounted, reactive,nextTick } from "vue";
- // import NavigateBar from "@/components/layout/NavigateBar.vue";
- import Dialoges from "./Dialoges.vue"
- import logo from "@/assets/logo.png";
- import SourceDisaster from "./components/Sourcedisaster.vue"
- import myBoundary from "./components/MyBoundary.vue"
- import Vector from "@/assets/img/Vector.png";
- import {timestampToTime} from '@/js/lindex.js'
- import mitts from "@/utils/Bus"
- let lliudialog=ref();
- let sourcedis=ref();
- const title = "灾情推演软件";
- const activeIndex = ref('1')
- const activeIndex2 = ref('1')
- let classradio=ref()
- let boundary=ref();
- onMounted(() => {
- });
- //
- const addselect=()=>{
- classradio.value=lliudialog.value.classradio;
- console.log(111)
- }
- const handleSelect = (key,keyPath) => {
- switch (key) {
- case '1':
- sourcedis.value.accident3();
- boundary.value.boun.collfire=false;
- lliudialog.value.leftcoll.collfire=false;
- lliudialog.value.leftcoll.collwater=false;
- lliudialog.value.monitor=false;
- break;
- case '2':
- boundary.value.accident4();
- sourcedis.value.sour.collfire=false;
- sourcedis.value.sour.collwater=false;
- lliudialog.value.leftcoll.collfire=false;
- lliudialog.value.leftcoll.collwater=false;
- lliudialog.value.monitor=false;
- break;
- case '3':
- sourcedis.value.sour.collfire=false;
- sourcedis.value.sour.collwater=false;
- boundary.value.boun.collfire=false;
- lliudialog.value.accident2();
- lliudialog.value.monitor=false;
- break;
- case '4':
- sourcedis.value.sour.collfire=false;
- sourcedis.value.sour.collwater=false;
- boundary.value.boun.collfire=false;
- lliudialog.value.leftcoll.collfire=false;
- lliudialog.value.leftcoll.collwater=false;
- lliudialog.value.monitor=true;
- default:
- break;
- }
- }
-
- </script>
-
- <style lang="scss" scoped>
-
- .appmian{
- .el-main{
- --el-main-padding: 0 !important;
- }
- .el-header{
- padding:0;
- margin: 0;
- width: 100%;
- position: absolute;
- z-index: 206;
- top: 0;
- }
- }
- .ve_menu_logo {
- width: 100%;
- height:70px;
- background: #0D1639;
- white-space: nowrap;
- text-align: left;
- overflow: hidden;
- display: flex;
- background: #0D1639;
- box-shadow: inset 0px 0px 17px 5px rgba(12,97,197,0.2);
- border-radius: 0px 0px 0px 0px;
- border-bottom: 1px solid;
- box-sizing: border-box;
- border-image: linear-gradient(28deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0)) 1 1;
- .ve_title{
-
- }
- .ve_logo_img {
- padding-left: 30px;
- height: 100%;
- display: inline-block;
- box-sizing: border-box;
- vertical-align: middle;
- padding: 15px;
- }
- .ve_logo_title {
- width: 160px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- display: inline-block;
- margin: 0;
- vertical-align: middle;
- color: #68ADFF;
- font-size: 20px;
- }
- .el-menu-demo{
- width:60% !important;
- height: 70px;
- border: none !important;
- background: rgba(12,97,197,0);
- .el-menu-item{
- position: relative;
- width: 97px;
- font-family: Microsoft YaHei UI, Microsoft YaHei UI;
- font-weight: bold;
- font-size: 13px;
- color: #68ADFF;
- line-height: 15px;
- text-align: center;
- font-style: normal;
- text-transform: none;
- width: 110px;
- height: 70px;
- border-radius: 0px 0px 0px 0px;
- border:none;
- }
- .is-active{
- width: 110px;
- height: 70px;
- background:radial-gradient(ellipse at 54px 0px, #3AA0FF -37%, #123066 53%);
- border-radius: 0px 0px 0px 0px;
- border: 1px solid;
- border-left: 1px solid rgba(16, 92, 240, 1);
- border-right: 1px solid rgba(18, 48, 102, 1);
- border-image: linear-gradient(347deg, rgba(16, 92, 240, 1), rgba(18, 48, 102, 1)) 1 1;
- &:after {
- width: 24px;
- height: 1px;
- background-color: #fff;
- -webkit-transition: all ease-out 0.2s;
- transition: all ease-out 0.2s;
- content: "";
- position: absolute;
- left: 50%;
- bottom: 15px;
- webkit-transform: translate(-50%, 0%);
- -moz-transform: translate(-50%,0%);
- transform: translate(-50%, 0%);
- }
- }
- }
- .ve_right{
- width: 350px;
- height: 70px;
- overflow: hidden;
- position:absolute;
- right: 0;
- display: flex;
- .ve_time{
- width: 190px;
- height: 55px;
- padding-top: 15px;
- height: 70px;
- border-radius: 0px 0px 0px 0px;
- border-left: 2px solid rgba(12, 97, 197, 0.20);
- border-right: 2px solid rgba(12, 97, 197, 0.20);;
- box-sizing: border-box;
- // border-image: linear-gradient(347deg, rgba(31, 107, 255, 1), rgba(164, 195, 255, 1)) 1 1;
- span{
- display: block;
- font-family: Microsoft YaHei UI, Microsoft YaHei UI;
- color: #FFFFFF;
- text-align: center;
- font-style: normal;
- text-transform: none;
- }
- .l_huoqing{
- font-size: 13px;
- line-height: 15px;
- font-weight: bold;
- line-height: 2;
- }
- .l_time{
- font-size: 12px;
- line-height: 14px;
- font-weight: 400;
- }
- }
- .ve_timeioc{
- width: 150px;
- height: 70px;
- // border-radius: 0px 0px 0px 0px;
- // border: 1px solid;
- // border-image: linear-gradient(347deg, rgba(16, 92, 240, 1), rgba(164, 195, 255, 1)) 1 1;
- font-family: Microsoft YaHei UI, Microsoft YaHei UI;
- font-weight: bold;
- font-size: 13px;
- color: #68ADFF;
- line-height: 15px;
- text-align: center;
- font-style: normal;
- text-transform: none;
- display: flex;
- justify-content: center;
- align-items: center;
- span{
- padding-left: 15px;
- }
- }
- }
- }
- </style>
- <style>
- body{
- width: 100%;
- height: 100vh;
- background: #161A2A ;
- }
- </style>
-
-
|