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
86b3b28f
Commit
86b3b28f
authored
Dec 29, 2020
by
Sixiang_Zzb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务商编辑页提交bug修复
parent
6b46650b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
ServiceProvider.ts
src/models/ServiceProvider.ts
+8
-0
Edit.tsx
src/pages/UserManagement/ServiceProviderManagement/Edit.tsx
+2
-5
No files found.
src/models/ServiceProvider.ts
View file @
86b3b28f
...
@@ -98,6 +98,14 @@ export default {
...
@@ -98,6 +98,14 @@ export default {
yield
put
({
type
:
'returnCurData'
,
CurData
});
yield
put
({
type
:
'returnCurData'
,
CurData
});
return
;
return
;
}
}
// 小区选择错误
if
(
resp
.
error_code
===
"0004"
)
{
let
CurData
:
Boolean
=
false
;
yield
put
({
type
:
"returnCurData"
,
CurData
});
message
.
error
(
"Company name already exists!"
)
return
;
}
},
},
//获取服务商保安根据服务商名
//获取服务商保安根据服务商名
...
...
src/pages/UserManagement/ServiceProviderManagement/Edit.tsx
View file @
86b3b28f
...
@@ -67,8 +67,7 @@ const Edit = (props: any) => {
...
@@ -67,8 +67,7 @@ const Edit = (props: any) => {
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
SaveChooseData
!=
null
)
{
if
(
SaveChooseData
!=
null
)
{
console
.
log
(
optionsList
);
setCList
(
SaveChooseData
.
serviceCommunityList
);
console
.
log
(
SaveChooseData
);
if
(
SaveChooseData
.
serviceScopeList
.
length
<=
1
)
{
if
(
SaveChooseData
.
serviceScopeList
.
length
<=
1
)
{
// 处理服务范围数据
// 处理服务范围数据
optionsList
.
forEach
((
v
)
=>
{
optionsList
.
forEach
((
v
)
=>
{
...
@@ -77,7 +76,6 @@ const Edit = (props: any) => {
...
@@ -77,7 +76,6 @@ const Edit = (props: any) => {
}
}
});
});
}
else
{
}
else
{
console
.
log
(
1122
);
// 处理服务范围数据
// 处理服务范围数据
optionsList
.
forEach
((
v1
)
=>
{
optionsList
.
forEach
((
v1
)
=>
{
SaveChooseData
.
serviceScopeList
.
forEach
((
v2
:
string
,
index
:
number
)
=>
{
SaveChooseData
.
serviceScopeList
.
forEach
((
v2
:
string
,
index
:
number
)
=>
{
...
@@ -105,11 +103,10 @@ const Edit = (props: any) => {
...
@@ -105,11 +103,10 @@ const Edit = (props: any) => {
val
.
serviceCommunityList
=
CList
;
val
.
serviceCommunityList
=
CList
;
val
.
creator
=
'admin'
;
val
.
creator
=
'admin'
;
val
.
updater
=
'admin'
;
val
.
updater
=
'admin'
;
// val.serviceScopeList = val.serviceScopeList;
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
);
};
};
...
...
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