Commit 8c67d42e authored by zsl's avatar zsl
Browse files

[REV] Modify the Project creation component page creation application does not work

Showing with 28 additions and 0 deletions
+28 -0
......@@ -154,6 +154,34 @@ class Index extends React.Component {
this.handleCodeWarehouseType(this.props);
});
};
handleAddGroup = vals => {
const { setFieldsValue } = this.props.form;
this.props.dispatch({
type: "groupControl/addGroup",
payload: {
team_name: globalUtil.getCurrTeamName(),
...vals
},
callback: group => {
if (group) {
// 获取群组
this.props.dispatch({
type: "global/fetchGroups",
payload: {
team_name: globalUtil.getCurrTeamName(),
region_name: globalUtil.getCurrRegionName()
},
callback: () => {
setFieldsValue({ group_id: group.ID });
this.cancelAddGroup();
}
});
}
}
});
};
render() {
const { tags, addGroup, tagsLoading, Loading } = this.state;
const { getFieldDecorator, getFieldValue } = this.props.form;
......
Supports Markdown
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