From cace4cbdf1884a2e1ab3806cb029099c837e1088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Mon, 14 Jul 2025 14:37:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=89=A7=E8=A1=8C=E4=BA=BA?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=A3=80=E7=B4=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/workbench/task/create.vue | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/pages/workbench/task/create.vue b/pages/workbench/task/create.vue index 9ca3b33..921ed2b 100644 --- a/pages/workbench/task/create.vue +++ b/pages/workbench/task/create.vue @@ -185,9 +185,18 @@ 选择执行人 × + + + + {{ user.nickName }} {{ user.deptName }} + + + 暂无匹配用户 + @@ -299,11 +312,22 @@ export default { projectIndex: -1, userList: [], selectedUsers: [], + userSearchKeyword: '', // 新增:用户搜索关键字 // userPopupVisible: false, // 不再需要 fileList: [], uploadedFiles: [] } }, + computed: { + filteredUserList() { + if (!this.userSearchKeyword.trim()) { + return this.userList; + } + return this.userList.filter(user => + user.nickName && user.nickName.includes(this.userSearchKeyword.trim()) + ); + } + }, onLoad() { this.initData() },