ll
liukangdong
2024-10-15 1477a1353e96b5620a29c78e2b08647a1a2bc5b7
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) {