diff --git a/client/containers/Project/Interface/InterfaceList/Run.js b/client/containers/Project/Interface/InterfaceList/Run.js index 0274b313..b51614a0 100644 --- a/client/containers/Project/Interface/InterfaceList/Run.js +++ b/client/containers/Project/Interface/InterfaceList/Run.js @@ -1,7 +1,7 @@ import React, { Component } from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' -import { Button, Input, Select, Card, Alert, Spin, Icon, message } from 'antd' +import { Button, Input, Select, Card, Alert, Spin, Icon, message, Collapse } from 'antd' import { autobind } from 'core-decorators'; import crossRequest from 'cross-request'; import { withRouter } from 'react-router'; @@ -16,6 +16,7 @@ import './Run.scss' const { TextArea } = Input; const InputGroup = Input.Group; const Option = Select.Option; +const Panel = Collapse.Panel; @connect( state => ({ @@ -380,16 +381,16 @@ export default class Run extends Component {
- - true} style={{flexBasis: 180, flexGrow: 1}} onChange={this.changeDomain} onSelect={this.selectDomain}> { Object.keys(domains).map((key, index) => ()) } - +
- - { - query.map((item, index) => { - return ( -
- this.changeQuery(e, index, true)} style={{display: 'inline-block', width: 200, margin: 10}} />{' = '} - this.changeQuery(e, index)} style={{display: 'inline-block', width: 200, margin: 10}} /> - this.deleteQuery(index)} /> -
- ) - }) - } - -
- -
+ + + { + query.map((item, index) => { + return ( +
+ this.changeQuery(e, index, true)} className="key" /> + = + this.changeQuery(e, index)} className="value" /> + this.deleteQuery(index)} /> +
+ ) + }) + } + +
+ { headers.map((item, index) => { return ( -
- this.changeHeader(e, index, true)} style={{display: 'inline-block', width: 200, margin: 10}} />{' = '} - this.changeHeader(e, index)} style={{display: 'inline-block', width: 200, margin: 10}} /> +
+ this.changeHeader(e, index, true)} className="key" />{' = '} + this.changeHeader(e, index)} className="value" /> this.deleteHeader(index)} />
) }) } - -
- - -
-
- -
+ + + +
BODY
+
e.stopPropagation()} style={{marginRight: 5}}> + +
+
+ } + key="3" + > { method === 'POST' && paramsType !== 'form' && paramsType !== 'file' &&