Commit 911a23a3 by zhaochengxiang

服务导入

parent cefdd8e6
......@@ -149,7 +149,7 @@ const ImportAssetDrawer = (props) => {
const handleOk = () => {
if ((fileList||[]).length === 0) {
showMessage('info', '请先选择模板上传');
showMessage('info', '请先选择文件上传');
return;
}
......
......@@ -36,7 +36,7 @@ const ImportElement = (props) => {
const handleOk = () => {
if ((fileList||[]).length === 0) {
showMessage('info', '请先选择模板上传');
showMessage('info', '请先选择文件上传');
return;
}
......
......@@ -24,6 +24,7 @@ import ColSettingModal from './Component/ColSettingModal';
import StartAuthorize from './Component/StartAuthorize';
import StartRelease from './Component/StartRelease';
import Offline from './Component/Offline';
import ImportServices from './Component/ImportServices';
import './index.less';
......@@ -72,6 +73,7 @@ class Model extends React.Component {
offlineVisible: false,
jdbcInformationVisible: false,
isRoot: false,
importServicesVisible: false,
}
}
......@@ -347,7 +349,7 @@ class Model extends React.Component {
}
onImportClick = () => {
this.setState({ importServicesVisible: true });
}
onSubscribeBtnClick = () => {
......@@ -725,7 +727,7 @@ class Model extends React.Component {
<Button onClick={() => { this.setState({jdbcInformationVisible: true}); }}>JDBC信息</Button>
</Space>
{
(getDataModelerRole(app?.user)!==DataModelerRoleReader) && isOnlyEnding && <Button onClick={this.onImportClick}>导入</Button>
(getDataModelerRole(app?.user)!==DataModelerRoleReader) && !isOnlyEnding && <Button onClick={this.onImportClick}>导入</Button>
}
{
(getDataModelerRole(app?.user)!==DataModelerRoleReader) && isOnlyEnding &&
......@@ -853,7 +855,15 @@ class Model extends React.Component {
<JDBCInformation
visible={this.state.jdbcInformationVisible}
onCancel={() => { this.setState({ jdbcInformationVisible: false }) }}
/>
/>
<ImportServices
visible={this.state.importServicesVisible}
onCancel={() => { this.setState({ importServicesVisible: false }) }}
onSuccess={() => {
this.onTableChange()
}}
/>
</div>
);
}
......
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