From 3df8b1aa4ac3d5ca030121ab7ee9387e9d106951 Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期五, 09 十月 2026 10:58:54 +0800
Subject: [PATCH] feat: 增加科目总账明细表excel导出 和 凭证增加记账凭证work导出
---
src/layout/components/Navbar.vue | 27 +++++++++++++++++++++++++--
1 files changed, 25 insertions(+), 2 deletions(-)
diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index 0901626..5fec07a 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -15,13 +15,18 @@
</div>
<div class="center-zone">
- <el-icon class="search-icon"><Search /></el-icon>
+ <el-icon class="search-icon" @click="openHeaderSearch"><Search /></el-icon>
<el-input
v-model="topSearchKeyword"
placeholder="鎼滅储鑿滃崟 / 鍔熻兘 / 鏁版嵁"
clearable
+ @keyup.enter="openHeaderSearch"
/>
- <header-search class="search-popup-trigger" />
+ <header-search
+ ref="headerSearchRef"
+ :keyword="topSearchKeyword"
+ class="search-popup-trigger"
+ />
</div>
<div class="right-menu">
@@ -95,12 +100,17 @@
const settingsStore = useSettingsStore();
const topSearchKeyword = ref("");
+const headerSearchRef = ref(null);
const notificationVisible = ref(false);
const notificationCenterRef = ref(null);
const unreadCount = ref(0);
function toggleSideBar() {
appStore.toggleSideBar();
+}
+
+function openHeaderSearch() {
+ headerSearchRef.value?.open(topSearchKeyword.value);
}
function handleCommand(command) {
@@ -226,6 +236,7 @@
.search-icon {
color: #5b86c9;
+ cursor: pointer;
}
.center-zone :deep(.el-input__wrapper) {
@@ -290,6 +301,7 @@
height: 100%;
display: flex;
align-items: center;
+ flex-shrink: 0;
}
.avatar-container :deep(.el-dropdown) {
@@ -314,6 +326,7 @@
flex-direction: column;
align-items: flex-end;
gap: 2px;
+ flex-shrink: 0;
}
.user-name {
@@ -328,6 +341,16 @@
line-height: 1;
}
+// 鏄电О/瑙掕壊濮嬬粓鍗曡锛岃繃闀挎椂鐪佺暐锛屼笉鎹㈣鎾戦珮瀵艰埅鏍�
+.user-name,
+.user-role {
+ white-space: nowrap;
+ max-width: 180px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ text-align: right;
+}
+
.user-avatar {
cursor: pointer;
width: 36px;
--
Gitblit v1.9.3