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
0c6cb4a5
Commit
0c6cb4a5
authored
Apr 17, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
规范查看默认展示当前使用的规范
parent
8bdeaf06
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
10 deletions
+27
-10
ImportActionHeader.jsx
src/view/Manage/Model/Component/ImportActionHeader.jsx
+14
-4
rule-readonly.jsx
src/view/Manage/ModelConfig/Component/rule-readonly.jsx
+2
-2
rule-tree.jsx
src/view/Manage/ModelConfig/Component/rule-tree.jsx
+9
-2
rule.jsx
src/view/Manage/ModelConfig/Component/rule.jsx
+2
-2
No files found.
src/view/Manage/Model/Component/ImportActionHeader.jsx
View file @
0c6cb4a5
...
@@ -59,7 +59,8 @@ const ImportActionHeader = (props) => {
...
@@ -59,7 +59,8 @@ const ImportActionHeader = (props) => {
const
[
bindingLoadRangeList
,
setBindingLoadRangeList
]
=
useState
(
null
);
const
[
bindingLoadRangeList
,
setBindingLoadRangeList
]
=
useState
(
null
);
const
[
isCollapse
,
setCollapse
]
=
useState
(
true
)
const
[
isCollapse
,
setCollapse
]
=
useState
(
true
)
const
[
ruleParams
,
setRuleParams
]
=
useState
({
const
[
ruleParams
,
setRuleParams
]
=
useState
({
visible
:
false
visible
:
false
,
defaultSelectedId
:
undefined
,
})
})
useEffect
(()
=>
{
useEffect
(()
=>
{
...
@@ -321,7 +322,10 @@ const ImportActionHeader = (props) => {
...
@@ -321,7 +322,10 @@ const ImportActionHeader = (props) => {
constraints=
{
constraints
}
constraints=
{
constraints
}
onChange=
{
onConstraintChange
}
onChange=
{
onConstraintChange
}
onDetail=
{
()
=>
{
onDetail=
{
()
=>
{
setRuleParams
({
visible
:
true
})
setRuleParams
({
visible
:
true
,
defaultSelectedId
:
modelerData
?.
easyDataModelerModelingConstraint
?.
id
,
})
}
}
}
}
/>
:
<
div
className=
'flex'
style=
{
{
alignItems
:
'flex-start'
}
}
>
/>
:
<
div
className=
'flex'
style=
{
{
alignItems
:
'flex-start'
}
}
>
<
div
className=
'word-wrap mr-2'
>
<
div
className=
'word-wrap mr-2'
>
...
@@ -329,7 +333,10 @@ const ImportActionHeader = (props) => {
...
@@ -329,7 +333,10 @@ const ImportActionHeader = (props) => {
</
div
>
</
div
>
<
div
style=
{
{
flex
:
1
,
minWidth
:
30
}
}
>
<
div
style=
{
{
flex
:
1
,
minWidth
:
30
}
}
>
<
a
onClick=
{
()
=>
{
<
a
onClick=
{
()
=>
{
setRuleParams
({
visible
:
true
})
setRuleParams
({
visible
:
true
,
defaultSelectedId
:
modelerData
?.
easyDataModelerModelingConstraint
?.
id
,
})
}
}
>
查看
</
a
>
}
}
>
查看
</
a
>
</
div
>
</
div
>
</
div
>
</
div
>
...
@@ -528,7 +535,10 @@ const ImportActionHeader = (props) => {
...
@@ -528,7 +535,10 @@ const ImportActionHeader = (props) => {
<
Rule
<
Rule
{
...
ruleParams
}
{
...
ruleParams
}
onCancel=
{
()
=>
{
onCancel=
{
()
=>
{
setRuleParams
({
visible
:
false
})
setRuleParams
({
visible
:
false
,
defaultSelectedId
:
undefined
,
})
}
}
}
}
/>
/>
</
div
>
</
div
>
...
...
src/view/Manage/ModelConfig/Component/rule-readonly.jsx
View file @
0c6cb4a5
...
@@ -4,7 +4,7 @@ import { Modal } from "antd"
...
@@ -4,7 +4,7 @@ import { Modal } from "antd"
import
RuleCURD
from
'./rule'
import
RuleCURD
from
'./rule'
const
FC
=
(
props
)
=>
{
const
FC
=
(
props
)
=>
{
const
{
visible
,
onCancel
}
=
props
const
{
visible
,
defaultSelectedId
,
onCancel
}
=
props
const
close
=
()
=>
{
const
close
=
()
=>
{
onCancel
?.()
onCancel
?.()
...
@@ -20,7 +20,7 @@ const FC = (props) => {
...
@@ -20,7 +20,7 @@ const FC = (props) => {
centered
destroyOnClose
centered
destroyOnClose
onCancel=
{
()
=>
{
close
()
}
}
onCancel=
{
()
=>
{
close
()
}
}
>
>
<
RuleCURD
readonly=
{
true
}
/>
<
RuleCURD
readonly=
{
true
}
defaultSelectedId=
{
defaultSelectedId
}
/>
</
Modal
>
</
Modal
>
)
)
}
}
...
...
src/view/Manage/ModelConfig/Component/rule-tree.jsx
View file @
0c6cb4a5
...
@@ -11,7 +11,7 @@ import Version from './rule-catalog-version'
...
@@ -11,7 +11,7 @@ import Version from './rule-catalog-version'
import
{
showMessage
}
from
'../../../../util'
import
{
showMessage
}
from
'../../../../util'
const
FC
=
(
props
)
=>
{
const
FC
=
(
props
)
=>
{
const
{
onClick
,
readonly
}
=
props
const
{
onClick
,
readonly
,
defaultSelectedId
}
=
props
const
[
loading
,
setLoading
]
=
React
.
useState
(
false
)
const
[
loading
,
setLoading
]
=
React
.
useState
(
false
)
const
[
data
,
setData
]
=
React
.
useState
()
const
[
data
,
setData
]
=
React
.
useState
()
const
[
selectedNode
,
setSelectedNode
]
=
React
.
useState
()
const
[
selectedNode
,
setSelectedNode
]
=
React
.
useState
()
...
@@ -57,7 +57,14 @@ const FC = (props) => {
...
@@ -57,7 +57,14 @@ const FC = (props) => {
setLoading
(
false
);
setLoading
(
false
);
setData
(
data
)
setData
(
data
)
if
((
data
??[]).
length
>
0
&&
!
selectedNode
)
{
if
(
defaultSelectedId
&&
(
data
??[]).
length
>
0
&&
!
selectedNode
)
{
const
index
=
(
data
??[]).
findIndex
(
item
=>
item
.
id
===
defaultSelectedId
)
if
(
index
!==
-
1
)
{
onTreeSelect
([
data
[
index
].
id
],
{
selectedNodes
:
[
data
[
index
]]})
}
else
{
onTreeSelect
([
data
[
0
].
id
],
{
selectedNodes
:
[
data
[
0
]]})
}
}
else
if
((
data
??[]).
length
>
0
&&
!
selectedNode
)
{
onTreeSelect
([
data
[
0
].
id
],
{
selectedNodes
:
[
data
[
0
]]})
onTreeSelect
([
data
[
0
].
id
],
{
selectedNodes
:
[
data
[
0
]]})
}
}
},
},
...
...
src/view/Manage/ModelConfig/Component/rule.jsx
View file @
0c6cb4a5
...
@@ -10,7 +10,7 @@ import Separate from '../../AssetManage/Component/Separate'
...
@@ -10,7 +10,7 @@ import Separate from '../../AssetManage/Component/Separate'
import
'../../AssetManage/index.less'
import
'../../AssetManage/index.less'
const
FC
=
(
props
)
=>
{
const
FC
=
(
props
)
=>
{
const
{
readonly
=
false
}
=
props
const
{
readonly
=
false
,
defaultSelectedId
}
=
props
const
[
node
,
setNode
]
=
React
.
useState
()
const
[
node
,
setNode
]
=
React
.
useState
()
const
onTreeClick
=
(
value
)
=>
{
const
onTreeClick
=
(
value
)
=>
{
...
@@ -21,7 +21,7 @@ const FC = (props) => {
...
@@ -21,7 +21,7 @@ const FC = (props) => {
<
div
className=
'asset-manage'
>
<
div
className=
'asset-manage'
>
<
div
className=
'left'
style=
{
{
width
:
230
}
}
<
div
className=
'left'
style=
{
{
width
:
230
}
}
>
>
<
Tree
onClick=
{
onTreeClick
}
{
...
props
}
/>
<
Tree
onClick=
{
onTreeClick
}
defaultSelectedId=
{
defaultSelectedId
}
{
...
props
}
/>
</
div
>
</
div
>
<
div
className=
'middle'
>
<
div
className=
'middle'
>
<
List
node=
{
node
}
{
...
props
}
/>
<
List
node=
{
node
}
{
...
props
}
/>
...
...
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