Commit 7453443d by zhaochengxiang

转为待提交

parent 57473f20
...@@ -390,6 +390,10 @@ export function* submitDraft(payload) { ...@@ -390,6 +390,10 @@ export function* submitDraft(payload) {
return yield call(service.submitDraft, payload); return yield call(service.submitDraft, payload);
} }
export function* changeToPendingSubmitDraft(payload) {
return yield call(service.changeToPendingSubmitDraft, payload);
}
export function* addSubscribe(payload) { export function* addSubscribe(payload) {
return yield call(service.addSubscribe, payload); return yield call(service.addSubscribe, payload);
} }
......
...@@ -397,6 +397,10 @@ export function submitDraft(payload) { ...@@ -397,6 +397,10 @@ export function submitDraft(payload) {
return PostJSON("/dataassetmanagertest/draftApi/submit", payload) return PostJSON("/dataassetmanagertest/draftApi/submit", payload)
} }
export function changeToPendingSubmitDraft(payload) {
return PostJSON("/dataassetmanagertest/draftApi/changeToPendingSubmit", payload)
}
export function addSubscribe(payload) { export function addSubscribe(payload) {
return PostJSON("/informationmanagement/subscribe/add", payload) return PostJSON("/informationmanagement/subscribe/add", payload)
} }
......
...@@ -460,6 +460,25 @@ const FC = (props) => { ...@@ -460,6 +460,25 @@ const FC = (props) => {
}) })
} }
const onRightChangeToPendingSubmitClick = () => {
modal.confirm({
title: '提示',
content: '是否确认转为待提交选中的资产?',
onOk: () => {
dispatch({
type: 'assetmanage.changeToPendingSubmitDraft',
payload: {
data: [rightRow?.id]
},
callback: (data) => {
showMessage('success', '转为待提交成功')
getDrafts()
}
})
}
})
}
const onRightMenuItemClick = (key, record) => { const onRightMenuItemClick = (key, record) => {
if (key === '查看') { if (key === '查看') {
onRightDetailClick() onRightDetailClick()
...@@ -472,7 +491,7 @@ const FC = (props) => { ...@@ -472,7 +491,7 @@ const FC = (props) => {
} else if (key === '提交') { } else if (key === '提交') {
onRightSubmitClick() onRightSubmitClick()
} else if (key === '转为待提交') { } else if (key === '转为待提交') {
onRightChangeToPendingSubmitClick()
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment