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

fix: POP归属改为单选

parent 20b1ae73
......@@ -273,24 +273,6 @@ class BusinessInfo extends Component {
});
};
// 切换POP归属
onChangePOPModel = e => {
this.setState(state => {
const { businessInfo } = state;
if (e && e.length < 2) {
businessInfo.channelId = e;
} else {
businessInfo.channelId = e.filter(item => !(businessInfo.channelId || []).includes(item));
}
this.props.form.setFieldsValue({
channelId: businessInfo.channelId,
});
return {
businessInfo,
};
});
};
/* eslint-disable no-return-assign */
saveInputRef = input => (this.input = input);
......@@ -402,11 +384,13 @@ class BusinessInfo extends Component {
rules: [{ required: true, message: '请选择POP归属!' }],
initialValue: businessInfo.channelId,
})(
<Checkbox.Group
options={POPModel}
onChange={e => this.onChangePOPModel(e)}
disabled
/>,
<Radio.Group disabled>
{POPModel.map(pop => (
<Radio value={pop.value} key={pop.value}>
{pop.label}
</Radio>
))}
</Radio.Group>,
)}
</FormItem>
</Col>
......
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