Commit 3c63da30 by zhaochengxiang

资产权限

parent 0a1985b0
......@@ -49,13 +49,18 @@ const AssetDetail = (props)=>{
}, [asset])
const getPreviewRangeByDirIdThenGetAsset = () => {
setLoading(true);
dispatch({
type: 'assetmanage.getPreviewRangeByDirId',
payload: {
dirId
},
callback: data => {
setLoading(false);
getAsset(data);
},
error: () => {
setLoading(false);
}
});
}
......@@ -65,6 +70,7 @@ const AssetDetail = (props)=>{
dispatch({
type: 'assetmanage.listUserElements',
callback: data => {
setLoading(false);
setUserElements(data||[]);
const _types = [];
(data||[]).forEach(element => {
......@@ -82,6 +88,7 @@ const AssetDetail = (props)=>{
}
const getAsset = (range) => {
setLoading(true);
dispatch({
type: 'assetmanage.getDataAssetDetail',
payload: {
......
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