Commit e6c9b556 authored by Sixiang_Zzb's avatar Sixiang_Zzb

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

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