licp
2024-04-22 cd60a218f5c1547dbc62cf4be78c31132b0f7628
src/view/index.vue
@@ -16,7 +16,7 @@
   }
   .logo {
      width: 130px;
      width: 118px;
      height: 40px;
   }
@@ -295,6 +295,9 @@
         </div>
         <div class="label">LIMS实验室管理系统</div>
         <div class="user">
        <el-badge is-dot style="cursor: pointer;margin-right: 10px;">
          <i class="el-icon-bell" style="font-size: 20px;" @click="openNotice"></i>
        </el-badge>
        <el-dropdown trigger="click" @command="handleCommand">
          <el-avatar :size="26">{{ userName.substring(0, 1) }}</el-avatar>
              <span>{{ userName }}</span>
@@ -363,6 +366,7 @@
            </el-card>
         </el-col>
      </div>
    <!-- 修改密码 -->
    <el-dialog
      title="修改密码"
      :visible.sync="editVisible"
@@ -389,6 +393,7 @@
        <el-button type="primary" @click="handleEdit">确 定</el-button>
      </span>
    </el-dialog>
    <notice ref="notice" />
   </div>
</template>
@@ -405,9 +410,10 @@
   });
   import menus from '../../static/js/menu.js'
   import nullFace from '../view/404.vue'
  import notice from './notice.vue'
   comObj['nullFace'] = nullFace
   export default {
      components: comObj,
      components: {...comObj,notice},
      data() {
         return {
            userName: "value",
@@ -436,7 +442,7 @@
               k: 0,
               v: "个人首页",
               i: "font icon-a-Group1124",
               u: "nullFace"
               u: "index-index"
            }]
         }
         this.tabActive = JSON.parse(localStorage.getItem('tabActive'))
@@ -499,7 +505,7 @@
               k: 0,
               v: "个人首页",
               i: "font icon-a-Group1124",
               u: "nullFace"
               u: "index-index"
            }]
            this.saveClick()
         },
@@ -607,6 +613,9 @@
      handleClose(){
        this.editVisible = false
        this.query = {}
      },
      openNotice(){
        this.$refs.notice.open()
      }
      }
   };