Commit f7ba234c by zhaochengxiang

资产详情增加range

parent 8cb2e645
...@@ -158,7 +158,8 @@ const AssetManageTree = (props) => { ...@@ -158,7 +158,8 @@ const AssetManageTree = (props) => {
dispatch({ dispatch({
type: 'assetmanage.getDataAssetDetail', type: 'assetmanage.getDataAssetDetail',
payload: { payload: {
dataAssetId: tableId dataAssetId: tableId,
range: getAssetRange(AssetManageReference),
}, },
callback: data => { callback: data => {
setCheckedKeys(data.dirIds||[]); setCheckedKeys(data.dirIds||[]);
......
...@@ -3,7 +3,8 @@ import { Modal, Form, Input, Space, Button, Select } from 'antd'; ...@@ -3,7 +3,8 @@ import { Modal, Form, Input, Space, Button, Select } from 'antd';
import { dispatch } from '../../../../model'; import { dispatch } from '../../../../model';
import { AppContext } from '../../../../App'; import { AppContext } from '../../../../App';
import MetadataInfo from './MetadataInfo'; import MetadataInfo from './MetadataInfo';
import { showMessage } from '../../../../util'; import { showMessage, getAssetRange } from '../../../../util';
import { AssetManageReference } from '../../../../util/constant';
const { Option } = Select; const { Option } = Select;
...@@ -81,7 +82,8 @@ const AssetTagModal = (props) => { ...@@ -81,7 +82,8 @@ const AssetTagModal = (props) => {
dispatch({ dispatch({
type: 'assetmanage.getDataAssetDetail', type: 'assetmanage.getDataAssetDetail',
payload: { payload: {
dataAssetId: id dataAssetId: id,
range: getAssetRange(AssetManageReference),
}, },
callback: data => { callback: data => {
setAsset(data); setAsset(data);
......
...@@ -146,7 +146,8 @@ const AssetTree = (props) => { ...@@ -146,7 +146,8 @@ const AssetTree = (props) => {
dispatch({ dispatch({
type: 'assetmanage.getDataAssetDetail', type: 'assetmanage.getDataAssetDetail',
payload: { payload: {
dataAssetId: tableId dataAssetId: tableId,
range: getAssetRange(reference),
}, },
callback: data => { callback: data => {
setExpandedKeys(data.dirIds||[]); setExpandedKeys(data.dirIds||[]);
......
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