Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaochengxiang
szse
Commits
325eea2f
Commit
325eea2f
authored
Apr 28, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
规范配置调整
parent
1eb100b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
39 deletions
+27
-39
add-rule.jsx
src/view/Manage/ModelConfig/Component/add-rule.jsx
+1
-1
rule-tree.jsx
src/view/Manage/ModelConfig/Component/rule-tree.jsx
+26
-38
No files found.
src/view/Manage/ModelConfig/Component/add-rule.jsx
View file @
325eea2f
...
@@ -57,7 +57,7 @@ const FC = (props) => {
...
@@ -57,7 +57,7 @@ const FC = (props) => {
visible=
{
visible
}
visible=
{
visible
}
footer=
{
footer
}
footer=
{
footer
}
width=
'80%'
width=
'80%'
bodyStyle=
{
{
padding
:
'15px'
,
overflowX
:
'auto'
,
maxH
eight
:
'80vh'
}
}
bodyStyle=
{
{
padding
:
'15px'
,
overflowX
:
'auto'
,
h
eight
:
'80vh'
}
}
title=
'新增检查规则'
title=
'新增检查规则'
centered
destroyOnClose
centered
destroyOnClose
onCancel=
{
()
=>
{
close
()
}
}
onCancel=
{
()
=>
{
close
()
}
}
...
...
src/view/Manage/ModelConfig/Component/rule-tree.jsx
View file @
325eea2f
...
@@ -99,7 +99,7 @@ const FC = (props) => {
...
@@ -99,7 +99,7 @@ const FC = (props) => {
if
(
key
===
'delete'
)
{
if
(
key
===
'delete'
)
{
modal
.
confirm
({
modal
.
confirm
({
title
:
'提示!'
,
title
:
'提示!'
,
content
:
'您确定删除该
目录
吗?'
,
content
:
'您确定删除该
规范
吗?'
,
onOk
:
()
=>
{
onOk
:
()
=>
{
setLoading
(
true
);
setLoading
(
true
);
dispatch
({
dispatch
({
...
@@ -108,7 +108,7 @@ const FC = (props) => {
...
@@ -108,7 +108,7 @@ const FC = (props) => {
id
:
node
?.
id
id
:
node
?.
id
},
},
callback
:
data
=>
{
callback
:
data
=>
{
showMessage
(
'success'
,
'删除
目录
成功'
)
showMessage
(
'success'
,
'删除
规范
成功'
)
if
(
selectedNode
?.
id
===
node
?.
id
)
{
if
(
selectedNode
?.
id
===
node
?.
id
)
{
setSelectedNode
()
setSelectedNode
()
}
}
...
@@ -127,39 +127,27 @@ const FC = (props) => {
...
@@ -127,39 +127,27 @@ const FC = (props) => {
item
:
node
item
:
node
})
})
}
else
if
(
key
===
'up'
)
{
}
else
if
(
key
===
'up'
)
{
modal
.
confirm
({
dispatch
({
title
:
'提示!'
,
type
:
'datamodel.upRuleCatalog'
,
content
:
'您确定上移该目录吗?'
,
payload
:
{
onOk
:
()
=>
{
params
:
{
dispatch
({
id
:
node
?.
id
type
:
'datamodel.upRuleCatalog'
,
}
payload
:
{
},
params
:
{
callback
:
data
=>
{
id
:
node
?.
id
getTreeData
()
}
},
callback
:
data
=>
{
getTreeData
()
}
})
}
}
})
})
}
else
if
(
key
===
'down'
)
{
}
else
if
(
key
===
'down'
)
{
modal
.
confirm
({
dispatch
({
title
:
'提示!'
,
type
:
'datamodel.downRuleCatalog'
,
content
:
'您确定下移该目录吗?'
,
payload
:
{
onOk
:
()
=>
{
params
:
{
dispatch
({
id
:
node
?.
id
type
:
'datamodel.downRuleCatalog'
,
}
payload
:
{
},
params
:
{
callback
:
data
=>
{
id
:
node
?.
id
getTreeData
()
}
},
callback
:
data
=>
{
getTreeData
()
}
})
}
}
})
})
}
else
if
(
key
===
'version'
)
{
}
else
if
(
key
===
'version'
)
{
...
@@ -183,12 +171,12 @@ const FC = (props) => {
...
@@ -183,12 +171,12 @@ const FC = (props) => {
<
Space
>
<
Space
>
<
PermissionButton
<
PermissionButton
defaultPermission=
{
true
}
defaultPermission=
{
true
}
tip=
"新增
目录
"
tip=
"新增
规范
"
type=
"text"
type=
"text"
icon=
{
<
PlusOutlined
/>
}
icon=
{
<
PlusOutlined
/>
}
onClick=
{
onAddClick
}
onClick=
{
onAddClick
}
/>
/>
<
Tooltip
title=
"刷新
目录
"
>
<
Tooltip
title=
"刷新
规范
"
>
<
Button
type=
"text"
icon=
{
<
ReloadOutlined
/>
}
onClick=
{
onRefreshClick
}
/>
<
Button
type=
"text"
icon=
{
<
ReloadOutlined
/>
}
onClick=
{
onRefreshClick
}
/>
</
Tooltip
>
</
Tooltip
>
</
Space
>
</
Space
>
...
@@ -205,10 +193,10 @@ const FC = (props) => {
...
@@ -205,10 +193,10 @@ const FC = (props) => {
selectedKeys=
{
(
selectedNode
?.
id
)?[
selectedNode
?.
id
]:
undefined
}
selectedKeys=
{
(
selectedNode
?.
id
)?[
selectedNode
?.
id
]:
undefined
}
shouldRowContextMenu=
{
()
=>
!
readonly
}
shouldRowContextMenu=
{
()
=>
!
readonly
}
menuData=
{
[
menuData=
{
[
{
id
:
'edit'
,
title
:
'编辑
目录
'
},
{
id
:
'edit'
,
title
:
'编辑
规范
'
},
{
id
:
'up'
,
title
:
'上移
目录
'
},
{
id
:
'up'
,
title
:
'上移
规范
'
},
{
id
:
'down'
,
title
:
'下移
目录
'
},
{
id
:
'down'
,
title
:
'下移
规范
'
},
{
id
:
'delete'
,
title
:
'删除
目录
'
},
{
id
:
'delete'
,
title
:
'删除
规范
'
},
{
id
:
'version'
,
title
:
'历史版本'
},
{
id
:
'version'
,
title
:
'历史版本'
},
]
}
]
}
onMenuItemClick=
{
onMenuItemClick
}
onMenuItemClick=
{
onMenuItemClick
}
...
...
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