Commit 409e26d4 authored by XieZhiXiong's avatar XieZhiXiong

chore: 完善逻辑

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