From 0c86e5e2eaf907dfcb63aea13e6efac3ccc52cce Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 25 二月 2020 11:06:20 +0800 Subject: [PATCH] 2020-02-25 --- src/templates/tableshare/verifycardexcelin/index.jsx | 27 ++++++++++++++++++++++++--- 1 files changed, 24 insertions(+), 3 deletions(-) diff --git a/src/templates/tableshare/verifycardexcelin/index.jsx b/src/templates/tableshare/verifycardexcelin/index.jsx index 5a5254a..e5b8a3e 100644 --- a/src/templates/tableshare/verifycardexcelin/index.jsx +++ b/src/templates/tableshare/verifycardexcelin/index.jsx @@ -1,6 +1,6 @@ import React, {Component} from 'react' import PropTypes from 'prop-types' -import { Form, Tabs, Row, Col, Input, Button, Table, Popconfirm, Icon, notification, Modal, message, InputNumber } from 'antd' +import { Form, Tabs, Row, Col, Input, Button, Table, Popconfirm, Icon, notification, Modal, message, InputNumber, Radio } from 'antd' import Utils from '@/utils/utils.js' @@ -148,6 +148,7 @@ this.setState({ verify: { ..._verify, + default: _verify.default || 'true', sheet: _verify.sheet || 'Sheet1', range: _verify.range || 0, columns: _columns, @@ -336,6 +337,15 @@ }) } + onOptionChange = (e, key) => { + const { verify } = this.state + let value = e.target.value + + this.setState({ + verify: {...verify, default: value} + }) + } + showError = (errorType) => { if (errorType === 'S') { notification.success({ @@ -413,13 +423,21 @@ })(<InputNumber min={0} max={100} precision={0} />)} </Form.Item> </Col> + <Col span={8}> + <Form.Item label={'榛樿sql'}> + <Radio.Group value={verify.default} onChange={this.onOptionChange}> + <Radio value="true">鎵ц</Radio> + <Radio value="false">涓嶆墽琛�</Radio> + </Radio.Group> + </Form.Item> + </Col> </Row> </Form> </TabPane> <TabPane tab="Excel鍒楄缃�" key="2x"> <ColumnForm dict={this.props.dict} - range={verify.range} + columns={verify.columns} columnChange={this.columnChange} wrappedComponentRef={(inst) => this.columnForm = inst} /> @@ -434,8 +452,11 @@ </TabPane> <TabPane tab="鑷畾涔夎剼鏈�" key="6"> <CustomScript - usefulfields={verify.columns} dict={this.props.dict} + btn={this.props.card} + isdefault={verify.default} + usefulfields={verify.columns} + scripts={verify.scripts} scriptsChange={this.scriptsChange} wrappedComponentRef={(inst) => this.scriptsForm = inst} /> -- Gitblit v1.8.0