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
dea31490
Commit
dea31490
authored
Feb 28, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务下线
parent
365755fc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
0 deletions
+36
-0
pds.js
src/model/pds.js
+4
-0
pds.js
src/service/pds.js
+4
-0
ModelTable.jsx
src/view/Manage/Model/Component/ModelTable.jsx
+28
-0
No files found.
src/model/pds.js
View file @
dea31490
...
...
@@ -57,6 +57,10 @@ export function* nextState(payload) {
return
yield
call
(
pds
.
nextState
,
payload
);
}
export
function
*
offlineDataService
(
payload
)
{
return
yield
call
(
pds
.
offlineDataService
,
payload
);
}
export
function
*
checkoutService
(
payload
)
{
return
yield
call
(
pds
.
checkoutService
,
payload
);
}
...
...
src/service/pds.js
View file @
dea31490
...
...
@@ -56,6 +56,10 @@ export function nextState(payload) {
return
GetJSON
(
"/pdataservice/pdsCURD/nextState"
,
payload
);
}
export
function
offlineDataService
(
payload
)
{
return
Post
(
"/pdataservice/pdsCURD/offlineDataService"
,
payload
)
}
export
function
checkoutService
(
payload
)
{
return
GetJSON
(
"/pdataservice/pdsCURD/checkOutDataService"
,
payload
)
}
...
...
src/view/Manage/Model/Component/ModelTable.jsx
View file @
dea31490
...
...
@@ -638,6 +638,27 @@ const ModelTable = (props) => {
});
}
const
offlineService
=
(
record
)
=>
{
modal
.
confirm
({
title
:
'提示!'
,
content
:
'您确定要下线改服务吗?'
,
onOk
:
()
=>
{
dispatch
({
type
:
'pds.offlineDataService'
,
payload
:
{
params
:
{
id
:
record
.
id
}
},
callback
:
()
=>
{
showMessage
(
'success'
,
'下线成功'
);
onChange
&&
onChange
();
}
})
}
});
}
const
onSelectChange
=
keys
=>
{
setSelectedRowKeys
(
keys
);
...
...
@@ -788,6 +809,8 @@ const ModelTable = (props) => {
})
} else if (id === 'exchangeOwner') {
setExchangeOwnerParams({ visible: true, id: currentItem?.id });
} else if (id === 'offline') {
offlineService(currentItem);
}
}
...
...
@@ -951,6 +974,11 @@ const ModelTable = (props) => {
</RcItem>
}
{
getDataModelerRole(user)!==DataModelerRoleReader && view!=='grant' && currentItem?.supportOffline && <RcItem id="offline" onClick={handleItemClick} >
下线
</RcItem>
}
{
getDataModelerRole(user)!==DataModelerRoleReader && view!=='grant' && !isOnlyEnding && currentItem?.supportODataEnable && <RcItem id="enableOData" onClick={handleItemClick}>
启动OData
</RcItem>
...
...
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