Commit 154749c8 by zhaochengxiang

样式统一

parent 7f353d26
import React, { useEffect, useState, useContext, useMemo, useRef } from 'react';
import { Form, Spin, Input, Descriptions, Space, Button, Tooltip, Select, Cascader, Radio, Divider, Typography, Modal, Row, Col, Pagination } from 'antd';
import { Form, Spin, Input, Descriptions, Space, Button, Tooltip, Select, Cascader, Radio, Divider, Typography, Modal, Row, Col, Pagination, Dropdown, Menu } from 'antd';
import { DownOutlined, UpOutlined, QuestionCircleOutlined } from '@ant-design/icons';
import LocalStorage from 'local-storage';
......@@ -1098,7 +1098,9 @@ const AssetAction = (props) => {
字段级维护
</Button>
}
<Button type='primary' onClick={() => {
<Dropdown overlay={
<Menu onClick={({ key })=>{
if (key === 'lineage') {
if (metadata?.metadataTableId) {
app?.setGlobalState?.({
message: 'data-govern-show-metadata-relation',
......@@ -1107,10 +1109,7 @@ const AssetAction = (props) => {
} else {
showMessage("warn","该资产目录没有关联元数据信息");
}
}}>
血缘关系
</Button>
<Button type='primary' onClick={() => {
} else if (key === 'impact') {
if (metadata?.metadataTableId) {
app?.setGlobalState?.({
message: 'data-govern-show-metadata-relation',
......@@ -1119,13 +1118,24 @@ const AssetAction = (props) => {
} else {
showMessage("warn","该资产目录没有关联元数据信息");
}
}
}}>
影响关系
<Menu.Item key="lineage">血缘分析</Menu.Item>
<Menu.Item key="impact">影响分析</Menu.Item>
</Menu>
}>
<Button>
<Space>
关系分析
<DownOutlined />
</Space>
</Button>
</Dropdown>
<Input size="middle"
placeholder="搜索中英文名称/业务规则"
value={keyword}
bordered={true} allowClear
style={{ width: 200 }}
onChange={(e) => {
setPagination({...paginate, pageNum: 1})
setKeyword(e.target.value)
......
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