Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
ad4945d0
Commit
ad4945d0
authored
Oct 27, 2021
by
季圣华
Browse files
解决报表的分页bug
parent
f517323f
Changes
14
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/mixins/JeecgListMixin.js
View file @
ad4945d0
...
...
@@ -407,6 +407,9 @@ export const JeecgListMixin = {
}
})
dataSource
.
push
(
totalRow
)
//总数要增加合计的行数,每页都有一行合计,所以总数要加上
let
size
=
parseInt
(
this
.
ipagination
.
total
/
this
.
ipagination
.
pageSize
)
+
1
this
.
ipagination
.
total
=
this
.
ipagination
.
total
+
size
}
},
paginationChange
(
page
,
pageSize
)
{
...
...
jshERP-web/src/views/report/AccountReport.vue
View file @
ad4945d0
...
...
@@ -64,7 +64,7 @@
:page-size=
"ipagination.pageSize"
:page-size-options=
"ipagination.pageSizeOptions"
:total=
"ipagination.total"
:show-total=
"(total, range) => `共 $
{total} 条`">
:show-total=
"(total, range) => `共 $
{total
-parseInt(total/ipagination.pageSize)-1
} 条`">
<template
slot=
"buildOptionText"
slot-scope=
"props"
>
<span>
{{
props
.
value
-
1
}}
条/页
</span>
</
template
>
...
...
jshERP-web/src/views/report/AllocationDetail.vue
View file @
ad4945d0
...
...
@@ -91,7 +91,7 @@
:page-size=
"ipagination.pageSize"
:page-size-options=
"ipagination.pageSizeOptions"
:total=
"ipagination.total"
:show-total=
"(total, range) => `共 $
{total} 条`">
:show-total=
"(total, range) => `共 $
{total
-parseInt(total/ipagination.pageSize)-1
} 条`">
<template
slot=
"buildOptionText"
slot-scope=
"props"
>
<span>
{{
props
.
value
-
1
}}
条/页
</span>
</
template
>
...
...
jshERP-web/src/views/report/BuyInReport.vue
View file @
ad4945d0
...
...
@@ -52,7 +52,7 @@
:page-size=
"ipagination.pageSize"
:page-size-options=
"ipagination.pageSizeOptions"
:total=
"ipagination.total"
:show-total=
"(total, range) => `共 $
{total} 条`">
:show-total=
"(total, range) => `共 $
{total
-parseInt(total/ipagination.pageSize)-1
} 条`">
<template
slot=
"buildOptionText"
slot-scope=
"props"
>
<span>
{{
props
.
value
-
1
}}
条/页
</span>
</
template
>
...
...
jshERP-web/src/views/report/CustomerAccount.vue
View file @
ad4945d0
...
...
@@ -71,7 +71,7 @@
:page-size=
"ipagination.pageSize"
:page-size-options=
"ipagination.pageSizeOptions"
:total=
"ipagination.total"
:show-total=
"(total, range) => `共 $
{total} 条`">
:show-total=
"(total, range) => `共 $
{total
-parseInt(total/ipagination.pageSize)-1
} 条`">
<template
slot=
"buildOptionText"
slot-scope=
"props"
>
<span>
{{
props
.
value
-
1
}}
条/页
</span>
</
template
>
...
...
jshERP-web/src/views/report/InDetail.vue
View file @
ad4945d0
...
...
@@ -84,7 +84,7 @@
:page-size=
"ipagination.pageSize"
:page-size-options=
"ipagination.pageSizeOptions"
:total=
"ipagination.total"
:show-total=
"(total, range) => `共 $
{total} 条`">
:show-total=
"(total, range) => `共 $
{total
-parseInt(total/ipagination.pageSize)-1
} 条`">
<template
slot=
"buildOptionText"
slot-scope=
"props"
>
<span>
{{
props
.
value
-
1
}}
条/页
</span>
</
template
>
...
...
jshERP-web/src/views/report/InMaterialCount.vue
View file @
ad4945d0
...
...
@@ -81,7 +81,7 @@
:page-size=
"ipagination.pageSize"
:page-size-options=
"ipagination.pageSizeOptions"
:total=
"ipagination.total"
:show-total=
"(total, range) => `共 $
{total} 条`">
:show-total=
"(total, range) => `共 $
{total
-parseInt(total/ipagination.pageSize)-1
} 条`">
<template
slot=
"buildOptionText"
slot-scope=
"props"
>
<span>
{{
props
.
value
-
1
}}
条/页
</span>
</
template
>
...
...
jshERP-web/src/views/report/InOutStockReport.vue
View file @
ad4945d0
...
...
@@ -70,7 +70,7 @@
:page-size=
"ipagination.pageSize"
:page-size-options=
"ipagination.pageSizeOptions"
:total=
"ipagination.total"
:show-total=
"(total, range) => `共 $
{total} 条`">
:show-total=
"(total, range) => `共 $
{total
-parseInt(total/ipagination.pageSize)-1
} 条`">
<template
slot=
"buildOptionText"
slot-scope=
"props"
>
<span>
{{
props
.
value
-
1
}}
条/页
</span>
</
template
>
...
...
jshERP-web/src/views/report/MaterialStock.vue
View file @
ad4945d0
...
...
@@ -87,7 +87,7 @@
:page-size=
"ipagination.pageSize"
:page-size-options=
"ipagination.pageSizeOptions"
:total=
"ipagination.total"
:show-total=
"(total, range) => `共 $
{total} 条`">
:show-total=
"(total, range) => `共 $
{total
-parseInt(total/ipagination.pageSize)-1
} 条`">
<template
slot=
"buildOptionText"
slot-scope=
"props"
>
<span>
{{
props
.
value
-
1
}}
条/页
</span>
</
template
>
...
...
jshERP-web/src/views/report/OutDetail.vue
View file @
ad4945d0
...
...
@@ -84,7 +84,7 @@
:page-size=
"ipagination.pageSize"
:page-size-options=
"ipagination.pageSizeOptions"
:total=
"ipagination.total"
:show-total=
"(total, range) => `共 $
{total} 条`">
:show-total=
"(total, range) => `共 $
{total
-parseInt(total/ipagination.pageSize)-1
} 条`">
<template
slot=
"buildOptionText"
slot-scope=
"props"
>
<span>
{{
props
.
value
-
1
}}
条/页
</span>
</
template
>
...
...
jshERP-web/src/views/report/OutMaterialCount.vue
View file @
ad4945d0
...
...
@@ -81,7 +81,7 @@
:page-size=
"ipagination.pageSize"
:page-size-options=
"ipagination.pageSizeOptions"
:total=
"ipagination.total"
:show-total=
"(total, range) => `共 $
{total} 条`">
:show-total=
"(total, range) => `共 $
{total
-parseInt(total/ipagination.pageSize)-1
} 条`">
<template
slot=
"buildOptionText"
slot-scope=
"props"
>
<span>
{{
props
.
value
-
1
}}
条/页
</span>
</
template
>
...
...
jshERP-web/src/views/report/SaleOutReport.vue
View file @
ad4945d0
...
...
@@ -52,7 +52,7 @@
:page-size=
"ipagination.pageSize"
:page-size-options=
"ipagination.pageSizeOptions"
:total=
"ipagination.total"
:show-total=
"(total, range) => `共 $
{total} 条`">
:show-total=
"(total, range) => `共 $
{total
-parseInt(total/ipagination.pageSize)-1
} 条`">
<template
slot=
"buildOptionText"
slot-scope=
"props"
>
<span>
{{
props
.
value
-
1
}}
条/页
</span>
</
template
>
...
...
jshERP-web/src/views/report/StockWarningReport.vue
View file @
ad4945d0
...
...
@@ -59,7 +59,7 @@
:page-size=
"ipagination.pageSize"
:page-size-options=
"ipagination.pageSizeOptions"
:total=
"ipagination.total"
:show-total=
"(total, range) => `共 $
{total} 条`">
:show-total=
"(total, range) => `共 $
{total
-parseInt(total/ipagination.pageSize)-1
} 条`">
<template
slot=
"buildOptionText"
slot-scope=
"props"
>
<span>
{{
props
.
value
-
1
}}
条/页
</span>
</
template
>
...
...
jshERP-web/src/views/report/VendorAccount.vue
View file @
ad4945d0
...
...
@@ -71,7 +71,7 @@
:page-size=
"ipagination.pageSize"
:page-size-options=
"ipagination.pageSizeOptions"
:total=
"ipagination.total"
:show-total=
"(total, range) => `共 $
{total} 条`">
:show-total=
"(total, range) => `共 $
{total
-parseInt(total/ipagination.pageSize)-1
} 条`">
<template
slot=
"buildOptionText"
slot-scope=
"props"
>
<span>
{{
props
.
value
-
1
}}
条/页
</span>
</
template
>
...
...
Write
Preview
Supports
Markdown
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