Commit 911a23a3 by zhaochengxiang

服务导入

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