Commit 15bae5be by Your Name

逆向工程

parent 6c82d010
......@@ -29,6 +29,7 @@ import AuthShare from './Component/auth-share';
import NodeIntroduction from './Component/node-introduction';
import './index.less';
import Axios from 'axios';
const { Option } = Select;
......@@ -749,6 +750,27 @@ class Model extends React.Component {
新建
</PermissionButton>
<Button
onClick={()=>{
value?.setGlobalState?.({
message: "data-govern-show-select-metadata",
data: {
// TODO
cb: async (val) => {
if (catalogId) {
if (
await Axios.post( "/api/datamodeler/easyDataModelerCURD/addModelByMetadataTableIds", [val], {params:{ easyDataModelCatalogId: catalogId }})
) {
this.onTableChange()
}
}
return true;
},
},
});
}}
>逆向工程</Button>
<PermissionButton
defaultPermission={canExport}
tip={(selectModelerIds||[]).length===0?'请先选择模型':''}
......
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