From 58ba775298e47809c8d09c9c89d497787235c2ec Mon Sep 17 00:00:00 2001 From: zwjamnsss Date: Tue, 15 Aug 2017 12:09:29 +0800 Subject: [PATCH] feat: run --- .../Project/Interface/InterfaceList/Run.js | 70 +++++++++---------- .../Project/Interface/InterfaceList/Run.scss | 12 +++- 2 files changed, 41 insertions(+), 41 deletions(-) diff --git a/client/containers/Project/Interface/InterfaceList/Run.js b/client/containers/Project/Interface/InterfaceList/Run.js index 8f375bf8..0274b313 100644 --- a/client/containers/Project/Interface/InterfaceList/Run.js +++ b/client/containers/Project/Interface/InterfaceList/Run.js @@ -29,7 +29,7 @@ const Option = Select.Option; }) ) @withRouter -export default class InterfaceTest extends Component { +export default class Run extends Component { static propTypes = { match: PropTypes.object, @@ -350,52 +350,46 @@ export default class InterfaceTest extends Component { render () { - const { interfaceName } = this.props; const { method, domains, pathname, query, headers, params, currDomain, paramsType } = this.state; const hasPlugin = this.hasCrossRequestPlugin(); const search = decodeURIComponent(URL.format({query: this.getQueryObj(query)})); return (
-
- { hasPlugin ? '' : - - 温馨提示:当前正在使用接口测试服务,请安装我们为您免费提供的  - - 测试增强插件 [点击获取]! - -
- } - type="warning" - /> +
+ { + hasPlugin ? '' : ( + + 温馨提示:当前正在使用接口测试服务,请安装我们为您免费提供的  + 测试增强插件 [点击获取]! +
+ } + type="warning" + /> + ) }
-
{interfaceName}
- {/* url */} -
-
- - - - - - - - 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)} /> + this.deleteQuery(index)} />
) }) @@ -428,7 +421,7 @@ export default class InterfaceTest extends Component {
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.deleteHeader(index)} /> + this.deleteHeader(index)} />
) }) @@ -436,7 +429,7 @@ export default class InterfaceTest extends Component {
- +