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
911a23a3
Commit
911a23a3
authored
Dec 25, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务导入
parent
cefdd8e6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
208 additions
and
81 deletions
+208
-81
ImportAssetDrawer.jsx
src/view/Manage/AssetManage/Component/ImportAssetDrawer.jsx
+1
-1
ImportElement.jsx
src/view/Manage/AssetManage/Component/ImportElement.jsx
+1
-1
ImportServices.jsx
src/view/Manage/Model/Component/ImportServices.jsx
+193
-76
index.jsx
src/view/Manage/Model/index.jsx
+13
-3
No files found.
src/view/Manage/AssetManage/Component/ImportAssetDrawer.jsx
View file @
911a23a3
...
@@ -149,7 +149,7 @@ const ImportAssetDrawer = (props) => {
...
@@ -149,7 +149,7 @@ const ImportAssetDrawer = (props) => {
const
handleOk
=
()
=>
{
const
handleOk
=
()
=>
{
if
((
fileList
||
[]).
length
===
0
)
{
if
((
fileList
||
[]).
length
===
0
)
{
showMessage
(
'info'
,
'请先选择
模板
上传'
);
showMessage
(
'info'
,
'请先选择
文件
上传'
);
return
;
return
;
}
}
...
...
src/view/Manage/AssetManage/Component/ImportElement.jsx
View file @
911a23a3
...
@@ -36,7 +36,7 @@ const ImportElement = (props) => {
...
@@ -36,7 +36,7 @@ const ImportElement = (props) => {
const
handleOk
=
()
=>
{
const
handleOk
=
()
=>
{
if
((
fileList
||
[]).
length
===
0
)
{
if
((
fileList
||
[]).
length
===
0
)
{
showMessage
(
'info'
,
'请先选择
模板
上传'
);
showMessage
(
'info'
,
'请先选择
文件
上传'
);
return
;
return
;
}
}
...
...
src/view/Manage/Model/Component/ImportServices.jsx
View file @
911a23a3
This diff is collapsed.
Click to expand it.
src/view/Manage/Model/index.jsx
View file @
911a23a3
...
@@ -24,6 +24,7 @@ import ColSettingModal from './Component/ColSettingModal';
...
@@ -24,6 +24,7 @@ import ColSettingModal from './Component/ColSettingModal';
import
StartAuthorize
from
'./Component/StartAuthorize'
;
import
StartAuthorize
from
'./Component/StartAuthorize'
;
import
StartRelease
from
'./Component/StartRelease'
;
import
StartRelease
from
'./Component/StartRelease'
;
import
Offline
from
'./Component/Offline'
;
import
Offline
from
'./Component/Offline'
;
import
ImportServices
from
'./Component/ImportServices'
;
import
'./index.less'
;
import
'./index.less'
;
...
@@ -72,6 +73,7 @@ class Model extends React.Component {
...
@@ -72,6 +73,7 @@ class Model extends React.Component {
offlineVisible
:
false
,
offlineVisible
:
false
,
jdbcInformationVisible
:
false
,
jdbcInformationVisible
:
false
,
isRoot
:
false
,
isRoot
:
false
,
importServicesVisible
:
false
,
}
}
}
}
...
@@ -347,7 +349,7 @@ class Model extends React.Component {
...
@@ -347,7 +349,7 @@ class Model extends React.Component {
}
}
onImportClick = () => {
onImportClick = () => {
this.setState({ importServicesVisible: true });
}
}
onSubscribeBtnClick = () => {
onSubscribeBtnClick = () => {
...
@@ -725,7 +727,7 @@ class Model extends React.Component {
...
@@ -725,7 +727,7 @@ class Model extends React.Component {
<Button onClick={() => { this.setState({jdbcInformationVisible: true}); }}>JDBC信息</Button>
<Button onClick={() => { this.setState({jdbcInformationVisible: true}); }}>JDBC信息</Button>
</Space>
</Space>
{
{
(getDataModelerRole(app?.user)!==DataModelerRoleReader) && isOnlyEnding && <Button onClick={this.onImportClick}>导入</Button>
(getDataModelerRole(app?.user)!==DataModelerRoleReader) &&
!
isOnlyEnding && <Button onClick={this.onImportClick}>导入</Button>
}
}
{
{
(getDataModelerRole(app?.user)!==DataModelerRoleReader) && isOnlyEnding &&
(getDataModelerRole(app?.user)!==DataModelerRoleReader) && isOnlyEnding &&
...
@@ -853,7 +855,15 @@ class Model extends React.Component {
...
@@ -853,7 +855,15 @@ class Model extends React.Component {
<JDBCInformation
<JDBCInformation
visible={this.state.jdbcInformationVisible}
visible={this.state.jdbcInformationVisible}
onCancel={() => { this.setState({ jdbcInformationVisible: false }) }}
onCancel={() => { this.setState({ jdbcInformationVisible: false }) }}
/>
/>
<ImportServices
visible={this.state.importServicesVisible}
onCancel={() => { this.setState({ importServicesVisible: false }) }}
onSuccess={() => {
this.onTableChange()
}}
/>
</div>
</div>
);
);
}
}
...
...
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