Commit e16c8575 by zhaochengxiang

新增为资产

parent 2aa7ad81
......@@ -50,7 +50,7 @@ module.exports = {
},
proxy: {
'/api': {
target: 'http://139.198.127.28:18189',
target: 'http://192.168.0.111:8189',
changeOrigin: true,
},
'/data-quality': {
......
.add-to-asset {
.tree {
height: calc(80vh - 150px);
overflow: auto;
}
}
\ No newline at end of file
......@@ -12,7 +12,9 @@ import { ResourceManageReference } from '../../../util/constant'
import PermissionButton from '../../../util/Component/PermissionButton'
import PermissionMenuItem from '../../../util/Component/PermissionMenuItem'
import { FullScreenSvg, CancelFullScreenSvg } from '../AssetManage/Component/AssetSvg'
import AddAsset from '../AssetManage/Component/AddAssetModel'
import AddToAsset from './add-to-asset'
import ImportAsset from '../AssetManage/Component/ImportAssetDrawer'
import ChangeCatalog from './change-catalog'
import AssetDelete from '../AssetManage/Component/AssetDeleteModal'
......@@ -50,6 +52,10 @@ const FC = (props) => {
visible: false,
nodeId: undefined
})
const [addToAssetParams, setAddToAssetParams] = React.useState({
visible: false,
items: undefined
})
const [importAssetParams, setImportAssetParams] = React.useState({
visible: false,
nodeId: undefined
......@@ -324,7 +330,10 @@ const FC = (props) => {
}
const onAddToAssetClick = () => {
setAddToAssetParams({
visible: true,
items: selectedRows
})
}
const onTaskAllocationClick = () => {
......@@ -693,6 +702,16 @@ const FC = (props) => {
refresh && getAssets()
}}
/>
<AddToAsset
{...addToAssetParams}
onCancel={(refresh = false) => {
setAddToAssetParams({
visible: false,
items: undefined
})
refresh && getAssets()
}}
/>
<ImportAsset
{...importAssetParams}
onCancel={() => {
......
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