From 301df333c4dc0c28cee67a8579784bd1c3b85abe Mon Sep 17 00:00:00 2001
From: zhuzhuanzhuan
Date: 星期四, 22 二月 2024 15:07:51 +0800
Subject: [PATCH] 1、标准加工时间页面取消按照时间查询 2、设备利用率、设备开动率以及班次利用率页面查询区域日期被删除后因查询不到数据时表格中不会出现任何数据且无提示,故增加提示及禁止删除日期 3、设备综合效率分析页面和设备加工工件报表页面时间被手动清空与点击重置按钮清空后的查询条件不同,调整为时间为空时则查询除时间限定内所有数据 4、利用率走势分析、利用率分段分析以及报警分析页面简化页面查询功能,禁止删除日期 5、优化假期管理、加工数量管理以及合格率管理页面手动清空日期后无法正常查询数据 6、统计分析与统计图表页面调整重置按钮功能为重置名称为第一级车间以及日期为当日前一天,且无法手动清空日期 7、对比分析页面调整重置按钮功能为重置日期为当日前一周,且无法手动清空日期

---
 src/components/page/GlobalHeader.vue |   63 +++++++++++++++++++++++++++++--
 1 files changed, 59 insertions(+), 4 deletions(-)

diff --git a/src/components/page/GlobalHeader.vue b/src/components/page/GlobalHeader.vue
index aceaf87..c1a9b71 100644
--- a/src/components/page/GlobalHeader.vue
+++ b/src/components/page/GlobalHeader.vue
@@ -25,7 +25,11 @@
     <div v-else :class="['top-nav-header-index', theme]">
       <div class="header-index-wide">
         <div class="header-index-left" :style="topMenuStyle.headerIndexLeft">
-          <logo class="top-nav-header" :show-title="device !== 'mobile'" :style="topMenuStyle.topNavHeader"/>
+          <logo class="top-nav-header" :show-title="showTitle" :style="topMenuStyle.topNavHeader"/>
+          <div class="top-nav-text">
+            <div style="width:100%;height: 50%;line-height:35px">瀵嗙骇锛氬唴閮�</div>
+            <div style="width:100%;height: 50%;line-height:25px">璀﹀憡锛氭湰绯荤粺绂佹瀛樺偍銆佸鐞嗐�佷紶杈撴秹瀵嗕俊鎭�</div>
+          </div>
           <div v-if="device !== 'mobile'" :style="topMenuStyle.topSmenuStyle">
             <s-menu
               mode="horizontal"
@@ -58,7 +62,7 @@
     components: {
       UserMenu,
       SMenu,
-      Logo,
+      Logo
     },
     mixins: [mixin],
     props: {
@@ -98,6 +102,7 @@
           topSmenuStyle: {}
         },
         chatStatus: '',
+        showTitle: true
       }
     },
     watch: {
@@ -121,6 +126,8 @@
       if (this.mode === 'topmenu') {
         this.buildTopMenuStyle()
       }
+      window.addEventListener('resize', this.handleResize)
+      this.topMenuStyle.topNavHeader = { 'min-width': '165px', width: '165px' }
       //update-end--author:sunjianlei---date:20190508------for: 椤堕儴瀵艰埅鏍忚繃闀挎椂鏄剧ず鏇村鎸夐挳-----
     },
     methods: {
@@ -150,8 +157,8 @@
             this.topMenuStyle.headerIndexLeft = {}
           } else {
             let rightWidth = '360px'
-            this.topMenuStyle.topNavHeader = { 'min-width': '165px' }
-            this.topMenuStyle.topSmenuStyle = { 'width': 'calc(100% - 165px)' }
+            this.topMenuStyle.topNavHeader = { 'min-width': '50px', width: '50px' }
+            this.topMenuStyle.topSmenuStyle = { 'width': 'calc(100% - 350px)' }
             this.topMenuStyle.headerIndexRight = { 'min-width': rightWidth }
             this.topMenuStyle.headerIndexLeft = { 'width': `calc(100% - ${rightWidth})` }
           }
@@ -165,6 +172,20 @@
       },
       // update-end-author:sunjianlei date:20210508 for: 淇鍔ㄦ�佸姛鑳芥祴璇曡彍鍗曘�佸甫鍙傛暟鑿滃崟鏍囬閿欒銆佸睍寮�閿欒鐨勯棶棰�
 
+      handleResize() {
+        console.log('瑙﹀彂灏哄鏀瑰彉', window.innerWidth)
+        if (window.innerWidth > 1680) {
+          this.showTitle = true
+          this.topMenuStyle.topNavHeader = { 'min-width': '165px' }
+          this.topMenuStyle.topSmenuStyle = { 'width': 'calc(100% - 165px)' }
+        } else if (window.innerWidth <= 1680 && window.innerWidth > 1280) {
+          this.showTitle = false
+          this.topMenuStyle.topNavHeader = { 'min-width': '50px', width: '50px' }
+          this.topMenuStyle.topSmenuStyle = { 'width': 'calc(100% - 250px)' }
+        } else if (window.innerWidth <= 1280 && window.innerWidth > 960) {
+          this.topMenuStyle.topSmenuStyle = { 'width': 'calc(100% - 350px)' }
+        }
+      }
     }
   }
 </script>
@@ -223,4 +244,38 @@
 
   /* update_end author:scott date:20190220 for: 缂╁皬棣栭〉甯冨眬椤堕儴鐨勯珮搴�*/
 
+  .top-nav-text {
+    color: #f00;
+    height: 100%
+  }
+
+  @media screen and (min-width: 1920px) {
+    .top-nav-text {
+      min-width: 400px;
+    }
+  }
+
+  @media screen and (min-width: 1680px) and (max-width: 1920px) {
+    .top-nav-text {
+      min-width: 300px;
+    }
+  }
+
+  @media screen and (min-width: 1400px) and (max-width: 1680px) {
+    .top-nav-text {
+      min-width: 300px;
+    }
+  }
+
+  @media screen and (min-width: 1280px) and (max-width: 1400px) {
+    .top-nav-text {
+      min-width: 450px;
+    }
+  }
+
+  @media screen and (max-width: 1280px) {
+    .top-nav-text {
+      min-width: 300px;
+    }
+  }
 </style>
\ No newline at end of file

--
Gitblit v1.9.3