|
|
@@ -74,7 +74,6 @@ class TencentConfig extends Component {
|
|
|
});
|
|
|
break;
|
|
|
}
|
|
|
- console.log(dataProject.projectStatus);
|
|
|
} else {
|
|
|
console.log('peoject 没存 status');
|
|
|
}
|
|
|
@@ -88,10 +87,60 @@ class TencentConfig extends Component {
|
|
|
region: '',
|
|
|
deployIdPassToPath: '',
|
|
|
groupIdPassToPath: '',
|
|
|
- currentStep: 0,
|
|
|
+ currentStep: '',
|
|
|
deploying: '',
|
|
|
stepAllShow: false,
|
|
|
});
|
|
|
+
|
|
|
+ let projectID = next.projectID ? next.projectID : 'ecommerce_projectID';
|
|
|
+
|
|
|
+ request(graphqlUrl, GET_PROJECT, {id: projectID}).then(
|
|
|
+ data => {
|
|
|
+ let dataProject = data.project_by_id;
|
|
|
+ if (dataProject !== null) {
|
|
|
+ switch(dataProject.projectStatus) {
|
|
|
+ case 'deployed':
|
|
|
+ this.setState({
|
|
|
+ currentStep: 5,
|
|
|
+ stepAllShow: true
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ case 'notificationed':
|
|
|
+ this.setState({
|
|
|
+ currentStep: 4
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ case 'pathed':
|
|
|
+ this.setState({
|
|
|
+ currentStep: 3
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ case 'grouped':
|
|
|
+ this.setState({
|
|
|
+ currentStep: 2
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ case 'functioned':
|
|
|
+ this.setState({
|
|
|
+ currentStep: 1
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ case 'created':
|
|
|
+ this.setState({
|
|
|
+ currentStep: 0
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ this.setState({
|
|
|
+ currentStep: 0
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ console.log('peoject 没存 status');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ )
|
|
|
}
|
|
|
|
|
|
|