From 95afd40fc2741ac0ce59c2091f6cfce1f98877d4 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 24 六月 2021 09:15:45 +0800 Subject: [PATCH] 2021-06-24 --- src/tabviews/zshare/topSearch/advanceform/index.jsx | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/src/tabviews/zshare/topSearch/advanceform/index.jsx b/src/tabviews/zshare/topSearch/advanceform/index.jsx index cd54444..8c47589 100644 --- a/src/tabviews/zshare/topSearch/advanceform/index.jsx +++ b/src/tabviews/zshare/topSearch/advanceform/index.jsx @@ -3,10 +3,12 @@ import { fromJS } from 'immutable' import { Form, Row, Col, Input, Select, DatePicker } from 'antd' +import asyncComponent from '@/utils/asyncComponent' import Utils from '@/utils/utils.js' import './index.scss' const { MonthPicker, WeekPicker, RangePicker } = DatePicker +const CheckCard = asyncComponent(() => import('@/tabviews/zshare/mutilform/checkCard')) class AdvanceSearch extends Component { static propTpyes = { @@ -246,6 +248,24 @@ </Form.Item> </Col> ) + } else if (item.type === 'checkcard') { // 澶氶�夋 + fields.push( + <Col span={item.ratio || 6} key={index}> + <Form.Item label={item.labelShow !== 'false' ? item.label : ''}> + {getFieldDecorator(item.field, { + initialValue: item.initval, + rules: [ + { + required: item.required, + message: dict['form.required.select'] + item.label + '!' + } + ] + })( + <CheckCard card={item} /> + )} + </Form.Item> + </Col> + ) } }) -- Gitblit v1.8.0