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
1abc39fe
Commit
1abc39fe
authored
Nov 22, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑规则库
parent
dab0abfd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
80 additions
and
1 deletion
+80
-1
rule-template.jsx
src/view/Manage/ModelConfig/Component/rule-template.jsx
+80
-1
update-rule-template.jsx
...iew/Manage/ModelConfig/Component/update-rule-template.jsx
+0
-0
No files found.
src/view/Manage/ModelConfig/Component/rule-template.jsx
View file @
1abc39fe
import
React
from
'react'
import
React
from
'react'
import
{
Input
,
Space
,
Modal
}
from
'antd'
import
{
Input
,
Space
,
Modal
,
Divider
,
Tooltip
,
Typography
}
from
'antd'
import
{
dispatch
}
from
'../../../../model'
import
{
dispatch
}
from
'../../../../model'
import
PermissionButton
from
'../../../../util/Component/PermissionButton'
import
PermissionButton
from
'../../../../util/Component/PermissionButton'
...
@@ -35,23 +35,101 @@ const FC = (props) => {
...
@@ -35,23 +35,101 @@ const FC = (props) => {
{
{
title
:
'规则编号'
,
title
:
'规则编号'
,
dataIndex
:
'number'
,
dataIndex
:
'number'
,
render
:
(
text
,
record
)
=>
(
<
Tooltip
title=
{
text
}
>
<
Typography
.
Text
ellipsis=
{
true
}
>
{
text
}
</
Typography
.
Text
>
</
Tooltip
>
)
},
},
{
{
title
:
'规则中文名称'
,
title
:
'规则中文名称'
,
dataIndex
:
'name'
,
dataIndex
:
'name'
,
render
:
(
text
,
record
)
=>
(
<
Tooltip
title=
{
text
}
>
<
Typography
.
Text
ellipsis=
{
true
}
>
<
a
onClick=
{
()
=>
{
setUpdateParams
({
visible
:
true
,
type
:
'detail'
,
item
:
record
})
}
}
>
{
text
}
</
a
>
</
Typography
.
Text
>
</
Tooltip
>
)
},
},
{
{
title
:
'规则描述'
,
title
:
'规则描述'
,
dataIndex
:
'remark'
,
dataIndex
:
'remark'
,
render
:
(
text
,
record
)
=>
(
<
Tooltip
title=
{
text
}
>
<
Typography
.
Text
ellipsis=
{
true
}
>
{
text
}
</
Typography
.
Text
>
</
Tooltip
>
)
},
},
{
{
title
:
'检查类型'
,
title
:
'检查类型'
,
dataIndex
:
'checkTypeName'
,
dataIndex
:
'checkTypeName'
,
render
:
(
text
,
record
)
=>
(
<
Tooltip
title=
{
text
}
>
<
Typography
.
Text
ellipsis=
{
true
}
>
{
text
}
</
Typography
.
Text
>
</
Tooltip
>
)
},
},
{
{
title
:
'引用次数'
,
title
:
'引用次数'
,
dataIndex
:
'referenceCount'
,
dataIndex
:
'referenceCount'
,
},
},
{
title
:
'操作'
,
key
:
'action'
,
width
:
120
,
render
:
(
text
,
record
)
=>
{
return
(
<
div
style=
{
{
display
:
'flex'
,
alignItems
:
'center'
}
}
>
<
PermissionButton
type=
'link'
size=
'small'
onClick=
{
()
=>
{
setUpdateParams
({
visible
:
true
,
type
:
'edit'
,
item
:
record
,
})
}
}
style=
{
{
padding
:
0
}
}
// permissionKey='编辑'
// permissions={permissions}
defaultPermission=
{
true
}
>
编辑
</
PermissionButton
>
<
div
style=
{
{
margin
:
'0 5px'
}
}
>
<
Divider
type=
'vertical'
/>
</
div
>
<
PermissionButton
type=
'link'
size=
'small'
onClick=
{
()
=>
{
onDeteteClick
(
record
);
}
}
style=
{
{
padding
:
0
}
}
// permissionKey='删除'
// permissions={permissions}
defaultPermission=
{
true
}
>
删除
</
PermissionButton
>
</
div
>
)
}
}
])
])
},
[])
},
[])
...
@@ -157,6 +235,7 @@ const FC = (props) => {
...
@@ -157,6 +235,7 @@ const FC = (props) => {
/>
/>
</
div
>
</
div
>
<
Table
<
Table
extraColWidth=
{
32
}
loading=
{
loading
}
loading=
{
loading
}
columns=
{
cols
??[]
}
columns=
{
cols
??[]
}
dataSource=
{
_data
}
dataSource=
{
_data
}
...
...
src/view/Manage/ModelConfig/Component/update-rule-template.jsx
View file @
1abc39fe
This diff is collapsed.
Click to expand it.
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