Commit 1e8a3a93 by zhaochengxiang

非结构化字段

parent bc023eb8
...@@ -416,4 +416,8 @@ export function* draftAssetImport(payload) { ...@@ -416,4 +416,8 @@ export function* draftAssetImport(payload) {
export function* fillRelationDisplayInfo(payload) { export function* fillRelationDisplayInfo(payload) {
return yield call(service.fillRelationDisplayInfo, payload); return yield call(service.fillRelationDisplayInfo, payload);
}
export function* getBusinessColumns(payload) {
return yield call(service.getBusinessColumns, payload);
} }
\ No newline at end of file
...@@ -423,4 +423,8 @@ export function getRelatedAssets(payload) { ...@@ -423,4 +423,8 @@ export function getRelatedAssets(payload) {
export function fillRelationDisplayInfo(payload) { export function fillRelationDisplayInfo(payload) {
return GetJSON("/dataassetmanagertest/dataAssetRelatedApi/fillRelationDisplayInfo", payload) return GetJSON("/dataassetmanagertest/dataAssetRelatedApi/fillRelationDisplayInfo", payload)
}
export function getBusinessColumns(payload) {
return GetJSON("/dataassetmanagertest/dataAssetColumnApi/listBusinessColumnsByDataAssetId", payload)
} }
\ No newline at end of file
...@@ -157,24 +157,26 @@ const FC = React.forwardRef(function ({ item, reference, action, onChange }, ref ...@@ -157,24 +157,26 @@ const FC = React.forwardRef(function ({ item, reference, action, onChange }, ref
return ( return (
<div> <div>
<div style={{ display: 'flex', justifyContent: 'space-between' }}> <div style={{ display: 'flex', justifyContent: 'flex-end' }}>
{ <Space>
action !== 'detail' ? <Space> {
<Button onClick={onEditClick}>编辑</Button> action !== 'detail' && <React.Fragment>
<Tooltip title={(selectedRows??[]).length===0?'请先选择资产':''}> <Button onClick={onEditClick}>编辑</Button>
<Button disabled={(selectedRows??[]).length===0} onClick={onDeleteClick}>删除</Button> <Tooltip title={(selectedRows??[]).length===0?'请先选择资产':''}>
</Tooltip> <Button disabled={(selectedRows??[]).length===0} onClick={onDeleteClick}>删除</Button>
</Space> : <div /> </Tooltip>
} </React.Fragment>
<Input size="middle" }
placeholder='搜索资产名称' <Input size="middle"
value={keyword} placeholder='搜索资产名称'
bordered={true} allowClear value={keyword}
style={{ width: 200 }} bordered={true} allowClear
onChange={(e) => { style={{ width: 200 }}
setPagination({...pagination, pageNum: 1}) onChange={(e) => {
setKeyword(e.target.value) setPagination({...pagination, pageNum: 1})
}} /> setKeyword(e.target.value)
}} />
</Space>
</div> </div>
<div className='mt-3'> <div className='mt-3'>
<Table <Table
......
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