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
b050fc24
Commit
b050fc24
authored
Nov 01, 2020
by
1271610056@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物业费详情bug处理
parent
5d8f3353
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
ChargeDetail.tsx
src/pages/PropertyManagement/ChargeDetail.tsx
+12
-11
No files found.
src/pages/PropertyManagement/ChargeDetail.tsx
View file @
b050fc24
...
...
@@ -4,7 +4,7 @@ import { Input, Menu, Table, Space, Pagination, Tooltip } from 'antd';
import
{
Link
,
useIntl
,
connect
,
Dispatch
}
from
'umi'
;
import
PDF
from
'react-pdf-js'
;
//
import
PDF
from
'react-pdf-js'
;
import
{
render
}
from
'react-dom'
;
import
{
Document
}
from
'react-pdf/dist/entry.webpack'
;
...
...
@@ -22,9 +22,14 @@ const ChargeDetail = (props: any) => {
const
[
pages
,
setPages
]
=
useState
(
1
);
const
[
curpage
,
setCurpage
]
=
useState
(
1
);
useEffect
(()
=>
{
if
(
!
CurData
)
{
history
.
back
();
}
},
[]);
const
pdfpages
=
(
pages
:
any
)
=>
{
setPages
(
pages
);
//alert(pages)
};
const
lookup
=
()
=>
{
...
...
@@ -39,10 +44,6 @@ const ChargeDetail = (props: any) => {
setCurpage
(
curpage
);
};
if
(
!
CurData
)
{
history
.
back
();
}
return
(
<
div
className=
{
styles
.
base
}
>
{
CurData
?
(
...
...
@@ -63,9 +64,8 @@ const ChargeDetail = (props: any) => {
<
div
className=
{
styles
.
item25
}
>
{
CurData
.
floorNumber
}
</
div
>
<
div
className=
{
styles
.
item245
}
>
——
</
div
>
<
div
className=
{
styles
.
item26
}
>
{
CurData
.
roomNumber
}
</
div
>
<
div
className=
{
styles
.
item27
}
>
业主姓名
</
div
>
<
div
className=
{
styles
.
item27
}
>
{
CurData
.
tosOwnerName
}
</
div
>
</
div
>
<>
{
stringSplit
(
CurData
.
billFileUrl
,
'm/cash'
)
}
</>
<
div
className=
{
styles
.
box4
}
>
<
Pagination
simple
defaultCurrent=
{
curpage
}
total=
{
pages
*
10
}
onChange=
{
pageChange
}
/>
</
div
>
...
...
@@ -74,11 +74,12 @@ const ChargeDetail = (props: any) => {
<
div
className=
{
scale
==
1.3
?
styles
.
box3out
:
null
}
>
<
div
className=
{
scale
==
1.3
?
styles
.
box3
:
styles
.
box3of
}
onClick=
{
lookup
}
>
<
PDF
key=
"pdfjs"
//
key="pdfjs"
file=
{
'data:application/pdf;base64,'
+
stringSplit
(
CurData
.
billFileUrl
,
'm/cash'
)
// 'data:application/pdf;base64,' + stringSplit(CurData.billFileUrl, 'm/cash')
stringSplit
(
CurData
.
billFileUrl
,
'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
}
page=
{
curpage
}
onDocumentComplete=
{
pdfpages
}
...
...
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