|
@@ -318,8 +318,8 @@ class TencentConfig extends Component {
|
|
|
<Col span={14}>
|
|
<Col span={14}>
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
- this.state.currentStep !== '' ?
|
|
|
|
|
- <Steps current={this.state.currentStep} style={{marginBottom: 30}}>
|
|
|
|
|
|
|
+ this.state.currentStep !== '' || this.state.deploying === 'deploying' || this.state.deploying === 'deployed'?
|
|
|
|
|
+ <Steps current={this.state.deploying !== 'deploying' ? this.state.currentStep : 4} style={{marginBottom: 30}}>
|
|
|
<Step title={this.stepStatus(0)} description="云函数配置"/>
|
|
<Step title={this.stepStatus(0)} description="云函数配置"/>
|
|
|
<Step title={this.stepStatus(1)} description="服务配置"/>
|
|
<Step title={this.stepStatus(1)} description="服务配置"/>
|
|
|
<Step title={this.stepStatus(2)} description="API 配置"/>
|
|
<Step title={this.stepStatus(2)} description="API 配置"/>
|
|
@@ -417,7 +417,6 @@ class TencentConfig extends Component {
|
|
|
this.props.trialcase ?
|
|
this.props.trialcase ?
|
|
|
''
|
|
''
|
|
|
:
|
|
:
|
|
|
-
|
|
|
|
|
this.state.projectType === 'graphql' ?
|
|
this.state.projectType === 'graphql' ?
|
|
|
|
|
|
|
|
this.state.schemaState === 'ok' ?
|
|
this.state.schemaState === 'ok' ?
|
|
@@ -435,24 +434,25 @@ class TencentConfig extends Component {
|
|
|
}}><FormattedMessage id="deploy"/>!</Button>
|
|
}}><FormattedMessage id="deploy"/>!</Button>
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
- {
|
|
|
|
|
- this.state.deploying === 'deploying' ?
|
|
|
|
|
- <Spin size="large"/>
|
|
|
|
|
- :
|
|
|
|
|
- this.state.deploying === 'finished' ?
|
|
|
|
|
- <Progress type="circle" percent={100}/>
|
|
|
|
|
- :
|
|
|
|
|
- this.state.deploying === 'error' ?
|
|
|
|
|
- <Progress type="circle" percent={99}
|
|
|
|
|
- status="exception"/>
|
|
|
|
|
- :
|
|
|
|
|
- ''
|
|
|
|
|
- }
|
|
|
|
|
</Col>
|
|
</Col>
|
|
|
:
|
|
:
|
|
|
''
|
|
''
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ this.state.deploying === 'deploying' ?
|
|
|
|
|
+ <Spin size="large"/>
|
|
|
|
|
+ :
|
|
|
|
|
+ this.state.deploying === 'finished' ?
|
|
|
|
|
+ <Progress type="circle" percent={100}/>
|
|
|
|
|
+ :
|
|
|
|
|
+ this.state.deploying === 'error' ?
|
|
|
|
|
+ <Progress type="circle" percent={99}
|
|
|
|
|
+ status="exception"/>
|
|
|
|
|
+ :
|
|
|
|
|
+ ''
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
</Row>
|
|
</Row>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|