From 07958c244e49e561718b97cac6a7168eeb61b5e7 Mon Sep 17 00:00:00 2001
From: ZZJ <zzjdsg2300@163.com>
Date: 星期三, 20 十月 2021 10:32:23 +0800
Subject: [PATCH] 系统监控bug修复

---
 src/pages/desktop/index/components/DFrame.vue |   28 +++++++++++++++++++++++-----
 1 files changed, 23 insertions(+), 5 deletions(-)

diff --git a/src/pages/desktop/index/components/DFrame.vue b/src/pages/desktop/index/components/DFrame.vue
index a9eeec8..d985c12 100644
--- a/src/pages/desktop/index/components/DFrame.vue
+++ b/src/pages/desktop/index/components/DFrame.vue
@@ -8,7 +8,8 @@
     v-bind:style="{left: data.leftOffset + 'px', top: data.topOffset + 'px', 'z-index': 125 + data.order, width: width + 'px', height: height + 'px'}"
   >
     <div class="d-frame-title" v-drag='fullScreen' @click="frameClick">
-      <div class="d-frame-title-operation">
+      <div class="icon iconfont back" @click="back">&#xe718;</div>
+      <div class="d-frame-title-operation"> 
         <i class="icon-minus d-frame-operation-minus" @click="minFrame(data,$event)">
           <img :src="`${publicPath}images/desktop/header-icon/min.png`" alt />
         </i>
@@ -190,6 +191,16 @@
 
     },
 
+    back(){
+      let active = this.$store.state.desktop.minDocks
+      active = active.filter(item => item.highlight)
+      console.log(`杩斿洖${active.alt}`);
+      const iframeArr = document.querySelectorAll("iframe")
+      iframeArr.forEach(item=>{
+          item.contentWindow.postMessage({msg:`杩斿洖${active[0].alt}`},"*")
+      })
+    }
+
   },
   directives: {
     drag(el, binding) {
@@ -303,6 +314,13 @@
   z-index: 2;
 }
 
+.back {
+  position: absolute;
+  cursor: pointer;
+  top: 8px;
+  left: 10px;
+}
+
 .d-frame-title-operation i {
   font-size: 18px;
   display: inline-block;
@@ -337,7 +355,7 @@
 .d-frame-title-content {
   line-height: 30px;
   text-align: center;
-  background: #dee1e6;
+  background: #eeeeee;
 }
 
 .d-frame-title-content img {
@@ -352,15 +370,15 @@
   position: relative;
   top: -1px;
   font-size: 15px;
-  color: #777;
-  /* font-family: '榛戜綋'; */
+ color: #000000;
+  font-family: "PingFang SC";
 }
 
 .d-frame-content {
   width: 100%;
   height: calc(100% - 30px);
   border-radius: 0 0 4px 4px;
-  background-color: #fff;
+  /* background-color: #fff; */
 }
 .d-frame-full .d-frame-content{
   height: calc(100% - 71px);

--
Gitblit v1.8.0