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
50bea0ef
Commit
50bea0ef
authored
Dec 29, 2020
by
Sixiang_Zzb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务商编辑页提交bug处理
parent
86b3b28f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
Edit.tsx
src/pages/UserManagement/ServiceProviderManagement/Edit.tsx
+4
-6
No files found.
src/pages/UserManagement/ServiceProviderManagement/Edit.tsx
View file @
50bea0ef
...
@@ -70,17 +70,15 @@ const Edit = (props: any) => {
...
@@ -70,17 +70,15 @@ const Edit = (props: any) => {
setCList
(
SaveChooseData
.
serviceCommunityList
);
setCList
(
SaveChooseData
.
serviceCommunityList
);
if
(
SaveChooseData
.
serviceScopeList
.
length
<=
1
)
{
if
(
SaveChooseData
.
serviceScopeList
.
length
<=
1
)
{
// 处理服务范围数据
// 处理服务范围数据
optionsList
.
forEach
((
v
)
=>
{
optionsList
.
forEach
((
v
,
index
)
=>
{
if
(
v
.
serviceName
===
SaveChooseData
.
serviceScope
)
{
if
(
v
.
serviceName
===
SaveChooseData
.
serviceScope
)
{
SaveChooseData
.
serviceScopeList
=
v
.
serviceCode
;
SaveChooseData
.
serviceScopeList
[
index
]
=
v
.
serviceCode
;
}
}
});
});
}
else
{
}
else
{
// 处理服务范围数据
// 处理服务范围数据
optionsList
.
forEach
((
v1
)
=>
{
optionsList
.
forEach
((
v1
)
=>
{
SaveChooseData
.
serviceScopeList
.
forEach
((
v2
:
string
,
index
:
number
)
=>
{
SaveChooseData
.
serviceScopeList
.
forEach
((
v2
:
string
,
index
:
number
)
=>
{
console
.
log
(
v1
.
serviceName
);
console
.
log
(
v1
.
serviceName
===
v2
);
if
(
v1
.
serviceName
===
v2
)
{
if
(
v1
.
serviceName
===
v2
)
{
SaveChooseData
.
serviceScopeList
[
index
]
=
v1
.
serviceCode
;
SaveChooseData
.
serviceScopeList
[
index
]
=
v1
.
serviceCode
;
}
}
...
@@ -106,7 +104,8 @@ const Edit = (props: any) => {
...
@@ -106,7 +104,8 @@ const Edit = (props: any) => {
if
(
SaveChooseData
)
{
if
(
SaveChooseData
)
{
val
.
id
=
SaveChooseData
.
id
;
val
.
id
=
SaveChooseData
.
id
;
}
}
// console.log(val);
console
.
log
(
val
);
setload
(
true
);
setload
(
true
);
TosTosServiceProviderSave
(
val
);
TosTosServiceProviderSave
(
val
);
};
};
...
@@ -247,7 +246,6 @@ function mapStateToProps(state: any) {
...
@@ -247,7 +246,6 @@ function mapStateToProps(state: any) {
const
{
CurData
,
SaveChooseData
}
=
state
.
ServiceProvider
;
const
{
CurData
,
SaveChooseData
}
=
state
.
ServiceProvider
;
const
{
DataServices
}
=
state
.
User
;
const
{
DataServices
}
=
state
.
User
;
const
{
CommunityList
}
=
state
.
Init
;
const
{
CommunityList
}
=
state
.
Init
;
console
.
log
(
CurData
);
return
{
return
{
CurData
,
CurData
,
SaveChooseData
,
SaveChooseData
,
...
...
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