From 17efddc6a667670dca682bf36b51a43e99615e6d Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期三, 16 十月 2024 15:59:38 +0800
Subject: [PATCH] 代码初始化

---
 admin/src/components/common/CommonHeader.vue |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/admin/src/components/common/CommonHeader.vue b/admin/src/components/common/CommonHeader.vue
index 4174818..cab4be2 100644
--- a/admin/src/components/common/CommonHeader.vue
+++ b/admin/src/components/common/CommonHeader.vue
@@ -8,10 +8,10 @@
             <div>鏈嶅姟涓績</div>
             <div class="linellae"></div>
           </div>
-          <div class="item">瀹夐槻涓績</div>
-          <div class="item">娑堥槻涓績</div>
-          <div class="item">鑳界涓績</div>
-          <div class="item">椹鹃┒鑸�</div>
+          <div class="item" @click="getHeaderNav('0')">瀹夐槻涓績</div>
+          <div class="item" @click="getHeaderNav('1')">娑堟帶涓績</div>
+          <div class="item" @click="getHeaderNav('2')">鑳界涓績</div>
+          <div class="item" @click="getHeaderNav('3')">椹鹃┒鑸�</div>
         </div>
         <!-- <div class="title-en">Diagnosis of Intelligent Manufacturing Integrated Service Platfrom</div> -->
       </div>
@@ -84,6 +84,7 @@
 import { mapState, mapMutations } from 'vuex'
 import GlobalAlertWindow from './GlobalAlertWindow'
 import { logout, updatePwd } from '@/api/system/common'
+import { getAppHeaderNav } from '@/api'
 export default {
   name: 'CommonHeader',
   components: { GlobalAlertWindow },
@@ -96,6 +97,7 @@
   data() {
     return {
       title: process.env.VUE_APP_TITLE,
+      headerNavData: {},
       visible: {
         // 淇敼瀵嗙爜
         changePwd: false
@@ -153,6 +155,11 @@
         this.$refs.changePwdDataForm.resetFields()
       })
     },
+    getHeaderNav(type){
+      getAppHeaderNav(type).then(res => {
+        window.open(res, "_blank");
+      })
+    },
     // 纭畾淇敼瀵嗙爜
     confirmChangePwd() {
       if (this.isWorking.changePwd) {

--
Gitblit v1.9.3