Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TOSTUMI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Maple
TOSTUMI
Commits
e6c9b556
Commit
e6c9b556
authored
Feb 18, 2021
by
Sixiang_Zzb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务商编辑页面,修改禁止编辑服务范围
parent
e4f72d22
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
14 deletions
+13
-14
Edit.tsx
src/pages/UserManagement/ServiceProviderManagement/Edit.tsx
+13
-14
No files found.
src/pages/UserManagement/ServiceProviderManagement/Edit.tsx
View file @
e6c9b556
...
...
@@ -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
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment