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
46efa679
Commit
46efa679
authored
Aug 18, 2020
by
maple
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix]数组
parent
a9a1ed0c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
8 deletions
+21
-8
dist.zip
dist.zip
+0
-0
index.jsx
src/components/ShowOptions/index.jsx
+4
-1
Detail.tsx
...pages/UserManagement/ServiceProviderManagement/Detail.tsx
+10
-2
Edit.tsx
src/pages/UserManagement/ServiceProviderManagement/Edit.tsx
+6
-4
ServiceProviderManagement.tsx
...t/ServiceProviderManagement/ServiceProviderManagement.tsx
+1
-1
TOS WEB端 接口文档(word)(1).docx
项目文档/TOS WEB端 接口文档(word)(1).docx
+0
-0
No files found.
dist.zip
0 → 100644
View file @
46efa679
File added
src/components/ShowOptions/index.jsx
View file @
46efa679
...
@@ -70,7 +70,10 @@ class ShowOptions extends React.Component {
...
@@ -70,7 +70,10 @@ class ShowOptions extends React.Component {
const
{
list
,
dispatch
,
defaultValue
}
=
this
.
props
;
const
{
list
,
dispatch
,
defaultValue
}
=
this
.
props
;
if
(
list
==
null
){
if
(
list
==
null
){
//console.error("组件错误:没有数据导入")
console
.
error
(
"组件错误:没有数据导入"
)
}
else
{
// console.log("显示组件")
// console.log(list)
}
}
this
.
state
=
{
this
.
state
=
{
selectoptionsOpen
:
'Open'
,
selectoptionsOpen
:
'Open'
,
...
...
src/pages/UserManagement/ServiceProviderManagement/Detail.tsx
View file @
46efa679
...
@@ -23,7 +23,9 @@ const Detail = (props:any) => {
...
@@ -23,7 +23,9 @@ const Detail = (props:any) => {
getSecurityGuarder
({
companyName
:
location
.
query
.
providerName
})
getSecurityGuarder
({
companyName
:
location
.
query
.
providerName
})
},
[]);
},
[]);
const
[
showList
,
setShowList
]
=
useState
([])
useEffect
(()
=>
{
useEffect
(()
=>
{
console
.
log
(
"详情接收"
)
console
.
log
(
CurData
)
console
.
log
(
CurData
)
console
.
log
(
CurDataFollow
)
console
.
log
(
CurDataFollow
)
},
[
CurData
,
CurDataFollow
]);
},
[
CurData
,
CurDataFollow
]);
...
@@ -62,10 +64,11 @@ const Detail = (props:any) => {
...
@@ -62,10 +64,11 @@ const Detail = (props:any) => {
<
TitleBack
title=
"Service Provider Details"
/>
<
TitleBack
title=
"Service Provider Details"
/>
<
div
className=
{
styles
.
bigbox
}
>
<
div
className=
{
styles
.
bigbox
}
>
<
div
className=
{
styles
.
box0
}
>
<
div
className=
{
styles
.
box0
}
>
<
div
className=
{
styles
.
box0item1
}
></
div
>
<
div
className=
{
styles
.
box0item1
}
></
div
>
<
div
className=
{
styles
.
box0item2
}
>
334562
</
div
>
<
div
className=
{
styles
.
box0item2
}
>
{
CurData
.
serviceCommunityList
}
</
div
>
</
div
>
</
div
>
<
div
className=
{
styles
.
box1
}
>
<
div
className=
{
styles
.
box1
}
>
<
div
className=
{
styles
.
box1item1
}
>
Company Name
</
div
>
<
div
className=
{
styles
.
box1item1
}
>
Company Name
</
div
>
...
@@ -95,7 +98,12 @@ const Detail = (props:any) => {
...
@@ -95,7 +98,12 @@ const Detail = (props:any) => {
<
div
className=
{
styles
.
box6
}
>
<
div
className=
{
styles
.
box6
}
>
<
div
className=
{
styles
.
box1item1
}
>
Service Community
</
div
>
<
div
className=
{
styles
.
box1item1
}
>
Service Community
</
div
>
</
div
>
</
div
>
<
ShowOptions
list=
{
[
'小区'
]
}
defaultValue=
{
"Put It Away"
}
onSubmit=
{
printContent
}
/>
{
CurData
.
serviceCommunityList
!=
null
?
<
ShowOptions
list=
{
CurData
.
serviceCommunityList
}
defaultValue=
{
"Put It Away"
}
onSubmit=
{
printContent
}
/>
:<></>
}
<
div
className=
{
styles
.
box7
}
>
<
div
className=
{
styles
.
box7
}
>
<
div
className=
{
styles
.
box1item1
}
>
Security Guard Account
</
div
>
<
div
className=
{
styles
.
box1item1
}
>
Security Guard Account
</
div
>
...
...
src/pages/UserManagement/ServiceProviderManagement/Edit.tsx
View file @
46efa679
...
@@ -8,7 +8,7 @@ import SelectOptions from '../../../components/SelectOptions/index';
...
@@ -8,7 +8,7 @@ import SelectOptions from '../../../components/SelectOptions/index';
const
Edit
=
(
props
:
any
)
=>
{
const
Edit
=
(
props
:
any
)
=>
{
const
{
dispatch
,
CurData
,
location
}
=
props
;
const
{
dispatch
,
CurData
,
location
,
CommunityList
}
=
props
;
const
getByProviderName
=
(
values
:
any
)
=>
{
dispatch
({
type
:
'ServiceProvider/getByProviderName'
,
playload
:
values
})
};
const
getByProviderName
=
(
values
:
any
)
=>
{
dispatch
({
type
:
'ServiceProvider/getByProviderName'
,
playload
:
values
})
};
const
req_1001
=
(
values
:
any
)
=>
{
dispatch
({
type
:
'ServiceProvider/model_1003'
,
playload
:
values
})
};
const
req_1001
=
(
values
:
any
)
=>
{
dispatch
({
type
:
'ServiceProvider/model_1003'
,
playload
:
values
})
};
...
@@ -57,7 +57,7 @@ const Edit= (props:any) => {
...
@@ -57,7 +57,7 @@ const Edit= (props:any) => {
<
div
className=
{
styles
.
line
}
></
div
>
<
div
className=
{
styles
.
line
}
></
div
>
<
SelectOptions
list=
{
[
"小区A"
,].
sort
()
}
onSubmit=
{
printContent
}
/>
<
SelectOptions
list=
{
CommunityList
}
onSubmit=
{
printContent
}
/>
<
div
className=
{
styles
.
box2
}
>
<
div
className=
{
styles
.
box2
}
>
<
div
className=
{
styles
.
box2item1
}
>
Services Available
</
div
>
<
div
className=
{
styles
.
box2item1
}
>
Services Available
</
div
>
...
@@ -87,9 +87,11 @@ const Edit= (props:any) => {
...
@@ -87,9 +87,11 @@ const Edit= (props:any) => {
};
};
function
mapStateToProps
(
state
:
any
)
{
function
mapStateToProps
(
state
:
any
)
{
const
{
CurData
}
=
state
.
ServiceProvider
;
const
{
CurData
}
=
state
.
ServiceProvider
;
const
{
CommunityList
}
=
state
.
Init
;
return
{
return
{
CurData
CurData
,
CommunityList
};
};
}
}
...
...
src/pages/UserManagement/ServiceProviderManagement/ServiceProviderManagement.tsx
View file @
46efa679
...
@@ -64,10 +64,10 @@ const ServiceProviderManagement = (props: any) => {
...
@@ -64,10 +64,10 @@ const ServiceProviderManagement = (props: any) => {
const
printContent
=
(
comment
:
any
)
=>
{
const
printContent
=
(
comment
:
any
)
=>
{
console
.
log
(
comment
)
console
.
log
(
comment
)
}
}
const
test
=
[
'A'
,
'B'
]
return
(
return
(
<
div
className=
{
styles
.
base
}
>
<
div
className=
{
styles
.
base
}
>
{
/* 头部组件 */
}
{
/* 头部组件 */
}
<
h1
>
CommunityList(
{
CommunityList
[
0
]
}
):
{
CommunityList
}
</
h1
>
<
Form
ref=
{
formRef
}
name=
"basic"
initialValues=
{
{}
}
onFinish=
{
onFinish
}
onFinishFailed=
{
onFinishFailed
}
>
<
Form
ref=
{
formRef
}
name=
"basic"
initialValues=
{
{}
}
onFinish=
{
onFinish
}
onFinishFailed=
{
onFinishFailed
}
>
<
div
className=
{
styles
.
box
}
><
Form
.
Item
name=
"providerName"
><
Input
style=
{
{
width
:
200
}
}
placeholder=
"Service Provider"
/></
Form
.
Item
></
div
>
<
div
className=
{
styles
.
box
}
><
Form
.
Item
name=
"providerName"
><
Input
style=
{
{
width
:
200
}
}
placeholder=
"Service Provider"
/></
Form
.
Item
></
div
>
<
SelectOptions
list=
{
CommunityList
}
onSubmit=
{
printContent
}
/>
<
SelectOptions
list=
{
CommunityList
}
onSubmit=
{
printContent
}
/>
...
...
项目文档/TOS WEB端 接口文档(word)(1).docx
0 → 100644
View file @
46efa679
File added
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