Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
merchant-manage-ui
Commits
be41941b
Commit
be41941b
authored
May 24, 2024
by
guang.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: POP归属改为单选
parent
20b1ae73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
23 deletions
+7
-23
index.jsx
src/pages/businessManage/info/index.jsx
+7
-23
No files found.
src/pages/businessManage/info/index.jsx
View file @
be41941b
...
@@ -273,24 +273,6 @@ class BusinessInfo extends Component {
...
@@ -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 */
/* eslint-disable no-return-assign */
saveInputRef
=
input
=>
(
this
.
input
=
input
);
saveInputRef
=
input
=>
(
this
.
input
=
input
);
...
@@ -402,11 +384,13 @@ class BusinessInfo extends Component {
...
@@ -402,11 +384,13 @@ class BusinessInfo extends Component {
rules
:
[{
required
:
true
,
message
:
'
请选择POP归属!
'
}],
rules
:
[{
required
:
true
,
message
:
'
请选择POP归属!
'
}],
initialValue
:
businessInfo
.
channelId
,
initialValue
:
businessInfo
.
channelId
,
})(
})(
<
Checkbox
.
Group
<
Radio
.
Group
disabled
>
options=
{
POPModel
}
{
POPModel
.
map
(
pop
=>
(
onChange=
{
e
=>
this
.
onChangePOPModel
(
e
)
}
<
Radio
value=
{
pop
.
value
}
key=
{
pop
.
value
}
>
disabled
{
pop
.
label
}
/>,
</
Radio
>
))
}
</
Radio
.
Group
>,
)
}
)
}
</
FormItem
>
</
FormItem
>
</
Col
>
</
Col
>
...
...
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