kulley пре 7 година
родитељ
комит
3622445c4e
2 измењених фајлова са 30 додато и 27 уклоњено
  1. 3 2
      src/app/basicVersion/caseShow/UserCustom.js
  2. 27 25
      src/login/CloudConfig.js

+ 3 - 2
src/app/basicVersion/caseShow/UserCustom.js

@@ -198,7 +198,8 @@ class UserCustom extends Component {
                     } else {
                         console.log('deployAll 失败');
                         _this.setState({
-                            deployFailed: true
+                            deployFailed: true,
+                            disableDeployButton: false
                         })
                     }
 
@@ -282,7 +283,7 @@ class UserCustom extends Component {
                 <div>
                     {
                         deployFailed?
-                            '部署失败!'
+                            <span style={{color: 'red', fontSize: 20}}>部署失败!</span>
                             :
                             ''
                     }

+ 27 - 25
src/login/CloudConfig.js

@@ -157,7 +157,6 @@ class CloudConfig extends Component {
                                 </Panel>
                                 <Panel header="我该如何获得这项配置?" key="2" style={customPanelStyle}>
                                     <p>腾讯云请到:<a href="https://console.cloud.tencent.com/cam/capi" rel="noopener noreferrer" target='_blank'>腾讯云API</a></p>
-                                    <p>阿里云请到:<a href="https://console.cloud.tencent.com/cam/capi" rel="noopener noreferrer" target='_blank'>阿里云API</a></p>
                                     <p>其他云请联系我们</p>
                                 </Panel>
                             </Collapse>
@@ -202,31 +201,34 @@ class CloudConfig extends Component {
                                     <div>
                                         <span className='cloud-name'><FormattedMessage id="Aliyun"/>: </span>
                                         <div style={{marginBottom: 15}}>
-                                            <div>
-                                                <div style={{marginBottom: 10}}>
-                                                    <span className='item-title-cloud'>ID:</span>
-                                                    <Input style={{width: 250}} value={aliID} placeholder={'不保存默认使用 ioobot 账户'} onChange={this.inputChange('aliID')}/>
-                                                </div>
-                                                <div style={{marginBottom: 10}}>
-                                                    <span className='item-title-cloud'>Key:</span>
-                                                    <Input style={{width: 250}} value={aliKey} placeholder={'不保存默认使用 ioobot 账户'} onChange={this.inputChange('aliKey')}/>
-                                                </div>
-
-                                                {
-                                                    showOK === 'aliyun' ?
-                                                        <Icon type="check-circle" theme="twoTone" twoToneColor="#52c41a"/>
-                                                        :
-                                                        showNotOK === 'aliyun' ?
-                                                            <span>not ok</span>
-                                                            :
-                                                            ""
-                                                }
-                                            </div>
-                                            <Button type='primary'
-                                                    onClick={this.submit(aliyunCLoudID, 'aliyun', aliID, aliKey, aliAppID)}>
-                                                <FormattedMessage id="save"/>
-                                            </Button>
+                                            如需使用请联系我们
                                         </div>
+                                        {/*<div style={{marginBottom: 15}}>*/}
+                                        {/*<div>*/}
+                                            {/*<div style={{marginBottom: 10}}>*/}
+                                                {/*<span className='item-title-cloud'>ID:</span>*/}
+                                                {/*<Input style={{width: 250}} value={aliID} placeholder={'不保存默认使用 ioobot 账户'} onChange={this.inputChange('aliID')}/>*/}
+                                            {/*</div>*/}
+                                            {/*<div style={{marginBottom: 10}}>*/}
+                                                {/*<span className='item-title-cloud'>Key:</span>*/}
+                                                {/*<Input style={{width: 250}} value={aliKey} placeholder={'不保存默认使用 ioobot 账户'} onChange={this.inputChange('aliKey')}/>*/}
+                                            {/*</div>*/}
+
+                                            {/*{*/}
+                                                {/*showOK === 'aliyun' ?*/}
+                                                    {/*<Icon type="check-circle" theme="twoTone" twoToneColor="#52c41a"/>*/}
+                                                    {/*:*/}
+                                                    {/*showNotOK === 'aliyun' ?*/}
+                                                        {/*<span>not ok</span>*/}
+                                                        {/*:*/}
+                                                        {/*""*/}
+                                            {/*}*/}
+                                        {/*</div>*/}
+                                        {/*<Button type='primary'*/}
+                                                {/*onClick={this.submit(aliyunCLoudID, 'aliyun', aliID, aliKey, aliAppID)}>*/}
+                                            {/*<FormattedMessage id="save"/>*/}
+                                        {/*</Button>*/}
+                                    {/*</div>*/}
                                     </div> : ''
                             }
                             {