Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
I
integrity_practice_management_new
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
David Yang
integrity_practice_management_new
Commits
b08715fd
Commit
b08715fd
authored
Oct 09, 2026
by
drigle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 推送弹框用户搜索自动展开候选列表
parent
0c1be1bb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
UserAssignmentDialog.jsx
...es/integrity_practice_management/UserAssignmentDialog.jsx
+4
-1
integrity-practice-management.business-flow.md
...management/integrity-practice-management.business-flow.md
+2
-0
No files found.
src/pages/integrity_practice_management/UserAssignmentDialog.jsx
View file @
b08715fd
...
...
@@ -15,9 +15,9 @@ function UserMultiSelect({ label, value, onChange }) {
useEffect
(()
=>
{
let
cancelled
=
false
;
const
timer
=
window
.
setTimeout
(
async
()
=>
{
setLoading
(
true
);
setError
(
''
);
const
timer
=
window
.
setTimeout
(
async
()
=>
{
try
{
const
text
=
query
.
trim
();
const
filter
=
text
?
{
$or
:
[{
username
:
{
$regex
:
text
}
},
{
display_name
:
{
$regex
:
text
}
}]
}
:
{};
...
...
@@ -40,8 +40,11 @@ function UserMultiSelect({ label, value, onChange }) {
<
div
className=
"space-y-2"
>
<
Label
>
{
label
}
</
Label
>
<
ComboBox
allowsEmptyCollection
fullWidth
inputValue=
{
query
}
// Remote results already match both username and display_name.
items=
{
availableOptions
}
menuTrigger=
"focus"
selectedKey=
{
null
}
onInputChange=
{
setQuery
}
...
...
src/pages/integrity_practice_management/integrity-practice-management.business-flow.md
View file @
b08715fd
...
...
@@ -131,6 +131,8 @@ Grid 视图配置示例(列举的是配置片段,修改时应保留完整原
入口:自查底稿填写表 -> “推送自查底稿填写表”。
1.
通过 HeroUI Modal 中的远程 ComboBox 搜索选择填报人和审核人;两组人员都不能为空,只保存用户
`_id[]`
。
-
聚焦或输入搜索词时自动展开候选列表,无需再次点击下拉按钮;按用户名或显示名进行远程搜索,直接展示接口返回的匹配用户,不再按显示名二次过滤。
-
搜索防抖等待和请求期间显示加载提示;无结果或请求失败时在下拉列表中显示对应提示。已选用户从候选列表中排除,避免重复添加。
2.
推送前逐条调用
`GET /record/:name`
读取所选底稿完整详情,从
`metadata.project_outcome`
提取并去重结果 ID;全部底稿通过非空校验后才执行写入。将填报人写入关联
`self_check_the_project_results.metadata.informant`
,同时写入填写表
`metadata.editor`
。
3.
创建
`message_reference_id`
,保存发送人、填报人、审核人、Subject、View、关联记录和限制条件。
4.
为每个填报人调用
`oa_notice:createProgress`
创建 OA 待办,并将任务 ID 写入
`metadata.progress_id_editor`
。
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment