configurator.vue 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. <template>
  2. <div class="appmian">
  3. <el-container>
  4. <el-header>
  5. <div class="ve_menu_logo">
  6. <div class="ve_title">
  7. <div class="ve_logo_img">
  8. <el-image
  9. style="height: 100%"
  10. :src="logo"
  11. fit="contain"
  12. ></el-image>
  13. </div>
  14. <h3 class="ve_logo_title">
  15. {{ title }}
  16. </h3>
  17. </div>
  18. <el-menu
  19. :default-active="activeIndex"
  20. class="el-menu-demo"
  21. mode="horizontal"
  22. :popper-offset="2"
  23. style="width:780px"
  24. background-color="#0D1639 "
  25. active-background-color="#0E50C8"
  26. text-color="#68ADFF"
  27. active-text-color="#fff"
  28. @select="handleSelect"
  29. >
  30. <el-menu-item index="1">矿井信息</el-menu-item>
  31. <el-menu-item index="2">传感器信息</el-menu-item>
  32. <el-menu-item index="3" >监测点信息</el-menu-item>
  33. <el-menu-item index="4">物理属性</el-menu-item>
  34. </el-menu>
  35. <div class="ve_right" @click="clickreture()">
  36. <div class="ve_timeioc">
  37. <el-image
  38. :src="Vector"
  39. fit="contain"
  40. ></el-image>
  41. <span>返回主界面</span>
  42. </div>
  43. </div>
  44. </div>
  45. </el-header>
  46. <el-main>
  47. <MenuMine ref="menumine"/>
  48. <MenuSensor ref="menusen"/>
  49. <MenuCheck ref="menucheck"/>
  50. <menuphysics2 ref="menuphysics"/>
  51. </el-main>
  52. </el-container>
  53. </div>
  54. </template>
  55. <script setup>
  56. import { ref, onMounted,watch,reactive,nextTick} from "vue";
  57. import {RouterView,RouterLink,useRouter,createRouter } from "vue-router"
  58. import MenuMine from "./components/MenuMine.vue"
  59. import MenuSensor from "./components/MenuSensor.vue"
  60. import MenuCheck from "./components/MenuCheck.vue"
  61. import menuphysics2 from "./components/MenuPhysics.vue"
  62. import Vector from "@/assets/img/Vector.png";
  63. import icon from "@/assets/img/icon.png";
  64. import logo from "@/assets/logo.png";
  65. const title = "灾情推演软件";
  66. const activeIndex = ref('')
  67. onMounted(() => {
  68. });
  69. // beforeRouteLeave((to,from,next)=>{
  70. // to.meta.keepAlive = true
  71. // next(0)
  72. // })
  73. // beforeRouteLeave(to, from, next){
  74. // to.meta.keepAlive = true;
  75. // next(0);
  76. // }
  77. let router=useRouter();
  78. let menumine=ref();
  79. let menusen=ref();
  80. let menucheck =ref();
  81. let menuphysics=ref();
  82. const clickreture=()=>{
  83. // router.push("/");
  84. //router.back()
  85. router.go(-1)
  86. }
  87. const handleSelect = (key,keyPath) => {
  88. switch (key) {
  89. case '1':
  90. menumine.value.dialogVisible=true;
  91. menusen.value.sendialogVisible=false;
  92. menucheck.value.sendialogVisible=false;
  93. menuphysics.value.sendialogVisible=false;
  94. break;
  95. case '2':
  96. menumine.value.dialogVisible=false;
  97. menusen.value.sendialogVisible=true;
  98. menucheck.value.sendialogVisible=false;
  99. menuphysics.value.sendialogVisible=false;
  100. break;
  101. case '3':
  102. menumine.value.dialogVisible=false;
  103. menucheck.value.sendialogVisible=true;
  104. menusen.value.sendialogVisible=false;
  105. menuphysics.value.sendialogVisible=false;
  106. break;
  107. case '4':
  108. menumine.value.dialogVisible=false;
  109. menucheck.value.sendialogVisible=false;
  110. menusen.value.sendialogVisible=false;
  111. menuphysics.value.sendialogVisible=true;
  112. default:
  113. break;
  114. }
  115. }
  116. watch(router, (to, from) => {
  117. router.go(0)
  118. })
  119. </script>
  120. <style lang="scss" scoped>
  121. .appmian{
  122. .el-main{
  123. --el-main-padding: 0 !important;
  124. }
  125. .el-header{
  126. padding:0;
  127. margin: 0;
  128. width: 100%;
  129. position: absolute;
  130. z-index: 206;
  131. top: 0;
  132. }
  133. }
  134. .ve_menu_logo {
  135. width: 100%;
  136. height:70px;
  137. background: #0D1639;
  138. white-space: nowrap;
  139. text-align: left;
  140. overflow: hidden;
  141. display: flex;
  142. background: #0D1639;
  143. box-shadow: inset 0px 0px 17px 5px rgba(12,97,197,0.2);
  144. border-radius: 0px 0px 0px 0px;
  145. border-bottom: 1px solid;
  146. box-sizing: border-box;
  147. border-image: linear-gradient(28deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0)) 1 1;
  148. .ve_title{
  149. }
  150. .ve_logo_img {
  151. padding-left: 30px;
  152. height: 100%;
  153. display: inline-block;
  154. box-sizing: border-box;
  155. vertical-align: middle;
  156. padding: 15px;
  157. }
  158. .ve_logo_title {
  159. width: 160px;
  160. white-space: nowrap;
  161. overflow: hidden;
  162. text-overflow: ellipsis;
  163. display: inline-block;
  164. margin: 0;
  165. vertical-align: middle;
  166. color: #68ADFF;
  167. font-size: 20px;
  168. }
  169. .el-menu-demo{
  170. width:60% !important;
  171. height: 70px;
  172. border: none !important;
  173. background: rgba(12,97,197,0);
  174. .el-menu-item{
  175. position: relative;
  176. width: 97px;
  177. font-family: Microsoft YaHei UI, Microsoft YaHei UI;
  178. font-weight: bold;
  179. font-size: 13px;
  180. color: #68ADFF;
  181. line-height: 15px;
  182. text-align: center;
  183. font-style: normal;
  184. text-transform: none;
  185. width: 110px;
  186. height: 70px;
  187. border-radius: 0px 0px 0px 0px;
  188. border:none;
  189. }
  190. .is-active{
  191. width: 110px;
  192. height: 70px;
  193. background:radial-gradient(ellipse at 54px 0px, #3AA0FF -37%, #123066 53%);
  194. border-radius: 0px 0px 0px 0px;
  195. border: 1px solid;
  196. border-left: 1px solid rgba(16, 92, 240, 1);
  197. border-right: 1px solid rgba(18, 48, 102, 1);
  198. border-image: linear-gradient(347deg, rgba(16, 92, 240, 1), rgba(18, 48, 102, 1)) 1 1;
  199. &:after {
  200. width: 24px;
  201. height: 1px;
  202. background-color: #fff;
  203. -webkit-transition: all ease-out 0.2s;
  204. transition: all ease-out 0.2s;
  205. content: "";
  206. position: absolute;
  207. left: 50%;
  208. bottom: 15px;
  209. webkit-transform: translate(-50%, 0%);
  210. -moz-transform: translate(-50%,0%);
  211. transform: translate(-50%, 0%);
  212. }
  213. }
  214. }
  215. .ve_right{
  216. height: 70px;
  217. overflow: hidden;
  218. position:absolute;
  219. right: 0;
  220. display: flex;
  221. .ve_time{
  222. width: 190px;
  223. height: 55px;
  224. padding-top: 15px;
  225. height: 70px;
  226. border-radius: 0px 0px 0px 0px;
  227. border-left: 2px solid rgba(12, 97, 197, 0.20);
  228. border-right: 2px solid rgba(12, 97, 197, 0.20);;
  229. box-sizing: border-box;
  230. // border-image: linear-gradient(347deg, rgba(31, 107, 255, 1), rgba(164, 195, 255, 1)) 1 1;
  231. span{
  232. display: block;
  233. font-family: Microsoft YaHei UI, Microsoft YaHei UI;
  234. color: #FFFFFF;
  235. text-align: center;
  236. font-style: normal;
  237. text-transform: none;
  238. }
  239. .l_huoqing{
  240. font-size: 13px;
  241. line-height: 15px;
  242. font-weight: bold;
  243. line-height: 2;
  244. }
  245. .l_time{
  246. font-size: 12px;
  247. line-height: 14px;
  248. font-weight: 400;
  249. }
  250. }
  251. .ve_timeioc{
  252. width: 150px;
  253. height: 70px;
  254. // border-radius: 0px 0px 0px 0px;
  255. // border: 1px solid;
  256. // border-image: linear-gradient(347deg, rgba(16, 92, 240, 1), rgba(164, 195, 255, 1)) 1 1;
  257. font-family: Microsoft YaHei UI, Microsoft YaHei UI;
  258. font-weight: bold;
  259. font-size: 13px;
  260. color: #68ADFF;
  261. line-height: 15px;
  262. text-align: center;
  263. font-style: normal;
  264. text-transform: none;
  265. display: flex;
  266. justify-content: center;
  267. align-items: center;
  268. span{
  269. padding-left: 15px;
  270. }
  271. }
  272. }
  273. }
  274. </style>
  275. <style>
  276. body{
  277. width: 100%;
  278. height: 100vh;
  279. background: #161A2A ;
  280. }
  281. button:focus, button:focus-visible{
  282. outline:none;
  283. }
  284. .l_Dialog{
  285. position: absolute;
  286. z-index: 206;
  287. top: 0;
  288. }
  289. </style>