From cd60a218f5c1547dbc62cf4be78c31132b0f7628 Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期一, 22 四月 2024 17:26:54 +0800 Subject: [PATCH] Merge branch 'master' of http://114.132.189.42:9002/r/center-lims-before into master --- src/view/index.vue | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/view/index.vue b/src/view/index.vue index 997095b..77afae7 100644 --- a/src/view/index.vue +++ b/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() } } }; -- Gitblit v1.9.3