Commit 129da3cb by zhaochengxiang

bug fix

parent 295cf72a
......@@ -3,8 +3,9 @@ import { Button, Modal, Spin, Tree, AutoComplete } from 'antd'
import { dispatch } from '../../../model'
import produce from 'immer'
import { highlightSearchContentByTerms, showMessage, showNotifaction } from '../../../util'
import { getAssetType, highlightSearchContentByTerms, showMessage, showNotifaction } from '../../../util'
import { generateList } from '../AssetResourceManage/tree'
import { AssetManageReference } from '../../../util/constant'
const FC = (props) => {
const { visible, items, onCancel } = props
......@@ -31,6 +32,7 @@ const FC = (props) => {
payload: {
params: {
dirId: checkedKeys.join(","),
dataAssetType: getAssetType(AssetManageReference),
},
data: (items??[]).map(item => item.id)
},
......
......@@ -3,8 +3,9 @@ import { Button, Modal, Spin, Tree, AutoComplete } from 'antd'
import { dispatch } from '../../../model'
import produce from 'immer'
import { highlightSearchContentByTerms, showMessage, showNotifaction } from '../../../util'
import { getAssetType, highlightSearchContentByTerms, showMessage, showNotifaction } from '../../../util'
import { generateList } from '../AssetResourceManage/tree'
import { AssetManageReference } from '../../../util/constant'
const FC = (props) => {
const { visible, items, onCancel } = props
......@@ -31,6 +32,7 @@ const FC = (props) => {
payload: {
params: {
dirId: (checkedKeys??[]).toString(),
dataAssetType: getAssetType(AssetManageReference),
},
data: (items??[]).map(item => item.id)
},
......
......@@ -4,7 +4,8 @@ import { Button, Modal, Spin, Tree, AutoComplete } from 'antd'
import { dispatch } from '../../../model'
import { generateList } from './tree'
import produce from 'immer'
import { highlightSearchContentByTerms, showMessage, showNotifaction } from '../../../util'
import { getAssetType, highlightSearchContentByTerms, showMessage, showNotifaction } from '../../../util'
import { ResourceManageReference } from '../../../util/constant'
const FC = (props) => {
const { visible, items, onCancel } = props
......@@ -31,6 +32,7 @@ const FC = (props) => {
payload: {
params: {
dirId: checkedKeys.join(","),
dataAssetType: getAssetType(ResourceManageReference),
},
data: (items??[]).map(item => item.id)
},
......
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