From a8f998ab43efeade3c1308c51705c234c18db4d1 Mon Sep 17 00:00:00 2001 From: "gaoxiaolin.gao" Date: Thu, 8 Feb 2018 10:34:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=85=AC=E5=BC=80?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/containers/Login/Login.js | 2 +- .../InterfaceList/InterfaceEditForm.js | 44 +++++++++---------- .../Setting/ProjectData/ProjectData.js | 40 +++++++++++++++-- .../Setting/ProjectData/ProjectData.scss | 6 +++ exts/yapi-plugin-export-data/client.js | 2 + exts/yapi-plugin-export-data/controller.js | 18 +++++--- server/controllers/interface.js | 3 +- server/models/interface.js | 3 +- 8 files changed, 82 insertions(+), 36 deletions(-) diff --git a/client/containers/Login/Login.js b/client/containers/Login/Login.js index f0d550a6..b753548b 100755 --- a/client/containers/Login/Login.js +++ b/client/containers/Login/Login.js @@ -88,7 +88,7 @@ class Login extends Component { return (
{/* 登录类型 (普通登录/LDAP登录) */} - {isLDAP && + {isLDAP && LDAP 普通登录 diff --git a/client/containers/Project/Interface/InterfaceList/InterfaceEditForm.js b/client/containers/Project/Interface/InterfaceList/InterfaceEditForm.js index 8795a1e0..0358eb49 100755 --- a/client/containers/Project/Interface/InterfaceList/InterfaceEditForm.js +++ b/client/containers/Project/Interface/InterfaceList/InterfaceEditForm.js @@ -135,7 +135,8 @@ class InterfaceEditForm extends Component { jsonType: 'tpl', mockUrl: this.props.mockUrl, req_radio_type: 'req-query', - custom_field_value: '' + custom_field_value: '', + api_opened: false }, curdata) } @@ -229,7 +230,7 @@ class InterfaceEditForm extends Component { if (HTTP_METHOD[values.method].request_body !== true) { values.req_body_form = [] } - // console.log('values', values); + console.log('values', values); this.props.onSubmit(values) EditFormContext.props.changeEditStatus(false); @@ -922,35 +923,17 @@ class InterfaceEditForm extends Component {
- {/* - {getFieldDecorator('switch_notice', { valuePropName: 'checked', initialValue: false })( - - )} - - - {getFieldDecorator('message', { initialValue: "" })( -