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
df811d94
Commit
df811d94
authored
Dec 16, 2020
by
cellee
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'final' of
http://120.77.240.215:9701/Maple/tostumi.git
into final
parents
a75f421c
dab5335e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
69 additions
and
50 deletions
+69
-50
CommunityService.ts
src/models/CommunityManagement/CommunityService.ts
+5
-1
Detail.tsx
src/pages/CommercialService/Detail.tsx
+2
-2
PropertyServices.tsx
src/pages/CommercialService/PropertyServices.tsx
+1
-1
ResultPage.tsx
src/pages/UserManagement/LIFEUserManagement/ResultPage.tsx
+40
-39
ResultPageFailed.tsx
...es/UserManagement/LIFEUserManagement/ResultPageFailed.tsx
+21
-7
No files found.
src/models/CommunityManagement/CommunityService.ts
View file @
df811d94
...
@@ -89,19 +89,23 @@ export default {
...
@@ -89,19 +89,23 @@ export default {
content
:
string
;
content
:
string
;
replyContent
:
string
;
replyContent
:
string
;
replyImgUrl
:
string
[];
replyImgUrl
:
string
[];
replyName
:
string
;
replyPhone
:
string
;
status
:
number
;
status
:
number
;
pictrues
:
string
[];
pictrues
:
string
[];
time
:
string
;
time
:
string
;
}
=
{
}
=
{
community
:
tmp
.
communityName
||
tmp
.
communityName
,
community
:
tmp
.
communityName
||
tmp
.
communityName
,
address
:
tmp
.
addressAndpostalCode
||
tmp
.
residentialAddress
,
address
:
tmp
.
addressAndpostalCode
||
tmp
.
residentialAddress
,
home
:
(
tmp
.
buildingNumber
||
tmp
.
communityBuild
)
+
' #'
+
(
tmp
.
floorNumber
||
tmp
.
communityFloor
)
+
'-'
+
(
tmp
.
roomNumber
||
tmp
.
communtiyRoom
),
home
:
(
tmp
.
buildingNumber
||
tmp
.
communityBuild
)
+
' #'
+
(
tmp
.
floorNumber
||
tmp
.
communityFloor
)
+
'-'
+
(
tmp
.
roomNumber
||
tmp
.
communtiyRoom
),
name
:
tmp
.
owerName
||
tmp
.
ownerFamilyName
,
name
:
tmp
.
owerName
||
tmp
.
ownerFamilyName
,
phone
:
tmp
.
owerPhone
||
tmp
.
ownerFamilyPhone
,
phone
:
tmp
.
owerPhone
||
tmp
.
ownerFamilyPhone
,
email
:
tmp
.
owerEmail
||
tmp
.
ownerFamilyEmail
,
email
:
tmp
.
owerEmail
||
tmp
.
ownerFamilyEmail
,
content
:
tmp2
.
serviceContent
,
content
:
tmp2
.
serviceContent
,
replyContent
:
tmp2
.
replyContent
,
replyContent
:
tmp2
.
replyContent
,
replyImgUrl
:
Fromate
(
tmp2
.
replyImgUrl
,
[[
'url'
,
null
]]),
replyImgUrl
:
Fromate
(
tmp2
.
replyImgUrl
,
[[
'url'
,
null
]]),
replyName
:
tmp2
.
handleName
,
replyPhone
:
tmp2
.
handleContacts
,
status
:
tmp2
.
handleStatus
,
status
:
tmp2
.
handleStatus
,
pictrues
:
picFromate
(
tmp2
.
imgUrl
),
pictrues
:
picFromate
(
tmp2
.
imgUrl
),
time
:
timestampToTime4
(
tmp2
.
createTime
.
time
),
time
:
timestampToTime4
(
tmp2
.
createTime
.
time
),
...
...
src/pages/CommercialService/Detail.tsx
View file @
df811d94
...
@@ -161,9 +161,9 @@ const Detail = (props: any) => {
...
@@ -161,9 +161,9 @@ const Detail = (props: any) => {
{
!
editorFlag
?
(
{
!
editorFlag
?
(
<
Row
gutter=
{
16
}
>
<
Row
gutter=
{
16
}
>
<
Col
>
Replyer:
</
Col
>
<
Col
>
Replyer:
</
Col
>
<
Col
span=
{
6
}
>
{
getCookie
(
'name'
)
}
</
Col
>
<
Col
span=
{
6
}
>
{
CurDataDetail
.
replyName
}
</
Col
>
<
Col
>
Contact:
</
Col
>
<
Col
>
Contact:
</
Col
>
<
Col
>
{
getCookie
(
'phone'
)
}
</
Col
>
<
Col
>
{
CurDataDetail
.
replyPhone
}
</
Col
>
</
Row
>
</
Row
>
)
:
null
}
)
:
null
}
<
Row
gutter=
{
16
}
style=
{
{
marginTop
:
20
}
}
>
<
Row
gutter=
{
16
}
style=
{
{
marginTop
:
20
}
}
>
...
...
src/pages/CommercialService/PropertyServices.tsx
View file @
df811d94
...
@@ -57,7 +57,7 @@ const PropertyServices = (props: any) => {
...
@@ -57,7 +57,7 @@ const PropertyServices = (props: any) => {
dataIndex
:
parseInt
(
serviceTypeGobal
)
-
1
===
0
?
'handle_name'
:
'service_content'
,
dataIndex
:
parseInt
(
serviceTypeGobal
)
-
1
===
0
?
'handle_name'
:
'service_content'
,
ellipsis
:
true
,
ellipsis
:
true
,
// width: 400,
// width: 400,
render
:
(
text
:
any
)
=>
<
Space
size=
"middle"
>
{
text
!=
null
?
text
:
''
}
</
Space
>,
render
:
(
text
:
any
)
=>
<
span
>
{
text
!=
null
?
text
:
''
}
</
span
>,
},
},
{
{
...
...
src/pages/UserManagement/LIFEUserManagement/ResultPage.tsx
View file @
df811d94
import
React
,
{
useState
,
useEffect
,
useRef
}
from
'react'
;
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
{
Input
,
Tabs
,
Table
,
Result
,
Button
}
from
'antd'
;
import
{
Result
,
Button
}
from
'antd'
;
const
{
TabPane
}
=
Tabs
;
import
{
connect
,
history
}
from
'umi'
;
import
{
RA
}
from
'@/utils/method'
;
const
module
=
"User"
const
ResultPage
=
(
props
:
any
)
=>
{
const
{
dispatch
,
Data
}
=
props
;
const
formRef
=
useRef
(
null
)
import
{
connect
,
history
}
from
'umi'
;
const
module
=
'User'
;
const
ResultPage
=
()
=>
{
const
[
resultTime
,
setResultTime
]
=
useState
(
3
);
const
[
resultTime
,
setResultTime
]
=
useState
(
3
);
function
loop
(
i
:
number
)
{
function
loop
(
i
:
number
)
{
if
(
i
<
4
)
{
if
(
i
<
4
)
{
console
.
log
(
i
)
console
.
log
(
i
)
;
setResultTime
(
4
-
i
)
setResultTime
(
4
-
i
);
setTimeout
(
function
(){
loop
(
++
i
)},
1000
)
setTimeout
(
function
()
{
loop
(
++
i
);
},
1000
);
}
else
{
}
else
{
setResultTime
(
0
)
setResultTime
(
0
)
;
history
.
go
(
-
1
)
history
.
go
(
-
1
)
;
}
}
}
}
useEffect
(()
=>
{
useEffect
(()
=>
{
loop
(
1
)
loop
(
1
);
},[])
},
[]);
const
backPage
=
()
=>
{
const
backPage
=
()
=>
{};
}
return
(
return
(
<
div
style=
{
{
width
:
"100%"
,
minWidth
:
1020
,
padding
:
34
,
backgroundColor
:
"#ffffff"
}
}
>
<
div
style=
{
{
width
:
'100%'
,
minWidth
:
1020
,
padding
:
34
,
backgroundColor
:
'#ffffff'
}
}
>
<
Result
<
Result
status=
"success"
status=
"success"
title=
"Successfully submit the file!"
title=
"Successfully submit the file!"
subTitle=
{
<
p
>
server has been handled it ,Wait for
<
strong
>
{
resultTime
}
</
strong
>
seconds to return automatically.
</
p
>
}
subTitle=
{
extra=
{
[
<
p
>
<
Button
type=
"primary"
key=
"ok"
onClick=
{
backPage
}
>
Ok
</
Button
>,
<
Button
key=
"back"
onClick=
{
backPage
}
>
Back
</
Button
>
server has been handled it ,Wait for
<
strong
>
{
resultTime
}
</
strong
>
seconds to return
]
}
automatically.
/>
</
p
>
}
extra=
{
[
<
Button
type=
"primary"
key=
"ok"
onClick=
{
backPage
}
>
Ok
</
Button
>,
<
Button
key=
"back"
onClick=
{
backPage
}
>
Back
</
Button
>,
]
}
/>
</
div
>
</
div
>
);
);
};
};
function
map
(
state
:
any
)
{
function
map
(
state
:
any
)
{
const
{
Data
}
=
state
[
module
]
const
{
Data
}
=
state
[
module
];
return
{
Data
}
return
{
Data
};
}
}
export
default
connect
(
map
)(
ResultPage
);
export
default
connect
(
map
)(
ResultPage
);
\ No newline at end of file
src/pages/UserManagement/LIFEUserManagement/ResultPageFailed.tsx
View file @
df811d94
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
{
Result
,
Button
}
from
'antd'
;
import
{
Result
,
Button
,
message
}
from
'antd'
;
import
{
connect
,
history
}
from
'umi'
;
import
{
connect
,
history
}
from
'umi'
;
const
module
=
'User'
;
const
module
=
'User'
;
const
ResultPageFailed
=
(
props
:
any
)
=>
{
const
ResultPageFailed
=
()
=>
{
const
[
resultId
,
setResultId
]
=
useState
(
3
);
const
[
resultId
,
setResultId
]
=
useState
(
''
);
const
[
flag
,
setFlag
]
=
useState
(
true
);
const
backPage
=
()
=>
{
const
backPage
=
()
=>
{
history
.
go
(
-
1
);
history
.
go
(
-
1
);
};
};
useEffect
(()
=>
{
useEffect
(()
=>
{
const
id
=
localStorage
.
getItem
(
'userInfo'
)
||
''
;
const
id
=
localStorage
.
getItem
(
'userInfo'
)
||
''
;
setResultId
(
JSON
.
parse
(
id
).
userModel
.
id
);
setResultId
(
JSON
.
parse
(
id
).
userModel
.
id
);
},
[]);
},
[]);
const
handleDownload
=
()
=>
{
if
(
flag
)
{
setFlag
(
false
);
}
else
{
message
.
success
(
'The file has been downloaded successfully'
);
}
};
return
(
return
(
<
div
style=
{
{
width
:
'100%'
,
minWidth
:
1020
,
padding
:
34
,
backgroundColor
:
'#ffffff'
}
}
>
<
div
style=
{
{
width
:
'100%'
,
minWidth
:
1020
,
padding
:
34
,
backgroundColor
:
'#ffffff'
}
}
>
<
Result
<
Result
...
@@ -23,11 +31,17 @@ const ResultPageFailed = (props: any) => {
...
@@ -23,11 +31,17 @@ const ResultPageFailed = (props: any) => {
title=
"Error submit the file!"
title=
"Error submit the file!"
subTitle=
{
<
p
>
server has been handled it ,please try again or back.
</
p
>
}
subTitle=
{
<
p
>
server has been handled it ,please try again or back.
</
p
>
}
extra=
{
[
extra=
{
[
<
Button
type=
"primary"
key=
"ok"
>
<
Button
type=
"primary"
key=
"ok"
onClick=
{
handleDownload
}
>
{
flag
?
(
<
a
href=
{
'http://192.168.1.28:8651/tos/excel/down?operator_id='
+
resultId
}
>
Download
</
a
>
)
:
(
'Download'
)
}
{
/* <a href={'http://47.74.233.180:8651/tos/excel/down?operator_id=' + resultId}>
{
/* <a href={'http://47.74.233.180:8651/tos/excel/down?operator_id=' + resultId}>
Download
Download
</a> */
}
</a> */
}
<
a
href=
{
'http://192.168.1.28:8651/tos/excel/down?operator_id='
+
resultId
}
>
Download
</
a
>
</
Button
>,
</
Button
>,
<
Button
key=
"back"
onClick=
{
backPage
}
>
<
Button
key=
"back"
onClick=
{
backPage
}
>
Back
Back
...
...
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