Commit 480e5f6b authored by 张子雨's avatar 张子雨

Merge branch 'feat/constructionOne' into feature/20230327_public_takeaway

* feat/constructionOne:
  feat:  增加搜索
parents 31cbae19 a42f4661
...@@ -53,6 +53,7 @@ const { Item: FormItem } = Form; ...@@ -53,6 +53,7 @@ const { Item: FormItem } = Form;
const { RangePicker } = DatePicker; const { RangePicker } = DatePicker;
const { TabPane } = Tabs; const { TabPane } = Tabs;
const carID = 301008; // 汽车类商家 const carID = 301008; // 汽车类商家
const fileterBrandOptions = (input, options) => options.children.includes(input);
class BusinessInfo extends Component { class BusinessInfo extends Component {
getFieldDecorator = this.props?.form?.getFieldDecorator; getFieldDecorator = this.props?.form?.getFieldDecorator;
...@@ -518,7 +519,7 @@ class BusinessInfo extends Component { ...@@ -518,7 +519,7 @@ class BusinessInfo extends Component {
{getFieldDecorator('selfList', { {getFieldDecorator('selfList', {
initialValue: businessInfo.selfList, initialValue: businessInfo.selfList,
})( })(
<Select mode="multiple"> <Select mode="multiple" filterOption={fileterBrandOptions}>
{this.state.serviceFacilitys.map(item => ( {this.state.serviceFacilitys.map(item => (
<Option value={item.code} key={item.code}> <Option value={item.code} key={item.code}>
{item.desc} {item.desc}
......
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