k94314517
2023-08-11 d52b2bdc62a5722a96d3999a9ed96640f3945f91
web_standard/src/components/common/Header.vue
@@ -12,9 +12,10 @@
            <img src="@/assets/images/ic_help@2x.png" alt="" />
            <span>帮助文档</span>
          </div>
          <div style="margin-right: 10px;">企业代码: {{ tempId }}</div>
          <el-dropdown trigger="click" style="margin-right: 20px;" v-userState @command="select">
            <span class="el-dropdown-link">
              {{ tempC }}<i class="el-icon-arrow-down el-icon--right"></i>
            {{ tempC }}<i class="el-icon-arrow-down el-icon--right"></i>
            </span>
            <el-dropdown-menu slot="dropdown">
              <el-dropdown-item v-for="(item, index) in cList" :key="index" :command='item.id'>{{ item.name }}</el-dropdown-item>
@@ -73,6 +74,7 @@
  data () {
    return {
      tempC: '',
      tempId: '',
      cList: '',
      visible: {
        // 修改密码
@@ -127,7 +129,10 @@
    }
  },
  created () {
    this.tempC = this.userInfo.curComDepartment ? this.userInfo.curComDepartment.name : ''
    if (this.userInfo.curComDepartment) {
      this.tempC = this.userInfo.curComDepartment.name
      this.tempId = this.userInfo.curComDepartment.id
    }
    getDepartmentListByConditon({
      type: 0
    })