Sfoglia il codice sorgente

写回project deploy cloud和 group

xy 7 anni fa
parent
commit
c0589f07a1

+ 1 - 0
src/app/common/deploy/tencent/DeployCard.js

@@ -167,6 +167,7 @@ class DeployCard extends Component {
                             deploy_id: id,
                             cloud_id: this.props.cloudID
                         }).then(data => {
+                            console.log('write back',data);
                             if(data.update_project !== null)
                                 this.props.stepByStep(1);
                         })

+ 6 - 8
src/app/common/deploy/tencent/TencentConfig.js

@@ -68,15 +68,7 @@ class TencentConfig extends Component {
         if (schema && deploy && api && group) {
             console.log('deploying');
             axios.get(`${deployUrl}`,
-                // axios.get(`http://localhost:8999/graphql/deployall`,
                 {
-                    // params: {
-                    //     'cloud-name': 'tencent',
-                    //     schema: "ecommerce_schemaID",
-                    //     deploy: "deploy_1544504304478_57468453",
-                    //     api: "path_1544504334478_82625598",
-                    //     group: "group_1544504325443_46750115"
-                    // }
                     params: {
                         'cloud-id': 'tencent_CloudID',
                         'cloud-name': 'tencent',
@@ -186,6 +178,7 @@ class TencentConfig extends Component {
                                                                     cloudID={cloudID}
                                                                     trialcase={this.props.trialcase}
                                                                     pass={this.pass}
+                                                                    projectID={projectID}
                                                                 />
                                                             </Card>
                                                     }
@@ -202,6 +195,7 @@ class TencentConfig extends Component {
                                                                     cloudID={cloudID}
                                                                     trialcase={this.props.trialcase}
                                                                     pass={this.pass}
+                                                                    projectID={projectID}
                                                                 />
                                                             </Card>
                                                     }
@@ -248,6 +242,7 @@ class TencentConfig extends Component {
                                                                     userID={this.props.userID}
                                                                     defalutName={defaultName}
                                                                     trialcase={this.props.trialcase}
+                                                                    projectID={projectID}
                                                                 />
                                                             </Card>
                                                     }
@@ -323,6 +318,7 @@ class TencentConfig extends Component {
                                                                             trialcase={this.props.trialcase}
                                                                             pass={this.pass}
                                                                             stepByStep={this.stepByStep}
+                                                                            projectID={projectID}
                                                                         />
                                                                     </Card>
                                                             }
@@ -346,6 +342,7 @@ class TencentConfig extends Component {
                                                                             trialcase={this.props.trialcase}
                                                                             pass={this.pass}
                                                                             stepByStep={this.stepByStep}
+                                                                            projectID={projectID}
                                                                         />
                                                                     </Card>
                                                             }
@@ -405,6 +402,7 @@ class TencentConfig extends Component {
                                                                             defalutName={defaultName}
                                                                             trialcase={this.props.trialcase}
                                                                             stepByStep={this.stepByStep}
+                                                                            projectID={projectID}
                                                                         />
                                                                     </Card>
                                                             }