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
d776f342
Commit
d776f342
authored
Oct 17, 2021
by
季圣华
Browse files
解决合计展示的bug
parent
12c6c22e
Changes
2
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/mixins/JeecgListMixin.js
View file @
d776f342
...
...
@@ -381,7 +381,8 @@ export const JeecgListMixin = {
},
/** 表格增加合计行 */
tableAddTotalRow
(
columns
,
dataSource
)
{
if
(
dataSource
.
length
>
0
&&
this
.
ipagination
.
pageSize
!==
10
)
{
if
(
dataSource
.
length
>
0
&&
this
.
ipagination
.
pageSize
%
10
===
1
)
{
//分页条数为11、21、31等的时候增加合计行
let
numKey
=
'
rowIndex
'
let
totalRow
=
{
[
numKey
]:
'
合计
'
}
//移除不需要合计的列
...
...
jshERP-web/src/views/report/AccountReport.vue
View file @
d776f342
...
...
@@ -51,7 +51,7 @@
:loading=
"loading"
@
change=
"handleTableChange"
>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a
@
click=
"showAccountInOutList(record)"
>
流水
</a>
<a
@
click=
"showAccountInOutList(record)"
>
{{
record
.
id
?
'
流水
'
:
''
}}
</a>
</span>
</a-table>
<a-row
:gutter=
"24"
style=
"margin-top: 8px;text-align:right;"
>
...
...
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