ll
liukangdong
2024-09-11 de0e3ab6247895cb9a375fb3c37e659b2297151c
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('')">安防中心</div>
          <div class="item" @click="getHeaderNav('')">消防中心</div>
          <div class="item" @click="getHeaderNav('')">能管中心</div>
          <div class="item" @click="getHeaderNav('')">驾驶舱</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,13 @@
        this.$refs.changePwdDataForm.resetFields()
      })
    },
    getHeaderNav(){
      getAppHeaderNav({
        type: ''
      }).then(res => {
        this.headerNavData = res
      })
    },
    // 确定修改密码
    confirmChangePwd() {
      if (this.isWorking.changePwd) {