|
@ -86,7 +86,7 @@ function Approve ({ loading, clientHeight, actions, dispatch, }) { |
|
|
if (folderId.current?.length || fileId.current?.length) { |
|
|
if (folderId.current?.length || fileId.current?.length) { |
|
|
dispatch(dataQuality.postFolderFile({ folderId: folderId.current, fileId: fileId.current })).then(res => { |
|
|
dispatch(dataQuality.postFolderFile({ folderId: folderId.current, fileId: fileId.current })).then(res => { |
|
|
if (res.success) { |
|
|
if (res.success) { |
|
|
resourceData(parent) |
|
|
resourceData(parent,keywords) |
|
|
setCheckAll(false) |
|
|
setCheckAll(false) |
|
|
console.log(res); |
|
|
console.log(res); |
|
|
res.payload.data?.map(v => { |
|
|
res.payload.data?.map(v => { |
|
@ -140,8 +140,8 @@ function Approve ({ loading, clientHeight, actions, dispatch, }) { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
setBreadcrumbData([...data]) |
|
|
setBreadcrumbData([...data]) |
|
|
resourceData(s.parent, null) |
|
|
resourceData(s.parent, keywords) |
|
|
setKeywords(null) |
|
|
// setKeywords(null)
|
|
|
setParent(s.parent || null) |
|
|
setParent(s.parent || null) |
|
|
fileId.current = [] |
|
|
fileId.current = [] |
|
|
setFileIds([]) |
|
|
setFileIds([]) |
|
@ -173,8 +173,8 @@ function Approve ({ loading, clientHeight, actions, dispatch, }) { |
|
|
} else if (clicks === 2) { |
|
|
} else if (clicks === 2) { |
|
|
breadcrumbData?.push({ name: v.name, parent: v.id || null }) |
|
|
breadcrumbData?.push({ name: v.name, parent: v.id || null }) |
|
|
setBreadcrumbData([...breadcrumbData]) |
|
|
setBreadcrumbData([...breadcrumbData]) |
|
|
resourceData(v.id, null) |
|
|
resourceData(v.id, keywords) |
|
|
setKeywords(null) |
|
|
// setKeywords(null)
|
|
|
setParent(v.id || null) |
|
|
setParent(v.id || null) |
|
|
} |
|
|
} |
|
|
clicks = 0; |
|
|
clicks = 0; |
|
@ -239,7 +239,7 @@ function Approve ({ loading, clientHeight, actions, dispatch, }) { |
|
|
} |
|
|
} |
|
|
success={ |
|
|
success={ |
|
|
() => { |
|
|
() => { |
|
|
resourceData(parent) |
|
|
resourceData(parent,keywords) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
/> : "" |
|
|
/> : "" |
|
@ -252,7 +252,7 @@ function Approve ({ loading, clientHeight, actions, dispatch, }) { |
|
|
setFileModal(false); |
|
|
setFileModal(false); |
|
|
}} |
|
|
}} |
|
|
success={() => { |
|
|
success={() => { |
|
|
resourceData(parent) |
|
|
resourceData(parent,keywords) |
|
|
}} |
|
|
}} |
|
|
remove={url => { |
|
|
remove={url => { |
|
|
RouteRequest.delete(RouteTable.cleanUpUploadTrash, { url: url }); |
|
|
RouteRequest.delete(RouteTable.cleanUpUploadTrash, { url: url }); |
|
|