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
b9209650
Commit
b9209650
authored
May 08, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
维护历史刷新
parent
bf6668b3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
EditModel.jsx
src/view/Manage/Model/Component/EditModel.jsx
+3
-0
ImportActionHeader.jsx
src/view/Manage/Model/Component/ImportActionHeader.jsx
+14
-0
No files found.
src/view/Manage/Model/Component/EditModel.jsx
View file @
b9209650
...
@@ -11,6 +11,7 @@ import { Action, CatalogId, ModelerId, Hints, ModelerData, PermitCheckOut, Edita
...
@@ -11,6 +11,7 @@ import { Action, CatalogId, ModelerId, Hints, ModelerData, PermitCheckOut, Edita
import
HistoryAndVersionDrawer
from
'./HistoryAndVersionDrawer'
;
import
HistoryAndVersionDrawer
from
'./HistoryAndVersionDrawer'
;
import
{
EditModelContext
}
from
'./ContextManage'
;
import
{
EditModelContext
}
from
'./ContextManage'
;
import
EditInherited
from
'./EditInherited'
;
import
EditInherited
from
'./EditInherited'
;
import
{
ImportActionHeaderSubject
}
from
'./ImportActionHeader'
;
import
'./EditModel.less'
;
import
'./EditModel.less'
;
...
@@ -205,6 +206,8 @@ const EditModel = (props) => {
...
@@ -205,6 +206,8 @@ const EditModel = (props) => {
LocalStorage
.
set
(
'modelId'
,
data
.
id
||
''
);
LocalStorage
.
set
(
'modelId'
,
data
.
id
||
''
);
LocalStorage
.
set
(
'modelChange'
,
!
(
LocalStorage
.
get
(
'modelChange'
)
||
false
));
LocalStorage
.
set
(
'modelChange'
,
!
(
LocalStorage
.
get
(
'modelChange'
)
||
false
));
}
}
ImportActionHeaderSubject
.
next
({
type
:
'refreshMaintenanceRecords'
});
},
},
error
:
(
err
)
=>
{
error
:
(
err
)
=>
{
setConfirmLoading
(
false
);
setConfirmLoading
(
false
);
...
...
src/view/Manage/Model/Component/ImportActionHeader.jsx
View file @
b9209650
import
React
,
{
useState
,
useEffect
,
useMemo
,
useRef
}
from
'react'
;
import
React
,
{
useState
,
useEffect
,
useMemo
,
useRef
}
from
'react'
;
import
{
Form
,
Input
,
Row
,
Col
,
Descriptions
,
Select
,
AutoComplete
,
Button
,
Divider
,
Tooltip
,
Checkbox
}
from
'antd'
;
import
{
Form
,
Input
,
Row
,
Col
,
Descriptions
,
Select
,
AutoComplete
,
Button
,
Divider
,
Tooltip
,
Checkbox
}
from
'antd'
;
import
{
DownOutlined
,
UpOutlined
}
from
'@ant-design/icons'
;
import
{
DownOutlined
,
UpOutlined
}
from
'@ant-design/icons'
;
import
{
Subject
}
from
'rxjs'
;
import
{
highlightSearchContentByTerms
,
generateUUID
}
from
'../../../../util'
;
import
{
highlightSearchContentByTerms
,
generateUUID
}
from
'../../../../util'
;
import
{
dispatch
,
dispatchLatest
}
from
'../../../../model'
;
import
{
dispatch
,
dispatchLatest
}
from
'../../../../model'
;
...
@@ -45,6 +46,8 @@ const updateOptions = [
...
@@ -45,6 +46,8 @@ const updateOptions = [
const
dataTypeRemark
=
'描述ETL框架中目标表的数据类型'
;
const
dataTypeRemark
=
'描述ETL框架中目标表的数据类型'
;
const
bindingLoadRemark
=
'描述ETL框架绑定加载列表,如chain、daily、current等'
;
const
bindingLoadRemark
=
'描述ETL框架绑定加载列表,如chain、daily、current等'
;
export
const
ImportActionHeaderSubject
=
new
Subject
();
const
ImportActionHeader
=
(
props
)
=>
{
const
ImportActionHeader
=
(
props
)
=>
{
const
{
editable
,
form
,
modelerData
,
constraints
,
templates
,
onConstraintChange
,
onTemplateChange
,
validateReports
,
onChange
,
terms
,
supportedPartitionTypes
}
=
props
;
const
{
editable
,
form
,
modelerData
,
constraints
,
templates
,
onConstraintChange
,
onTemplateChange
,
validateReports
,
onChange
,
terms
,
supportedPartitionTypes
}
=
props
;
...
@@ -58,6 +61,17 @@ const ImportActionHeader = (props) => {
...
@@ -58,6 +61,17 @@ const ImportActionHeader = (props) => {
const
[
bindingLoadRangeList
,
setBindingLoadRangeList
]
=
useState
(
null
);
const
[
bindingLoadRangeList
,
setBindingLoadRangeList
]
=
useState
(
null
);
useEffect
(()
=>
{
useEffect
(()
=>
{
const
$$header
=
ImportActionHeaderSubject
.
subscribe
((
act
)
=>
{
if
(
act
?.
type
===
'refreshMaintenanceRecords'
)
{
getMaintenanceRecords
();
}
})
return
()
=>
{
$$header
.
unsubscribe
()
}
},
[
modelerData
])
useEffect
(()
=>
{
getDataTypeList
();
getDataTypeList
();
},
[])
},
[])
...
...
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