Commit e6c9b556 authored by Sixiang_Zzb's avatar Sixiang_Zzb

服务商编辑页面,修改禁止编辑服务范围

parent e4f72d22
......@@ -33,14 +33,14 @@ const Edit = (props: any) => {
const formRef = useRef(null as any);
// 选择服务商事件
const onSelectCheckBox = (checkedValue: CheckboxValueType[]) => {
if (checkedValue.indexOf('0') > -1 && checkedValue.indexOf('1') > -1) {
Modal.error({
title: 'Error',
content: <div>Accounting and security can only be selected singly.</div>,
});
}
};
// const onSelectCheckBox = (checkedValue: CheckboxValueType[]) => {
// if (checkedValue.indexOf('0') > -1 && checkedValue.indexOf('1') > -1) {
// Modal.error({
// title: 'Error',
// content: <div>Accounting and security can only be selected singly.</div>,
// });
// }
// };
// 拿取服务范围数据
useEffect(() => {
......@@ -56,7 +56,6 @@ const Edit = (props: any) => {
value: v.serviceCode,
};
});
optionsList = [...DataServices.data.rows];
}
}, [DataServices]);
......@@ -113,6 +112,7 @@ const Edit = (props: any) => {
if (SaveChooseData) {
val.id = SaveChooseData.id;
}
val.serviceScopeList = SaveChooseData.serviceScopeList;
setload(true);
TosTosServiceProviderSave(val);
};
......@@ -168,7 +168,7 @@ const Edit = (props: any) => {
<div className={styles.box2}>
<div className={styles.box2item1}>Services Available</div>
<div className={styles.box2item2}>
<Form.Item
{/* <Form.Item
name="serviceScopeList"
rules={[
{
......@@ -176,10 +176,9 @@ const Edit = (props: any) => {
message: 'Please select at least one service available!',
},
]}
>
<Checkbox.Group options={options as any} onChange={onSelectCheckBox} />
{/* <Radio.Group options={options as any} /> */}
</Form.Item>
> */}
{SaveChooseData.serviceCommunityName}
{/* </Form.Item> */}
</div>
</div>
......
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