From d656ff9cf8c97a01c0cc990d935e4b42b314be22 Mon Sep 17 00:00:00 2001 From: hanbaoshan <hanbaoshan@aiotlink.com> Date: 星期四, 06 八月 2020 18:21:50 +0800 Subject: [PATCH] 摄像机信息区域/时间规则,系统维护,实时监控,算力管理样式调整 --- src/pages/desktop/index/components/Tools.vue | 82 +++++++++++++++++++++++++++------------- 1 files changed, 55 insertions(+), 27 deletions(-) diff --git a/src/pages/desktop/index/components/Tools.vue b/src/pages/desktop/index/components/Tools.vue index 72b59ef..8bcadc0 100644 --- a/src/pages/desktop/index/components/Tools.vue +++ b/src/pages/desktop/index/components/Tools.vue @@ -5,44 +5,34 @@ :class="['tools-icon','tools-show-desktop', {clicked:this.$store.state.desktop.preferenceVisiable}]" @click="togglePreference()" > - <img class="system" :src="`${publicPath}images/header-icon/system.png`" /> - <!-- <span class="fa fa-apple"></span> --> + <img class="system" :src="`${publicPath}images/desktop/header-icon/system.png`" /> </div> - <div class="tools-icon"> - <!-- <span class="fa fa-safari"></span> --> - <img class="smart-ai" :src="`${publicPath}images/header-icon/SmartAI.png`" alt /> + <div class="tools-icon no-hover-style"> + <img class="smart-ai" :src="`${publicPath}images/desktop/header-icon/SmartAI.png`" alt /> </div> </div> <div class="tools-middle"> - <div v-for="dock in this.$store.state.desktop.minDocks" :key="dock.id" class="dock-item-wrap"> + <div v-for="dock in $store.state.desktop.minDocks" :key="dock.id" class="dock-item-wrap" :class="{'actived':dock.highlight}"> <a @click="dockClick(dock)"> <img class="dock-item" :src="dock.src" :alt="dock.alt" /> + <img class="dock-shot" :src="dock.screenshot" v-if="dock.screenshot"/> + </a> </div> </div> <div class="tools-right"> <div class="tools-icon"> - <!-- <span class="fa fa-battery-full"></span> --> - <img :src="`${publicPath}images/header-icon/search.png`" alt /> + <img :src="`${publicPath}images/desktop/header-icon/search.png`" alt /> </div> <div class="tools-icon"> - <!-- <span class="fa fa-battery-full"></span> --> - <img :src="`${publicPath}images/header-icon/help.png`" alt /> + <img :src="`${publicPath}images/desktop/header-icon/help.png`" alt /> </div> <div class="tools-icon" @click="notificationCenterClick()"> - <!-- <span class="fa fa-battery-full"></span> --> - <img :src="`${publicPath}images/header-icon/notice.png`" alt /> + <img :src="`${publicPath}images/desktop/header-icon/notice.png`" alt /> </div> <div class="tools-icon"> - <!-- <span class="fa fa-battery-full"></span> --> - <img :src="`${publicPath}images/header-icon/user.png`" alt /> + <img :src="`${publicPath}images/desktop/header-icon/user.png`" alt /> </div> - <!-- <timer></timer> --> - <!-- <div class="tools-icon tools-notification-center" @click="notificationCenterClick()"> - <span - :class="['fa', {'fa-list-ul':notificationCenterNoMessage()}, {'fa-comment-o on-new-msg':!notificationCenterNoMessage()},{'fa-commenting-o':notificationCenterMessageFlicker()}]" - ></span> - </div>--> </div> </div> </template> @@ -55,7 +45,9 @@ return { publicPath: process.env.BASE_URL, notificationCenterVisible: false, - notificationCenterMessageCount: 0 + notificationCenterMessageCount: 0, + maxOrder: 0, + maxOrderOne: '' }; }, created() { @@ -69,6 +61,23 @@ }, 600) ]; }, + // watch:{ + // '$store.state.desktop.frames':{ + // handler(n,o){ + // if(n){ + // debugger; + // n.forEach((item,index) => { + // if(item.order >= this.maxOrder){ + // this.maxOrderOne = item.id; + // } + // }); + // } + // }, + // deep: true + // } + // }, + + methods: { notificationCenterClick: function () { this.notificationCenterVisible = !this.notificationCenterVisible; @@ -96,11 +105,13 @@ id: frame.id, src: frame.icon, alt: frame.title, - type: "3" + type: "3", + screenshot: '' }); }) }, dockClick(dock) { + debugger if (dock.type === "1") { window.open(dock.url); } else if (dock.type === "2") { @@ -112,6 +123,9 @@ }); } else if (dock.type === "3") { this.$store.commit("desktop/resetMinFrame", dock.id); + //鐐瑰嚮鐨刬frame缃《骞堕珮浜� + debugger + this.$store.commit("desktop/refreshFrame", dock); } } } @@ -161,13 +175,15 @@ line-height: 54px; margin-right: 1px; border-bottom: 2px solid transparent; + position: relative; } -.tools .tools-middle .dock-item-wrap:hover, -.tools .tools-middle .dock-item-wrap.clicked { +.tools .tools-middle .dock-item-wrap:hover{ color: white; background-color: #98aabe; +} +.tools-middle .dock-item-wrap.actived{ border-color: #40c3ff; - cursor: pointer; + background-color: #98aabe; } .dock-item-wrap a { height: 100%; @@ -175,6 +191,18 @@ .dock-item-wrap img { width: auto; height: 70%; +} +.dock-item-wrap .dock-shot { + visibility: hidden; + width: 100px; + height: 46px; + position: absolute; + top: 44px; + left: -50%; +} +.tools .tools-middle .dock-item-wrap:hover .dock-shot, +.tools .tools-middle .dock-item-wrap.clicked .dock-shot { + visibility: visible; } .tools-icon { text-align: center; @@ -185,8 +213,8 @@ padding: 0 15px; } -.tools .tools-icon:hover, -.tools .tools-icon.clicked { +.tools .tools-icon:not(.no-hover-style):hover, +.tools .tools-icon:not(.no-hover-style).clicked { color: white; background-color: #98aabe; cursor: pointer; -- Gitblit v1.8.0