From b186f5b20c4f83773f51786da0cd3e85130540c2 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期五, 22 五月 2026 16:32:01 +0800
Subject: [PATCH] feat(审批模板): 增强审批流程编辑器功能,新增只读模式——为 TemplateFlowEditor 添加了只读属性,以在流程不可编辑时防止进行修改。——更新审批模板表单部分,使其能够根据 flowEditable 状态条件性地显示可编辑选项。——优化了用户反馈机制,通过动态消息显示审批流程是否可进行修改。
---
src/layout/components/Navbar.vue | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index 0901626..aae5330 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) {
--
Gitblit v1.9.3