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
60d93b6c
Commit
60d93b6c
authored
Feb 23, 2022
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模型重名增加提示
parent
7a3b2e18
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
7 deletions
+16
-7
datamodeler.js
src/service/datamodeler.js
+2
-2
EditModel.jsx
src/view/Manage/Model/Component/EditModel.jsx
+8
-3
RecatalogModal.jsx
src/view/Manage/Model/Component/RecatalogModal.jsx
+6
-2
No files found.
src/service/datamodeler.js
View file @
60d93b6c
...
...
@@ -26,7 +26,7 @@ export function upDownModelCatalog(payload) {
//绑定模型和模型目录
export
function
bindCatalogDataModel
(
payload
)
{
return
Post
JSON
(
"/datamodeler/easyDataModelerCURD/catalogDataModel"
,
payload
);
return
Post
(
"/datamodeler/easyDataModelerCURD/catalogDataModel"
,
payload
);
}
//读取当前模型目录中的模型
...
...
@@ -44,7 +44,7 @@ export function nextState(payload) {
}
export
function
recatalogDataModel
(
payload
)
{
return
Post
JSON
(
"/datamodeler/easyDataModelerCURD/recatalogDataModel"
,
payload
);
return
Post
(
"/datamodeler/easyDataModelerCURD/recatalogDataModel"
,
payload
);
}
export
function
modelCopy
(
payload
)
{
...
...
src/view/Manage/Model/Component/EditModel.jsx
View file @
60d93b6c
...
...
@@ -5,7 +5,7 @@ import LocalStorage from 'local-storage';
import
ImportAction
from
'./ImportAction'
;
import
CatalogModal
from
'./CatalogModal'
;
import
{
dispatchLatest
}
from
'../../../../model'
;
import
{
getQueryParam
,
showMessage
}
from
'../../../../util'
;
import
{
getQueryParam
,
showMessage
,
showNotifaction
}
from
'../../../../util'
;
import
{
Action
,
CatalogId
,
ModelerId
,
Hints
,
ModelerData
,
PermitCheckOut
,
Editable
,
StateId
,
VersionId
,
Holder
}
from
'../../../../util/constant'
;
import
HistoryAndVersionDrawer
from
'./HistoryAndVersionDrawer'
;
...
...
@@ -134,11 +134,16 @@ const EditModel = (props) => {
easyDataModelerDataModelIds
:
data
.
id
||
''
}
},
callback
:
()
=>
{
callback
:
message
=>
{
setConfirmLoading
(
false
);
setTerms
([]);
showMessage
(
"success"
,
'新增模型成功'
);
if
((
message
||
''
)
!==
''
&&
(
message
||
''
)
!==
'ok'
)
{
showNotifaction
(
'提示'
,
message
,
5
);
}
else
{
showMessage
(
"success"
,
'新增模型成功'
);
}
setActionData
({
...
actionData
,
...{
action
:
'detail'
,
modelerId
:
data
.
id
||
''
,
editable
:
data
?.
editable
||
false
,
stateId
:
data
?.
state
?.
id
||
''
}
});
LocalStorage
.
set
(
'modelChange'
,
!
(
LocalStorage
.
get
(
'modelChange'
)
||
false
));
...
...
src/view/Manage/Model/Component/RecatalogModal.jsx
View file @
60d93b6c
...
...
@@ -3,7 +3,7 @@ import { Modal } from "antd";
import
{
dispatch
}
from
'../../../../model'
;
import
ModelTree
from
'./ModelTree'
;
import
{
showMessage
}
from
'../../../../util'
;
import
{
showMessage
,
showNotifaction
}
from
'../../../../util'
;
const
RecatalogModal
=
(
props
)
=>
{
...
...
@@ -30,9 +30,13 @@ const RecatalogModal = (props) => {
easyDataModelerDataModelIds
:
ids
.
join
(
','
)
},
},
callback
:
data
=>
{
callback
:
message
=>
{
setConfirmLoading
(
false
);
if
((
message
||
''
)
!==
''
&&
(
message
||
''
)
!==
'ok'
)
{
showNotifaction
(
'提示'
,
message
,
5
);
}
reset
();
onCancel
&&
onCancel
(
true
);
},
...
...
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