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
c6162e80
Commit
c6162e80
authored
Sep 12, 2020
by
maple
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[new]v1.1.1
parent
ba751ce6
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
22 deletions
+37
-22
FileUpload.tsx
src/components/FileUpload/FileUpload.tsx
+2
-1
Add.tsx
src/pages/CommunityManagement/CellList/Add.tsx
+19
-14
CellList.tsx
src/pages/CommunityManagement/CellList/CellList.tsx
+5
-2
Detail.tsx
src/pages/CommunityManagement/CellList/Detail.tsx
+4
-3
Users.tsx
src/pages/UserManagement/LIFEUserManagement/Users.tsx
+6
-1
Template.tsx
src/pages/runTest/Template.tsx
+1
-1
No files found.
src/components/FileUpload/FileUpload.tsx
View file @
c6162e80
...
@@ -17,7 +17,8 @@ const FileUpload = (props: any) => {
...
@@ -17,7 +17,8 @@ const FileUpload = (props: any) => {
accept
:
".pdf,"
,
accept
:
".pdf,"
,
action
:
props
.
url
,
action
:
props
.
url
,
data
:
props
.
data
,
data
:
props
.
data
,
fileList
:
fileList
,
fileList
:
fileList
,
showUploadList
:
false
,
onChange
({
file
,
fileList
})
{
onChange
({
file
,
fileList
})
{
let
tmp
=
fileList
let
tmp
=
fileList
setFileList
(
tmp
.
filter
(
file
=>
!!
file
.
status
))
setFileList
(
tmp
.
filter
(
file
=>
!!
file
.
status
))
...
...
src/pages/CommunityManagement/CellList/Add.tsx
View file @
c6162e80
...
@@ -10,7 +10,7 @@ const layout = {
...
@@ -10,7 +10,7 @@ const layout = {
// wrapperCol: { span: 8 },
// wrapperCol: { span: 8 },
};
};
import
{
RA
}
from
'@/utils/method'
;
import
{
RA
,
ResultClear
}
from
'@/utils/method'
;
const
module
=
"CellList"
const
module
=
"CellList"
...
@@ -54,6 +54,11 @@ const Add = (props:any) => {
...
@@ -54,6 +54,11 @@ const Add = (props:any) => {
console
.
log
(
"服务器有问题"
)
console
.
log
(
"服务器有问题"
)
message
.
error
(
"服务器有问题,请求失败"
,
5
)
message
.
error
(
"服务器有问题,请求失败"
,
5
)
}
}
if
(
Result
.
error_code
==
"0000"
)
{
history
.
go
(
-
1
)
}
ResultClear
(
module
,
dispatch
)
}
}
},
[
Result
])
},
[
Result
])
...
@@ -72,30 +77,30 @@ const Add = (props:any) => {
...
@@ -72,30 +77,30 @@ const Add = (props:any) => {
<
Form
ref=
{
formRef
}
{
...
layout
}
name=
"nest-messages"
onFinish=
{
onFinish
}
validateMessages=
{
validateMessages
}
onValuesChange=
{
onBillChange
}
>
<
Form
ref=
{
formRef
}
{
...
layout
}
name=
"nest-messages"
onFinish=
{
onFinish
}
validateMessages=
{
validateMessages
}
onValuesChange=
{
onBillChange
}
>
<
Form
.
Item
name=
{
"residentialName"
}
label=
"
小区名
"
rules=
{
[{
required
:
true
}]
}
><
Input
style=
{
{
width
:
200
}
}
/></
Form
.
Item
>
<
Form
.
Item
name=
{
"residentialName"
}
label=
"
Community
"
rules=
{
[{
required
:
true
}]
}
><
Input
style=
{
{
width
:
200
}
}
/></
Form
.
Item
>
<
Form
.
Item
name=
{
"zipcode"
}
label=
"邮编"
rules=
{
[
]
}
><
Input
style=
{
{
width
:
200
}
}
/></
Form
.
Item
>
<
Form
.
Item
name=
{
"zipcode"
}
label=
"Postcode"
rules=
{
[{
required
:
true
}
]
}
><
Input
style=
{
{
width
:
200
}
}
/></
Form
.
Item
>
<
Form
.
Item
name=
{
"residentialAddress"
}
label=
"
地址"
rules=
{
[
]
}
><
Input
style=
{
{
width
:
300
}
}
/></
Form
.
Item
>
<
Form
.
Item
name=
{
"residentialAddress"
}
label=
"
Address"
rules=
{
[{
required
:
true
}
]
}
><
Input
style=
{
{
width
:
300
}
}
/></
Form
.
Item
>
<
Form
.
Item
label=
"
小区联系方式
"
style=
{
{
marginBottom
:
0
}
}
>
<
Form
.
Item
label=
"
Contact Information
"
style=
{
{
marginBottom
:
0
}
}
>
<
Form
.
Item
style=
{
{
display
:
'inline-block'
,
width
:
'200'
}
}
name=
{
"residentialPhone"
}
rules=
{
[
]
}
><
Input
placeholder=
"小区联系电话
"
/></
Form
.
Item
>
<
Form
.
Item
style=
{
{
display
:
'inline-block'
,
width
:
'200'
}
}
name=
{
"residentialPhone"
}
rules=
{
[
{
required
:
true
}]
}
><
Input
placeholder=
"Contact Number
"
/></
Form
.
Item
>
<
Form
.
Item
style=
{
{
display
:
'inline-block'
,
width
:
'200'
,
marginLeft
:
20
}
}
name=
{
"residentialEmail"
}
rules=
{
[
]
}
><
Input
placeholder=
"小区联系邮箱
"
/></
Form
.
Item
>
<
Form
.
Item
style=
{
{
display
:
'inline-block'
,
width
:
'200'
,
marginLeft
:
20
}
}
name=
{
"residentialEmail"
}
rules=
{
[
{
required
:
true
}]
}
><
Input
placeholder=
"Contact Email
"
/></
Form
.
Item
>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
name=
{
"residentialManagerUserName"
}
label=
"
小区管理人员"
rules=
{
[
]
}
><
Input
style=
{
{
width
:
200
}
}
/></
Form
.
Item
>
<
Form
.
Item
name=
{
"residentialManagerUserName"
}
label=
"
Community Manager"
rules=
{
[{
required
:
true
}
]
}
><
Input
style=
{
{
width
:
200
}
}
/></
Form
.
Item
>
<
Line
/>
<
Line
/>
<
Form
.
Item
label=
"
帮助中心
"
style=
{
{
marginBottom
:
0
}
}
>
<
Form
.
Item
label=
"
Help center
"
style=
{
{
marginBottom
:
0
}
}
>
<
Form
.
Item
style=
{
{
display
:
'inline-block'
,
width
:
'200'
}
}
name=
{
"residentialHotlineName"
}
rules=
{
[]
}
><
Input
placeholder=
"
热线电话名称
"
/></
Form
.
Item
>
<
Form
.
Item
style=
{
{
display
:
'inline-block'
,
width
:
'200'
}
}
name=
{
"residentialHotlineName"
}
rules=
{
[]
}
><
Input
placeholder=
"
Name Of Hotline
"
/></
Form
.
Item
>
<
Form
.
Item
style=
{
{
display
:
'inline-block'
,
width
:
'200'
,
marginLeft
:
20
}
}
name=
{
"residentialHotline"
}
rules=
{
[]
}
><
Input
placeholder=
"
热线电话
"
/></
Form
.
Item
>
<
Form
.
Item
style=
{
{
display
:
'inline-block'
,
width
:
'200'
,
marginLeft
:
20
}
}
name=
{
"residentialHotline"
}
rules=
{
[]
}
><
Input
placeholder=
"
Hotline
"
/></
Form
.
Item
>
</
Form
.
Item
>
</
Form
.
Item
>
<
Line
/>
<
Line
/>
{
{
extend
.
length
>
0
?
extend
.
length
>
0
?
<>
<>
<
Form
.
Item
wrapperCol=
{
{
...
layout
.
wrapperCol
,
offset
:
2
}
}
style=
{
{
marginBottom
:
0
}
}
>
<
Form
.
Item
wrapperCol=
{
{
...
layout
.
wrapperCol
,
offset
:
2
}
}
style=
{
{
marginBottom
:
0
}
}
>
<
Form
.
Item
style=
{
{
display
:
'inline-block'
,
width
:
'200'
}
}
name=
{
"balouscheduleFile"
}
><
FileUpload
title=
"
楼巴时刻表
"
url=
{
"/tos/image/upload"
}
data=
{
{
imageType
:
"tosCreateCommunity"
,
extends
:
extend
}
}
reg=
"name"
/></
Form
.
Item
>
<
Form
.
Item
style=
{
{
display
:
'inline-block'
,
width
:
'200'
}
}
name=
{
"balouscheduleFile"
}
><
FileUpload
title=
"
Bus Timetable
"
url=
{
"/tos/image/upload"
}
data=
{
{
imageType
:
"tosCreateCommunity"
,
extends
:
extend
}
}
reg=
"name"
/></
Form
.
Item
>
<
Form
.
Item
style=
{
{
display
:
'inline-block'
,
width
:
'200'
,
marginLeft
:
100
}
}
name=
{
"serviceGuideFile"
}
><
FileUpload
title=
"
物业办事指南
"
url=
{
"/tos/image/upload"
}
data=
{
{
imageType
:
"tosCreateCommunity"
,
extends
:
extend
}
}
reg=
"name"
/></
Form
.
Item
>
<
Form
.
Item
style=
{
{
display
:
'inline-block'
,
width
:
'200'
,
marginLeft
:
100
}
}
name=
{
"serviceGuideFile"
}
><
FileUpload
title=
"
Service Guide
"
url=
{
"/tos/image/upload"
}
data=
{
{
imageType
:
"tosCreateCommunity"
,
extends
:
extend
}
}
reg=
"name"
/></
Form
.
Item
>
<
Form
.
Item
style=
{
{
display
:
'inline-block'
,
width
:
'200'
,
marginLeft
:
100
}
}
name=
{
"lifeServiceFile"
}
><
FileUpload
title=
"
保质期服务
"
url=
{
"/tos/image/upload"
}
data=
{
{
imageType
:
"tosCreateCommunity"
,
extends
:
extend
}
}
reg=
"name"
/></
Form
.
Item
>
<
Form
.
Item
style=
{
{
display
:
'inline-block'
,
width
:
'200'
,
marginLeft
:
100
}
}
name=
{
"lifeServiceFile"
}
><
FileUpload
title=
"
Life Service
"
url=
{
"/tos/image/upload"
}
data=
{
{
imageType
:
"tosCreateCommunity"
,
extends
:
extend
}
}
reg=
"name"
/></
Form
.
Item
>
</
Form
.
Item
>
</
Form
.
Item
>
</>
:
null
</>
:
null
}
}
...
...
src/pages/CommunityManagement/CellList/CellList.tsx
View file @
c6162e80
...
@@ -21,7 +21,10 @@ const CellList = (props:any) => {
...
@@ -21,7 +21,10 @@ const CellList = (props:any) => {
[
"Operation Hours"
,
null
,
(
text
:
any
,
record
:
any
)
=>
(<
div
></
div
>)],
[
"Operation Hours"
,
null
,
(
text
:
any
,
record
:
any
)
=>
(<
div
></
div
>)],
[
"Office Tel"
,
"residentialPhone"
],
[
"Office Tel"
,
"residentialPhone"
],
[
"Address"
,
"residentialAddress"
],
[
"Address"
,
"residentialAddress"
],
[
"Actions"
,
null
,
(
text
:
any
,
record
:
any
)
=>
(<
Space
size=
"middle"
>
<
a
onClick=
{
goToDetail
.
bind
(
this
,
record
)
}
>
Detail
</
a
></
Space
>)],
[
"Actions"
,
null
,
(
text
:
any
,
record
:
any
)
=>
(<
Space
size=
"middle"
>
<
a
onClick=
{
goToDetail
.
bind
(
this
,
record
)
}
>
Edit
</
a
>
<
a
onClick=
{
goToDetail
.
bind
(
this
,
record
)
}
>
Detail
</
a
>
</
Space
>)],
])
])
...
@@ -62,7 +65,7 @@ const CellList = (props:any) => {
...
@@ -62,7 +65,7 @@ const CellList = (props:any) => {
<
Table
loading=
{
false
}
rowKey=
"id"
style=
{
{
marginTop
:
16
}
}
<
Table
loading=
{
false
}
rowKey=
"id"
style=
{
{
marginTop
:
16
}
}
dataSource=
{
Data
.
rows
}
dataSource=
{
Data
.
rows
}
columns=
{
columns
}
columns=
{
columns
}
pagination=
{
{
c
urrent
:
1
,
total
:
Data
.
total
}
}
/>
pagination=
{
{
defaultC
urrent
:
1
,
total
:
Data
.
total
}
}
/>
</>
:
null
</>
:
null
}
}
...
...
src/pages/CommunityManagement/CellList/Detail.tsx
View file @
c6162e80
...
@@ -10,7 +10,7 @@ import TitleBack from '@/components/TitleBack/TitleBack';
...
@@ -10,7 +10,7 @@ import TitleBack from '@/components/TitleBack/TitleBack';
const
module
=
"CellList"
const
module
=
"CellList"
const
Detail
=
(
props
:
any
)
=>
{
const
Detail
=
(
props
:
any
)
=>
{
const
{
dispatch
,
Data
,
DataSave
}
=
props
;
const
{
dispatch
,
Data
,
DataSave
,
Result
}
=
props
;
const
formRef
=
useRef
(
null
)
const
formRef
=
useRef
(
null
)
useEffect
(()
=>
{
useEffect
(()
=>
{
...
@@ -50,6 +50,7 @@ const Detail = (props:any) => {
...
@@ -50,6 +50,7 @@ const Detail = (props:any) => {
}
}
},
[])
},
[])
// 小区名称,
// 小区名称,
// 详细地址,
// 详细地址,
// 工作时间 休息时间
// 工作时间 休息时间
...
@@ -117,7 +118,7 @@ const Detail = (props:any) => {
...
@@ -117,7 +118,7 @@ const Detail = (props:any) => {
};
};
function
map
(
state
:
any
)
{
function
map
(
state
:
any
)
{
const
{
Data
,
DataSave
}
=
state
[
module
]
const
{
Data
,
DataSave
,
Result
}
=
state
[
module
]
return
{
Data
,
DataSave
}
return
{
Data
,
DataSave
,
Result
}
}
}
export
default
connect
(
map
)(
Detail
);
export
default
connect
(
map
)(
Detail
);
\ No newline at end of file
src/pages/UserManagement/LIFEUserManagement/Users.tsx
View file @
c6162e80
...
@@ -92,7 +92,8 @@ const Users = (props:any) => {
...
@@ -92,7 +92,8 @@ const Users = (props:any) => {
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
Data
!=
null
)
{
if
(
Data
!=
null
)
{
var
tmp
=
curString
var
tmp
=
curString
tmp
.
total
=
Data
.
total
tmp
.
total
=
Data
.
total
// message.info("test", 5);
setCurString
(
tmp
)
setCurString
(
tmp
)
}
}
},[
Data
])
},[
Data
])
...
@@ -127,6 +128,10 @@ const Users = (props:any) => {
...
@@ -127,6 +128,10 @@ const Users = (props:any) => {
const
CallBackTitleSearch
=
(
comment
:
any
)
=>
{
const
CallBackTitleSearch
=
(
comment
:
any
)
=>
{
console
.
log
(
comment
)
console
.
log
(
comment
)
var
tmp
=
curString
tmp
.
total
=
0
setCurString
(
tmp
)
RA
(
12
,
{
RA
(
12
,
{
ownerName
:
comment
.
OwnerName
,
ownerName
:
comment
.
OwnerName
,
communityArray
:
comment
.
serviceCommunityList
communityArray
:
comment
.
serviceCommunityList
...
...
src/pages/runTest/Template.tsx
View file @
c6162e80
...
@@ -33,7 +33,7 @@ const Guard = (props:any) => {
...
@@ -33,7 +33,7 @@ const Guard = (props:any) => {
return
(
return
(
<
div
className=
{
styles
.
base
}
>
<
div
className=
{
styles
.
base
}
>
<
TitleGet
title=
{
"Version 1.1.
0
"
}
/>
<
TitleGet
title=
{
"Version 1.1.
1
"
}
/>
<
p
>
<
p
>
token:
{
page
.
token
}
token:
{
page
.
token
}
name:
{
getCookie
(
"name"
)
}
name:
{
getCookie
(
"name"
)
}
...
...
MrShi
@Shi
mentioned in commit
adc78eff
·
Sep 14, 2020
mentioned in commit
adc78eff
mentioned in commit adc78effc0d0dc19bc78c2c35a57812842636b07
Toggle commit list
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