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
970b0635
Commit
970b0635
authored
Feb 20, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
变更owner
parent
19c34514
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
1 deletion
+27
-1
pds.js
src/model/pds.js
+5
-0
pds.js
src/service/pds.js
+5
-0
ExchangeOwner.jsx
src/view/Manage/Model/Component/ExchangeOwner.jsx
+17
-1
No files found.
src/model/pds.js
View file @
970b0635
...
...
@@ -108,3 +108,7 @@ export function* getOwners() {
export
function
*
saveOwner
(
payload
)
{
return
yield
call
(
pds
.
saveOwner
,
payload
)
}
export
function
*
changeOwner
(
payload
)
{
return
yield
call
(
pds
.
changeOwner
,
payload
)
}
\ No newline at end of file
src/service/pds.js
View file @
970b0635
...
...
@@ -107,3 +107,7 @@ export function getOwners() {
export
function
saveOwner
(
payload
)
{
return
GetJSON
(
"/informationmanagement/userData/getUserDataAndInsert"
,
payload
);
}
export
function
changeOwner
(
payload
)
{
return
PostJSON
(
"/pdataservice/pdsCURD/changeOwnerOfDataService"
,
payload
)
}
\ No newline at end of file
src/view/Manage/Model/Component/ExchangeOwner.jsx
View file @
970b0635
...
...
@@ -28,7 +28,7 @@ const FC = ({ visible, id, onCancel }) => {
callback
:
(
data
)
=>
{
setLoading
(
false
);
setService
(
data
);
setCurrentOwner
(
data
?.
provider
?.
owne
r
);
setCurrentOwner
(
data
?.
edito
r
);
},
error
:
()
=>
{
setLoading
(
false
);
...
...
@@ -65,7 +65,23 @@ const FC = ({ visible, id, onCancel }) => {
}
const
onOk
=
()
=>
{
setLoading
(
true
);
dispatch
({
type
:
'pds.changeOwner'
,
payload
:
{
params
:
{
id
,
owner
:
currentOwner
}
},
callback
:
()
=>
{
setLoading
(
false
);
onCancel
?.(
true
);
},
error
:
()
=>
{
setLoading
(
false
);
}
})
}
const
reset
=
()
=>
{
...
...
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