|
@@ -8,7 +8,18 @@ import {manageUsers} from "../../../../config";
|
|
|
import {FormattedMessage} from 'react-intl';
|
|
import {FormattedMessage} from 'react-intl';
|
|
|
const Panel = Collapse.Panel;
|
|
const Panel = Collapse.Panel;
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+// 如需改变显示,请在此处 value 处更改
|
|
|
|
|
+// 如需添加中文,请在此处 value 处添加
|
|
|
|
|
+// eg: 'xxxx': <F.. id='xxx'/>
|
|
|
|
|
+const valueToKey = {
|
|
|
|
|
+ 'groupName': 'Name',
|
|
|
|
|
+ 'environmentName': 'environmentName',
|
|
|
|
|
+ 'defaultDomain': 'defaultDomain',
|
|
|
|
|
+ 'frontType': 'frontType',
|
|
|
|
|
+ 'userDomain': 'userDomain',
|
|
|
|
|
+ 'userStatus': 'userStatus',
|
|
|
|
|
+ 'region': 'region',
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
class APIGroupCard extends Component {
|
|
class APIGroupCard extends Component {
|
|
|
constructor(props) {
|
|
constructor(props) {
|
|
@@ -147,12 +158,12 @@ class APIGroupCard extends Component {
|
|
|
<Collapse bordered={false}>
|
|
<Collapse bordered={false}>
|
|
|
<Panel header="Want more options?" style={customPanelStyle}>
|
|
<Panel header="Want more options?" style={customPanelStyle}>
|
|
|
<div style={{marginBottom: 10}}>
|
|
<div style={{marginBottom: 10}}>
|
|
|
- <span className='vice-title'>groupName: </span>
|
|
|
|
|
|
|
+ <span className='vice-title'>{valueToKey['groupName']}: </span>
|
|
|
<Input value={this.state.groupName} style={{width: 400}}
|
|
<Input value={this.state.groupName} style={{width: 400}}
|
|
|
onChange={this.switchConfig('groupName')}/>
|
|
onChange={this.switchConfig('groupName')}/>
|
|
|
</div>
|
|
</div>
|
|
|
<div style={{marginBottom: 10}}>
|
|
<div style={{marginBottom: 10}}>
|
|
|
- <span className='vice-title'>region: </span>
|
|
|
|
|
|
|
+ <span className='vice-title'>{valueToKey['region']}: </span>
|
|
|
<Radio.Group onChange={this.switchConfig('groupRegion')} value={this.state.groupRegion} buttonStyle="solid">
|
|
<Radio.Group onChange={this.switchConfig('groupRegion')} value={this.state.groupRegion} buttonStyle="solid">
|
|
|
<Radio.Button value="guangzhou">Guangzhou</Radio.Button>
|
|
<Radio.Button value="guangzhou">Guangzhou</Radio.Button>
|
|
|
<Radio.Button value="shanghai">Shanghai</Radio.Button>
|
|
<Radio.Button value="shanghai">Shanghai</Radio.Button>
|
|
@@ -161,7 +172,7 @@ class APIGroupCard extends Component {
|
|
|
</Radio.Group>
|
|
</Radio.Group>
|
|
|
</div>
|
|
</div>
|
|
|
<div style={{marginBottom: 10}}>
|
|
<div style={{marginBottom: 10}}>
|
|
|
- <span className='vice-title'>frontType: </span>
|
|
|
|
|
|
|
+ <span className='vice-title'>{valueToKey['frontType']}: </span>
|
|
|
<Radio.Group onChange={this.switchConfig('frontType')} defaultValue={this.state.frontType}
|
|
<Radio.Group onChange={this.switchConfig('frontType')} defaultValue={this.state.frontType}
|
|
|
buttonStyle="solid">
|
|
buttonStyle="solid">
|
|
|
<Radio.Button value="http">http</Radio.Button>
|
|
<Radio.Button value="http">http</Radio.Button>
|
|
@@ -170,11 +181,11 @@ class APIGroupCard extends Component {
|
|
|
</Radio.Group>
|
|
</Radio.Group>
|
|
|
</div>
|
|
</div>
|
|
|
<div style={{marginBottom: 10}}>
|
|
<div style={{marginBottom: 10}}>
|
|
|
- <span className='vice-title'>defaultDomain: </span>
|
|
|
|
|
|
|
+ <span className='vice-title'>{valueToKey['defaultDomain']}: </span>
|
|
|
<Input value={this.state.defaultDomain} style={{width: 400}} disabled/>
|
|
<Input value={this.state.defaultDomain} style={{width: 400}} disabled/>
|
|
|
</div>
|
|
</div>
|
|
|
<div style={{marginBottom: 10}}>
|
|
<div style={{marginBottom: 10}}>
|
|
|
- <span className='vice-title'>environmentName: </span>
|
|
|
|
|
|
|
+ <span className='vice-title'>{valueToKey['environmentName']}: </span>
|
|
|
<Radio.Group onChange={this.switchConfig('environmentName')} defaultValue={this.state.environmentName}
|
|
<Radio.Group onChange={this.switchConfig('environmentName')} defaultValue={this.state.environmentName}
|
|
|
buttonStyle="solid">
|
|
buttonStyle="solid">
|
|
|
<Radio.Button value="test">test</Radio.Button>
|
|
<Radio.Button value="test">test</Radio.Button>
|
|
@@ -183,12 +194,12 @@ class APIGroupCard extends Component {
|
|
|
</Radio.Group>
|
|
</Radio.Group>
|
|
|
</div>
|
|
</div>
|
|
|
<div style={{marginBottom: 10}}>
|
|
<div style={{marginBottom: 10}}>
|
|
|
- <span className='vice-title'>userDomain: </span>
|
|
|
|
|
|
|
+ <span className='vice-title'>{valueToKey['userDomain']}: </span>
|
|
|
<Input value={this.state.userDomain} style={{width: 400}}
|
|
<Input value={this.state.userDomain} style={{width: 400}}
|
|
|
onChange={this.switchConfig('userDomain')}/>
|
|
onChange={this.switchConfig('userDomain')}/>
|
|
|
</div>
|
|
</div>
|
|
|
<div style={{marginBottom: 10}}>
|
|
<div style={{marginBottom: 10}}>
|
|
|
- <span className='vice-title'>userStatus: </span>
|
|
|
|
|
|
|
+ <span className='vice-title'>{valueToKey['userStatus']}: </span>
|
|
|
<Radio.Group onChange={this.switchConfig('userStatus')} defaultValue={this.state.userStatus}
|
|
<Radio.Group onChange={this.switchConfig('userStatus')} defaultValue={this.state.userStatus}
|
|
|
buttonStyle="solid">
|
|
buttonStyle="solid">
|
|
|
<Radio.Button value="open">open</Radio.Button>
|
|
<Radio.Button value="open">open</Radio.Button>
|