新增效果图如下
编辑效果图如下
代码如下
const {
salesFollow: { info },
form: { getFieldDecorator, getFieldValue },
} = this.props;
const formItemLayout = {
labelCol: { span: 4 },
wrapperCol: { span: 12 },
};
getFieldDecorator('keys', { initialValue: info.timeList ? info.timeList : [] });
const keys = getFieldValue('keys') ? getFieldValue('keys') : [];
const paramFormItems = keys.map((k, index) => (
)}
key={k.index || k.index === 0 ? k.index : k}
required={false}
colon={false}
>
{getFieldDecorator(`paramStart_${k.id}`, {
initialValue: k.startTime ? moment(k.startTime) : null,
})(
)