123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257 |
- <template>
- <div class="main-container-box">
- <div class="nav-header">
- 安防综合管理平台
- <nav1/>
- <!-- <sidebar class="sidebar-container" /> -->
- <div class="time-menu">
- <time-menu></time-menu>
- </div>
- </div>
- <div class="panel-box">
- <div class="column1">
- <sbjk></sbjk>
- <monitor></monitor>
- </div>
- <div class="column2">
- <alarm-static></alarm-static>
- <handle-number></handle-number>
- <alarming></alarming>
- </div>
- </div>
- </div>
- </template>
- <script>
- import TimeMenu from "@/components/TimeMenu";
- import sbjk from "./components/sbjk";
- import monitor from "./components/monitor";
- import alarming from "./components/alarming";
- import handleNumber from "./components/handleNumber";
- import alarmStatic from "./components/alarmStatic";
- import nav1 from "./components/nav1";
- import SidebarItem from "@/layout/components/Sidebar/SidebarItem";
- import { mapGetters } from "vuex";
- import variables from "@/styles/variables.scss";
- export default {
- // components: { sbjk, monitor, alarming, handleNumber, alarmStatic, TimeMenu},
- components: {
- sbjk,
- monitor,
- alarming,
- handleNumber,
- alarmStatic,
- TimeMenu,
- nav1,
- },
-
- };
- </script>
- <style lang="scss">
- /* 修复input 背景不协调 和光标变色 */
- /* Detail see https://github.com/PanJiaChen/vue-element-admin/pull/927 */
- $bg: #283443;
- $light_gray: #fff;
- $cursor: #fff;
- @supports (-webkit-mask: none) and (not (cater-color: $cursor)) {
- .main-container-box .el-input input {
- color: $cursor;
- }
- }
- </style>
- <style lang="scss" scoped>
- // @import "../../styles/mixin.scss";
- </style>
- <style lang="scss" >
- /* 初始化 */
- ul {
- padding: 0;
- margin: 0;
- list-style: none;
- }
- li,
- p {
- padding: 0;
- margin: 0;
- list-style: none;
- }
- .colorSuccess {
- color: #01e416;
- }
- .colorUnhandle {
- color: rgb(248, 72, 3);
- }
- .colorOverTime {
- color: #0bc3ff;
- }
- .colorUnpass {
- color: #fd7700;
- }
- .colorTotal {
- color: #ffec16;
- }
- // 时间菜单插件
- .nav-header {
- .time-menu .right-time.date {
- font-size: 1.6rem;
- line-height: 4.5rem;
- }
- .right-sec .right-menu {
- line-height: 4.5rem;
- }
- .right-sec
- .right-menu
- .avatar-container
- .avatar-wrapper
- .el-icon-caret-bottom {
- top: 1.6rem;
- }
- .svg-icon{
- display:none!important;
- }
- }
- /* 首页公共css */
- .main-container-box {
- min-width: 1024px;
- background: url(../../assets/bg.png);
- background-size: 100% 100%;
- background-repeat: no-repeat;
- overflow: hidden;
- color: #fff;
- }
- .nav-header {
- color: #fff;
- text-align: center;
- font-size: 4rem;
- line-height: 8rem;
- background: url(../../assets/nav-header-bg.png);
- background-size: 100% 100%;
- background-repeat: no-repeat;
- }
- .panel-box {
- min-width: 1024px;
- max-width: 1920px;
- min-height: 650px;
- position: relative;
- height: calc(100vh - 8rem);
- display: flex;
- > div {
- position: absolute;
- top: 0;
- width: 23%;
- }
- .column1 {
- left: 1rem;
- }
- .column2 {
- right: 1rem;
- }
- }
- .panel {
- position: relative;
- background: #021132;
- border: 1px solid #3486da;
- .panel-tit {
- background: linear-gradient(
- to right,
- #021132 0%,
- #3053af 50%,
- #021132 100%
- );
- padding: 1.2rem;
- color: #fff;
- text-align: center;
- font-size: 1.6rem;
- font-family: "impact";
- }
- }
- .panel::before {
- position: absolute;
- top: 0;
- left: 0;
- content: "";
- width: 10px;
- height: 10px;
- border-top: 2px solid #02a6b5;
- border-left: 2px solid #02a6b5;
- }
- .panel::after {
- position: absolute;
- top: 0;
- right: 0;
- content: "";
- width: 10px;
- height: 10px;
- border-top: 2px solid #02a6b5;
- border-right: 2px solid #02a6b5;
- }
- .panel .panel-footer {
- position: absolute;
- left: 0;
- bottom: 0;
- width: 100%;
- }
- .panel .panel-footer::before {
- position: absolute;
- bottom: 0;
- left: 0;
- content: "";
- width: 10px;
- height: 10px;
- border-bottom: 2px solid #02a6b5;
- border-left: 2px solid #02a6b5;
- }
- .panel .panel-footer::after {
- position: absolute;
- bottom: 0;
- right: 0;
- content: "";
- width: 10px;
- height: 10px;
- border-bottom: 2px solid #02a6b5;
- border-right: 2px solid #02a6b5;
- }
- /* 约束屏幕尺寸 */
- @media screen and (max-width: 1024px) {
- html {
- font-size: 5px !important;
- }
- }
- @media screen and (min-width: 1920px) {
- html {
- font-size: 10px !important;
- }
- }
- </style>
- <style scoped>
- .el-menu--collapse .el-menu .el-submenu, .el-menu--popup{
- min-width:10rem!important;
- }
- </style>
|