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
518c4fe7
Commit
518c4fe7
authored
Mar 20, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
停用服务
parent
e89a5931
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
31 deletions
+23
-31
pds.js
src/service/pds.js
+1
-1
ModelTable.jsx
src/view/Manage/Model/Component/ModelTable.jsx
+0
-23
index.jsx
src/view/Manage/Model/index.jsx
+22
-7
No files found.
src/service/pds.js
View file @
518c4fe7
...
@@ -107,7 +107,7 @@ export function release(payload) {
...
@@ -107,7 +107,7 @@ export function release(payload) {
}
}
export
function
offline
(
payload
)
{
export
function
offline
(
payload
)
{
return
PostJSON
(
"/pdataservice/pds
Workflow/kickoffOffline
"
,
payload
)
return
PostJSON
(
"/pdataservice/pds
CURD/offlineDataServices
"
,
payload
)
}
}
export
function
getSmartBiUrl
(
payload
)
{
export
function
getSmartBiUrl
(
payload
)
{
...
...
src/view/Manage/Model/Component/ModelTable.jsx
View file @
518c4fe7
...
@@ -518,8 +518,6 @@ const ModelTable = (props) => {
...
@@ -518,8 +518,6 @@ const ModelTable = (props) => {
})
})
} else if (id === 'exchangeOwner') {
} else if (id === 'exchangeOwner') {
setExchangeOwnerParams({ visible: true, id: record?.id });
setExchangeOwnerParams({ visible: true, id: record?.id });
} else if (id === 'offline') {
offlineService(record);
} else if (id === 'copyUri') {
} else if (id === 'copyUri') {
copy(record.odata);
copy(record.odata);
showMessage('success', 'URI复制成功');
showMessage('success', 'URI复制成功');
...
@@ -771,27 +769,6 @@ const ModelTable = (props) => {
...
@@ -771,27 +769,6 @@ 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 => {
const onSelectChange = keys => {
setSelectedRowKeys(keys);
setSelectedRowKeys(keys);
...
...
src/view/Manage/Model/index.jsx
View file @
518c4fe7
...
@@ -532,13 +532,28 @@ class Model extends React.Component {
...
@@ -532,13 +532,28 @@ class Model extends React.Component {
}
}
onOfflineBtnClick = () => {
onOfflineBtnClick = () => {
const { modal } = this.props;
const { selectModelerIds } = this.state;
const { selectModelerIds } = this.state;
if ((selectModelerIds||[]).length === 0) {
showMessage('info', '请先选择服务');
return;
}
this.setState({ offlineVisible: true })
modal?.confirm({
title: '是否确认停用选中的服务',
onOk: () => {
dispatch({
type: 'pds.offline',
payload: {
params: {
pdsDataServiceIds: (selectModelerIds??[]).toString()
}
},
callback: () => {
showMessage("success","停用成功")
this.setState({ selectModelerIds: [] }, () => {
this.onTableChange()
})
}
})
}
})
}
}
onBatchDeleteBtnClick = () => {
onBatchDeleteBtnClick = () => {
...
@@ -1009,11 +1024,11 @@ class Model extends React.Component {
...
@@ -1009,11 +1024,11 @@ class Model extends React.Component {
onCancel={this.onStartReleaseCancel}
onCancel={this.onStartReleaseCancel}
/>
/>
<Offline
{/*
<Offline
visible={this.state.offlineVisible}
visible={this.state.offlineVisible}
ids={selectModelerIds}
ids={selectModelerIds}
onCancel={this.onOfflineCancel}
onCancel={this.onOfflineCancel}
/>
/>
*/}
<ColSettingModal
<ColSettingModal
visible={colSettingModalVisible}
visible={colSettingModalVisible}
...
...
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