Commit 409e26d4 authored by XieZhiXiong's avatar XieZhiXiong

chore: 完善逻辑

parent ed47b483
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2021-06-29 09:36:25 * @Date: 2021-06-29 09:36:25
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2021-08-02 16:48:12 * @LastEditTime: 2021-08-02 18:32:50
* @Description: 发券明细 * @Description: 发券明细
*/ */
import React, { useState, useEffect, useRef } from 'react'; import React, { useState, useEffect, useRef } from 'react';
...@@ -268,8 +268,8 @@ const DeliverCoupon: React.FC<IProps> = (props) => { ...@@ -268,8 +268,8 @@ const DeliverCoupon: React.FC<IProps> = (props) => {
message.warning('请选择会员'); message.warning('请选择会员');
return; return;
} }
const newData = [...suitableMemberList]; let newData = [...suitableMemberList];
newData.concat(RowCtl.selectRow.map((item) => ({ ...item, showDelete: true }))); newData = newData.concat(RowCtl.selectRow.map((item) => ({ ...item, showDelete: true })));
setSuitableMemberList(newData); setSuitableMemberList(newData);
const filtered = newData.map(({ onlyId, showDelete, ...rest }) => ({ ...rest })); const filtered = newData.map(({ onlyId, showDelete, ...rest }) => ({ ...rest }));
triggerChange(filtered); triggerChange(filtered);
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2021-06-24 14:05:57 * @Date: 2021-06-24 14:05:57
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2021-08-02 13:47:05 * @LastEditTime: 2021-08-02 17:38:26
* @Description: * @Description:
*/ */
import { ISchema } from '@formily/antd'; import { ISchema } from '@formily/antd';
...@@ -489,7 +489,9 @@ const schema: ISchema = { ...@@ -489,7 +489,9 @@ const schema: ISchema = {
type: 'string', type: 'string',
required: true, required: true,
'x-component': 'MemberCheckboxGroup', 'x-component': 'MemberCheckboxGroup',
'x-component-props': {}, 'x-component-props': {
showMoreAction: true,
},
}, },
}, },
}, },
......
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