Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
I
internal_regulation_manager_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
internal_regulation_manager_new
Commits
a6b49d2c
Commit
a6b49d2c
authored
Sep 28, 2026
by
drigle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 制度目录行操作对齐 streams-admin 修订/废止/备注逻辑
parent
f82fd5d5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
RegulationList.jsx
src/pages/internal_regulation_manager/RegulationList.jsx
+0
-0
internal-regulation.business-flow.md
...l_regulation_manager/internal-regulation.business-flow.md
+2
-2
internalRegulationService.js
src/services/internalRegulationService.js
+12
-0
No files found.
src/pages/internal_regulation_manager/RegulationList.jsx
View file @
a6b49d2c
This diff is collapsed.
Click to expand it.
src/pages/internal_regulation_manager/internal-regulation.business-flow.md
View file @
a6b49d2c
...
...
@@ -11,8 +11,8 @@
1.
页面读取
`internal_regulation`
Subject 定义,并从字段
`settings.options`
生成审批主体、制定部门等选项。
2.
列表按
`metadata.public_date`
倒序查询,支持制度名称搜索、时效性/位阶/部门/审批主体筛选与展示;制度名称输入后点击“查询”或按 Enter 才提交搜索,输入过程不实时请求;“批量下载”按当前已提交的搜索和筛选条件导出 CSV。
3.
创建修订计划时写入
`internal_regulation_revision`
,业务字段全部放入
`metadata`
,初始状态为“起草中”。
4.
制度
名称进入详情路由;编辑仅更新制度允许修改的
`metadata`
字段,引用字段只保存 ID
。
3.
“创建修订计划”固定生成“新增”类型的
`internal_regulation_revision`
记录
,业务字段全部放入
`metadata`
,初始状态为“起草中”。
4.
制度
目录行操作与旧版 streams-admin 保持一致:制度名称进入详情路由;行内“修订制度/废止制度”按钮弹出确认框,确认后以当前制度的
`regulation_name/level/departments/approve`
复制生成一条
`internal_regulation_revision`
记录,
`type`
为“修订”或“废止”,
`origin_regulation`
只保存现行制度 ID,初始状态为“起草中”,列表“修订状态”列刷新为“待修订/待废止”;行内“编辑备注”打开备注弹窗,仅更新现行制度
`metadata.comment`
,不覆盖其余字段
。
## 修订计划与状态
...
...
src/services/internalRegulationService.js
View file @
a6b49d2c
...
...
@@ -209,6 +209,18 @@ export async function updateRevision(name, values = {}) {
});
}
export
async
function
updateRegulationComment
(
record
,
comment
)
{
const
name
=
record
?.
name
;
if
(
!
name
)
throw
new
Error
(
'制度记录缺少标识,无法保存备注。'
);
const
payload
=
{
name
,
title
:
record
.
title
,
metadata
:
normalizeMetadata
({
...
metadataOf
(
record
),
comment
}),
};
if
(
record
.
content
!==
undefined
)
payload
.
content
=
record
.
content
;
return
updateRecord
(
name
,
payload
);
}
export
async
function
setRevisionStatus
(
name
,
status
)
{
const
current
=
await
loadRecord
(
name
);
if
(
!
current
)
throw
new
Error
(
'修订计划不存在。'
);
...
...
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