From fa381753ef2a2b25b1c0722549ac17e333da79be Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 06 九月 2022 22:50:54 +0800 Subject: [PATCH] 2022-09-06 --- src/templates/sharecomponent/settingcalcomponent/verifycard/settingform/index.jsx | 32 +++++++++++++++++--------------- 1 files changed, 17 insertions(+), 15 deletions(-) diff --git a/src/templates/sharecomponent/settingcalcomponent/verifycard/settingform/index.jsx b/src/templates/sharecomponent/settingcalcomponent/verifycard/settingform/index.jsx index b4622fd..f047810 100644 --- a/src/templates/sharecomponent/settingcalcomponent/verifycard/settingform/index.jsx +++ b/src/templates/sharecomponent/settingcalcomponent/verifycard/settingform/index.jsx @@ -1,6 +1,6 @@ import React, {Component} from 'react' import PropTypes from 'prop-types' -import { Form, Row, Col, Input, Radio, Tooltip, notification, InputNumber } from 'antd' +import { Form, Row, Col, Input, Radio, Tooltip, notification } from 'antd' import { QuestionCircleOutlined } from '@ant-design/icons' import moment from 'moment' @@ -9,6 +9,8 @@ import Utils from '@/utils/utils.js' import CodeMirror from '@/templates/zshare/codemirror' import './index.scss' + +const { TextArea } = Input class SettingForm extends Component { static propTpyes = { @@ -119,7 +121,7 @@ param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') param.secretkey = Utils.encrypt(param.LText, param.timestamp) - Api.getLocalConfig(param) + Api.genericInterface(param) } resolve(values) @@ -226,6 +228,16 @@ </Form.Item> </Col> : null} {interType === 'outer' ? <Col span={8}> + <Form.Item label="澶栭儴鍑芥暟"> + {getFieldDecorator('outerFunc', { + initialValue: setting.outerFunc || '', + rules: [ + + ] + })(<Input placeholder={''} autoComplete="off" />)} + </Form.Item> + </Col> : null} + {interType === 'outer' ? <Col span={24} className="data-source"> <Form.Item label="鎺ュ彛鍦板潃"> {getFieldDecorator('interface', { initialValue: setting.interface || '', @@ -235,17 +247,7 @@ message: this.props.dict['form.required.input'] + '鎺ュ彛鍦板潃!' }, ] - })(<Input placeholder={''} autoComplete="off" />)} - </Form.Item> - </Col> : null} - {interType === 'outer' ? <Col span={8}> - <Form.Item label="澶栭儴鍑芥暟"> - {getFieldDecorator('outerFunc', { - initialValue: setting.outerFunc || '', - rules: [ - - ] - })(<Input placeholder={''} autoComplete="off" />)} + })(<TextArea rows={2}/>)} </Form.Item> </Col> : null} {interType === 'system' ? <Col span={24} className="data-source" style={{paddingLeft: '7px'}}> @@ -313,7 +315,7 @@ </Radio.Group>)} </Form.Item> </Col> - <Col span={8}> + {/* <Col span={8}> <Form.Item label={ <Tooltip placement="topLeft" title="楂樼骇鎼滅储寮圭獥鐨勫搴︼紝娉細褰撳搴﹀�煎皬浜�100鏃惰〃绀哄崰绐楀彛鐨勭櫨鍒嗘瘮锛屽ぇ浜�100鏃惰〃绀哄搴︾殑缁濆鍊笺��"> <QuestionCircleOutlined className="mk-form-tip" /> @@ -324,7 +326,7 @@ initialValue: setting.advanceWidth || 1000 })(<InputNumber min={10} max={3000} precision={0}/>)} </Form.Item> - </Col> + </Col> */} </Row> </Form> </div> -- Gitblit v1.8.0