Commit a92ad379 authored by guang.wu's avatar guang.wu

fix: 修改初始化数据

parent 787ae53a
...@@ -16,10 +16,11 @@ const MealLimitsFormList = (meals, selectedMealTypes) => ( ...@@ -16,10 +16,11 @@ const MealLimitsFormList = (meals, selectedMealTypes) => (
<Form.Item <Form.Item
label="" label=""
name={[i, 'mealPeriodType']} name={[i, 'mealPeriodType']}
initialValue={meal}
labelCol={{ span: 0 }} labelCol={{ span: 0 }}
wrapperCol={{ span: 0 }} wrapperCol={{ span: 0 }}
> >
<Input type="hidden" value={meal} /> <Input type="hidden" />
</Form.Item> </Form.Item>
</Col> </Col>
<Col span={24}> <Col span={24}>
...@@ -40,9 +41,10 @@ const MealLimitsFormList = (meals, selectedMealTypes) => ( ...@@ -40,9 +41,10 @@ const MealLimitsFormList = (meals, selectedMealTypes) => (
label="" label=""
name={[j, 'mealType']} name={[j, 'mealType']}
labelCol={{ span: 0 }} labelCol={{ span: 0 }}
initialValue={t}
wrapperCol={{ span: 0 }} wrapperCol={{ span: 0 }}
> >
<Input type="hidden" value={t} /> <Input type="hidden" />
</Form.Item> </Form.Item>
</Col> </Col>
<Col span={24} offset={j ? 1 : 0}> <Col span={24} offset={j ? 1 : 0}>
......
...@@ -14,7 +14,7 @@ const CustomerInfo = props => { ...@@ -14,7 +14,7 @@ const CustomerInfo = props => {
const refForm = useRef(null); const refForm = useRef(null);
/** /**
* 7. 表单关闭 * 7. 表单关闭
* @param {boolean} isRefresh 是否刷新列表 * isRefresh 是否刷新列表
*/ */
const closeModal = isRefresh => { const closeModal = isRefresh => {
if (!isRefresh && typeof props.onClose === 'function') { if (!isRefresh && typeof props.onClose === 'function') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment