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
b853f935
Commit
b853f935
authored
Dec 14, 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
29b2228f
740a719d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
69 additions
and
50 deletions
+69
-50
TableShow.tsx
src/components/TableShow/TableShow.tsx
+2
-2
menu.ts
src/locales/en-US/menu.ts
+1
-1
menu.ts
src/locales/zh-CN/menu.ts
+1
-1
Detail.tsx
src/pages/CommercialService/Detail.tsx
+21
-22
ChargeDetail.tsx
src/pages/PropertyManagement/ChargeDetail.tsx
+29
-7
ResultPageFailed.tsx
...es/UserManagement/LIFEUserManagement/ResultPageFailed.tsx
+10
-12
AccoutingContent.tsx
...Management/ServiceProviderManagement/AccoutingContent.tsx
+5
-5
No files found.
src/components/TableShow/TableShow.tsx
View file @
b853f935
...
@@ -38,8 +38,8 @@ const TableShow = (props: any) => {
...
@@ -38,8 +38,8 @@ const TableShow = (props: any) => {
const
key
=
objectColumns
([
const
key
=
objectColumns
([
[
'User Name'
,
'owner_family_name'
],
[
'User Name'
,
'owner_family_name'
],
[
'Contact Number'
,
'owner_family_phone'
,
(
text
:
string
,
record
:
any
)
=>
text
||
'--'
],
[
'Contact Number'
,
'owner_family_phone'
,
(
text
:
string
,
record
:
any
)
=>
text
],
[
'Email'
,
'owner_family_email'
,
(
text
:
string
,
record
:
any
)
=>
text
||
'--'
],
[
'Email'
,
'owner_family_email'
,
(
text
:
string
,
record
:
any
)
=>
text
],
[
[
'User Type'
,
'User Type'
,
null
,
null
,
...
...
src/locales/en-US/menu.ts
View file @
b853f935
...
@@ -52,7 +52,7 @@ export default {
...
@@ -52,7 +52,7 @@ export default {
'menu.usemanagement'
:
'User Management'
,
'menu.usemanagement'
:
'User Management'
,
'menu.monitoringcenter'
:
'Monitoring Center'
,
'menu.monitoringcenter'
:
'Monitoring Center'
,
'menu.usemanagement.lifeusers'
:
'L
IFE
User Management'
,
'menu.usemanagement.lifeusers'
:
'L
ife
User Management'
,
'menu.usemanagement.serviceproviders'
:
'Service Provider Management'
,
'menu.usemanagement.serviceproviders'
:
'Service Provider Management'
,
'menu.propertymanagement'
:
'Property Fee Management'
,
'menu.propertymanagement'
:
'Property Fee Management'
,
'menu.commercialservice'
:
'Commercial Service'
,
'menu.commercialservice'
:
'Commercial Service'
,
...
...
src/locales/zh-CN/menu.ts
View file @
b853f935
...
@@ -52,7 +52,7 @@ export default {
...
@@ -52,7 +52,7 @@ export default {
'menu.usemanagement'
:
'用户管理'
,
'menu.usemanagement'
:
'用户管理'
,
'menu.monitoringcenter'
:
'监控中心'
,
'menu.monitoringcenter'
:
'监控中心'
,
'menu.usemanagement.lifeusers'
:
'L
IFE
用户管理'
,
'menu.usemanagement.lifeusers'
:
'L
ife
用户管理'
,
'menu.usemanagement.serviceproviders'
:
'服务商管理'
,
'menu.usemanagement.serviceproviders'
:
'服务商管理'
,
'menu.propertymanagement'
:
'物业费管理'
,
'menu.propertymanagement'
:
'物业费管理'
,
'menu.commercialservice'
:
'物业服务'
,
'menu.commercialservice'
:
'物业服务'
,
...
...
src/pages/CommercialService/Detail.tsx
View file @
b853f935
...
@@ -106,17 +106,19 @@ const Detail = (props: any) => {
...
@@ -106,17 +106,19 @@ const Detail = (props: any) => {
<
div
className=
{
styles
.
base
}
>
<
div
className=
{
styles
.
base
}
>
<
TitleBack
{
...
titleProps
}
/>
<
TitleBack
{
...
titleProps
}
/>
<
Descriptions
>
<
Descriptions
column=
{
2
}
>
<
Descriptions
.
Item
>
{
CurDataDetail
.
community
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
span=
{
2
}
>
<
Descriptions
.
Item
span=
{
2
}
>
{
CurDataDetail
.
home
}
</
Descriptions
.
Item
>
{
CurDataDetail
.
community
}
{
CurDataDetail
.
home
}
<
Descriptions
.
Item
label=
"Address"
span=
{
3
}
>
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"Address"
span=
{
2
}
>
{
CurDataDetail
.
address
}{
' '
}
{
CurDataDetail
.
address
}{
' '
}
</
Descriptions
.
Item
>
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"User Name"
span=
{
3
}
>
<
Descriptions
.
Item
label=
"User Name"
span=
{
2
}
>
{
CurDataDetail
.
name
}
{
CurDataDetail
.
name
}
</
Descriptions
.
Item
>
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"Contact Details"
>
{
CurDataDetail
.
phone
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"Contact Details"
span=
{
2
}
>
<
Descriptions
.
Item
>
{
CurDataDetail
.
email
}
</
Descriptions
.
Item
>
{
CurDataDetail
.
phone
}
{
CurDataDetail
.
email
}
</
Descriptions
.
Item
>
</
Descriptions
>
</
Descriptions
>
<
Row
gutter=
{
16
}
>
<
Row
gutter=
{
16
}
>
<
Col
span=
{
3
}
>
Description:
</
Col
>
<
Col
span=
{
3
}
>
Description:
</
Col
>
...
@@ -180,21 +182,18 @@ const Detail = (props: any) => {
...
@@ -180,21 +182,18 @@ const Detail = (props: any) => {
<
Col
span=
{
3
}
></
Col
>
<
Col
span=
{
3
}
></
Col
>
<
Col
>
<
Col
>
{
/* putSubmit={PictureOptionsRowRef} */
}
{
/* putSubmit={PictureOptionsRowRef} */
}
{
CurDataDetail
.
replyImgUrl
!=
null
?
(
<
Form
.
Item
name=
"file"
>
<>
<
PictureOptionsRow
<
Form
.
Item
name=
"file"
>
action=
"/tos/communtiy/service/reply/img"
<
PictureOptionsRow
disabled=
{
!
editorFlag
}
action=
"/tos/communtiy/service/reply/img"
data=
{
{
disabled=
{
!
editorFlag
}
userToken
:
'token'
,
data=
{
{
imageType
:
'tosCommunityImageReply'
,
userToken
:
'token'
,
extends
:
''
,
imageType
:
'tosCommunityImageReply'
,
}
}
extends
:
''
,
over=
{
CurDataDetail
.
replyImgUrl
.
length
>
0
?
true
:
false
}
}
}
/>
/>
</
Form
.
Item
>
</
Form
.
Item
>
</>
)
:
null
}
</
Col
>
</
Col
>
</
Row
>
</
Row
>
{
editorFlag
?
(
{
editorFlag
?
(
...
...
src/pages/PropertyManagement/ChargeDetail.tsx
View file @
b853f935
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
styles
from
'./ChargeDetail.less'
;
import
styles
from
'./ChargeDetail.less'
;
import
{
Pagination
,
Tooltip
}
from
'antd'
;
import
{
Pagination
,
Tooltip
,
Spin
}
from
'antd'
;
import
{
useIntl
,
connect
}
from
'umi'
;
import
{
useIntl
,
connect
}
from
'umi'
;
...
@@ -12,19 +12,39 @@ import { timestampToTime } from '../../utils/time';
...
@@ -12,19 +12,39 @@ import { timestampToTime } from '../../utils/time';
import
TitleBack
from
'../../components/TitleBack/TitleBack'
;
import
TitleBack
from
'../../components/TitleBack/TitleBack'
;
const
ChargeDetail
=
(
props
:
any
)
=>
{
const
ChargeDetail
=
(
props
:
any
)
=>
{
const
{
CurData
}
=
props
;
const
{
CurData
,
dispatch
,
FileImg
}
=
props
;
const
[
scale
,
setState
]
=
useState
(
1.3
);
const
[
scale
,
setState
]
=
useState
(
1.3
);
const
[
pages
,
setPages
]
=
useState
(
1
);
const
[
pages
,
setPages
]
=
useState
(
1
);
const
[
curpage
,
setCurpage
]
=
useState
(
1
);
const
[
curpage
,
setCurpage
]
=
useState
(
1
);
const
[
loading
,
setLoading
]
=
useState
(
false
);
useEffect
(()
=>
{
useEffect
(()
=>
{
console
.
log
(
CurData
);
if
(
CurData
)
{
if
(
!
CurData
)
{
dispatch
({
type
:
'Contract/RA'
,
playload
:
{
index
:
47
,
body
:
{
type
:
'tosAccountPreview'
,
fileName
:
CurData
.
billName
,
extends
:
CurData
.
communityName
,
},
},
});
setLoading
(
true
);
}
else
{
history
.
back
();
history
.
back
();
}
}
},
[]);
},
[]);
useEffect
(()
=>
{
if
(
FileImg
)
{
setLoading
(
false
);
}
},
[
FileImg
]);
const
pdfpages
=
(
pages
:
any
)
=>
{
const
pdfpages
=
(
pages
:
any
)
=>
{
setPages
(
pages
);
setPages
(
pages
);
};
};
...
@@ -64,7 +84,7 @@ const ChargeDetail = (props: any) => {
...
@@ -64,7 +84,7 @@ const ChargeDetail = (props: any) => {
<
div
className=
{
styles
.
box4
}
>
<
div
className=
{
styles
.
box4
}
>
<
Pagination
simple
defaultCurrent=
{
curpage
}
total=
{
pages
*
10
}
onChange=
{
pageChange
}
/>
<
Pagination
simple
defaultCurrent=
{
curpage
}
total=
{
pages
*
10
}
onChange=
{
pageChange
}
/>
</
div
>
</
div
>
<>
<
Spin
spinning=
{
loading
}
>
<
Tooltip
title=
{
scale
==
1.3
?
'点击放大查看'
:
'还原视图'
}
>
<
Tooltip
title=
{
scale
==
1.3
?
'点击放大查看'
:
'还原视图'
}
>
<
div
className=
{
scale
==
1.3
?
styles
.
box3out
:
null
}
>
<
div
className=
{
scale
==
1.3
?
styles
.
box3out
:
null
}
>
<
div
className=
{
scale
==
1.3
?
styles
.
box3
:
styles
.
box3of
}
onClick=
{
lookup
}
>
<
div
className=
{
scale
==
1.3
?
styles
.
box3
:
styles
.
box3of
}
onClick=
{
lookup
}
>
...
@@ -72,7 +92,7 @@ const ChargeDetail = (props: any) => {
...
@@ -72,7 +92,7 @@ const ChargeDetail = (props: any) => {
// key="pdfjs"
// key="pdfjs"
file=
{
file=
{
// 'data:application/pdf;base64,' + stringSplit(CurData.billFileUrl, 'm/cash')
// 'data:application/pdf;base64,' + stringSplit(CurData.billFileUrl, 'm/cash')
stringSplit
(
CurData
.
billFileUrl
,
'm/cash'
)
stringSplit
(
CurData
.
billFileUrl
||
FileImg
[
0
].
fileUrl
,
'm/cash'
)
}
}
// workerSrc="//cdnjs.cloudflare.com/ajax/libs/pdf.js/2.2.228/pdf.worker.js"
// workerSrc="//cdnjs.cloudflare.com/ajax/libs/pdf.js/2.2.228/pdf.worker.js"
scale=
{
scale
}
scale=
{
scale
}
...
@@ -82,7 +102,7 @@ const ChargeDetail = (props: any) => {
...
@@ -82,7 +102,7 @@ const ChargeDetail = (props: any) => {
</
div
>
</
div
>
</
div
>
</
div
>
</
Tooltip
>
</
Tooltip
>
</>
</
Spin
>
</>
</>
)
:
null
}
)
:
null
}
</
div
>
</
div
>
...
@@ -91,8 +111,10 @@ const ChargeDetail = (props: any) => {
...
@@ -91,8 +111,10 @@ const ChargeDetail = (props: any) => {
function
mapStateToProps
(
state
:
any
)
{
function
mapStateToProps
(
state
:
any
)
{
const
{
CurData
}
=
state
.
PropertyManagement
;
const
{
CurData
}
=
state
.
PropertyManagement
;
const
{
FileImg
}
=
state
.
Contract
;
return
{
return
{
CurData
,
CurData
,
FileImg
,
};
};
}
}
export
default
connect
(
mapStateToProps
)(
ChargeDetail
);
export
default
connect
(
mapStateToProps
)(
ChargeDetail
);
src/pages/UserManagement/LIFEUserManagement/ResultPageFailed.tsx
View file @
b853f935
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
{
connect
,
history
}
from
'umi'
;
import
{
getCookie
}
from
'@/utils/method'
;
import
{
RA
}
from
'@/utils/method'
;
const
module
=
'User'
;
const
module
=
'User'
;
const
ResultPageFailed
=
(
props
:
any
)
=>
{
const
ResultPageFailed
=
(
props
:
any
)
=>
{
const
{
dispatch
,
Data
}
=
props
;
const
[
resultId
,
setResultId
]
=
useState
(
3
);
const
formRef
=
useRef
(
null
);
const
[
resultTime
,
setResultTime
]
=
useState
(
3
);
const
backPage
=
()
=>
{
const
backPage
=
()
=>
{
history
.
go
(
-
1
);
history
.
go
(
-
1
);
};
};
useEffect
(()
=>
{
const
id
=
localStorage
.
getItem
(
'userInfo'
)
||
''
;
setResultId
(
JSON
.
parse
(
id
).
userModel
.
id
);
},
[]);
return
(
return
(
<
div
style=
{
{
width
:
'100%'
,
minWidth
:
1020
,
padding
:
34
,
backgroundColor
:
'#ffffff'
}
}
>
<
div
style=
{
{
width
:
'100%'
,
minWidth
:
1020
,
padding
:
34
,
backgroundColor
:
'#ffffff'
}
}
>
<
Result
<
Result
...
@@ -27,9 +27,7 @@ const ResultPageFailed = (props: any) => {
...
@@ -27,9 +27,7 @@ const ResultPageFailed = (props: any) => {
{
/* <a href={'http://47.74.233.180:8651/tos/excel/down?operator_id=' + getCookie('id')}>
{
/* <a href={'http://47.74.233.180:8651/tos/excel/down?operator_id=' + getCookie('id')}>
Download
Download
</a> */
}
</a> */
}
<
a
href=
{
'http://192.168.1.28:8651/tos/excel/down?operator_id='
+
getCookie
(
'id'
)
}
>
<
a
href=
{
'http://192.168.1.28:8651/tos/excel/down?operator_id='
+
resultId
}
>
Download
</
a
>
Download
</
a
>
</
Button
>,
</
Button
>,
<
Button
key=
"back"
onClick=
{
backPage
}
>
<
Button
key=
"back"
onClick=
{
backPage
}
>
Back
Back
...
...
src/pages/UserManagement/ServiceProviderManagement/AccoutingContent.tsx
View file @
b853f935
...
@@ -73,7 +73,7 @@ const AccoutingContent = (props: {
...
@@ -73,7 +73,7 @@ const AccoutingContent = (props: {
const
copyStatus
=
document
.
execCommand
(
'Copy'
);
// 执行copy操作
const
copyStatus
=
document
.
execCommand
(
'Copy'
);
// 执行copy操作
// 对成功与否定进行提示
// 对成功与否定进行提示
if
(
copyStatus
)
{
if
(
copyStatus
)
{
message
.
success
(
'
Copy Success
'
);
message
.
success
(
'
URL copy successfully!
'
);
}
else
{
}
else
{
message
.
error
(
'Copy Failure,Please copy manually'
);
message
.
error
(
'Copy Failure,Please copy manually'
);
}
}
...
@@ -104,8 +104,8 @@ const AccoutingContent = (props: {
...
@@ -104,8 +104,8 @@ const AccoutingContent = (props: {
</
Button
>
</
Button
>
</
div
>
</
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
>
...
@@ -142,8 +142,8 @@ const AccoutingContent = (props: {
...
@@ -142,8 +142,8 @@ const AccoutingContent = (props: {
</
div
>
</
div
>
</
Spin
>
</
Spin
>
)
:
(
)
:
(
<></>
<></>
)
}
)
}
</
div
>
</
div
>
);
);
};
};
...
...
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