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
2c8510b0
Commit
2c8510b0
authored
Oct 13, 2021
by
季圣华
Browse files
优化单据的高度
parent
6dc9f5ac
Changes
35
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/mixins/JeecgListMixin.js
View file @
2c8510b0
...
...
@@ -68,10 +68,11 @@ export const JeecgListMixin = {
this
.
initDictConfig
();
//初始化按钮权限
this
.
initActiveBtnStr
();
//初始化列表横向或纵向滚动
this
.
initScroll
()
}
},
mounted
()
{
this
.
initScroll
()
},
methods
:{
loadData
(
arg
)
{
if
(
!
this
.
url
.
list
){
...
...
@@ -357,11 +358,24 @@ export const JeecgListMixin = {
}
}
},
/* 初始化表格横向或纵向滚动 */
initScroll
()
{
if
(
this
.
isMobile
())
{
this
.
scroll
.
y
=
''
}
else
{
this
.
scroll
.
y
=
document
.
documentElement
.
clientHeight
-
330
let
basicLength
=
274
let
searchWrapperDomLen
=
0
,
operatorDomLen
=
0
//搜索区域
let
searchWrapperDom
=
document
.
getElementsByClassName
(
'
table-page-search-wrapper
'
)
//操作按钮区域
let
operatorDom
=
document
.
getElementsByClassName
(
'
table-operator
'
)
if
(
searchWrapperDom
&&
searchWrapperDom
[
0
])
{
searchWrapperDomLen
=
searchWrapperDom
[
0
].
offsetHeight
}
if
(
operatorDom
&&
operatorDom
[
0
])
{
operatorDomLen
=
operatorDom
[
0
].
offsetHeight
+
10
}
this
.
scroll
.
y
=
document
.
documentElement
.
clientHeight
-
searchWrapperDomLen
-
operatorDomLen
-
basicLength
}
}
}
...
...
jshERP-web/src/views/bill/AllocationOutList.vue
View file @
2c8510b0
...
...
@@ -89,6 +89,7 @@
:columns=
"columns"
:dataSource=
"dataSource"
:pagination=
"ipagination"
:scroll=
"scroll"
:loading=
"loading"
:rowSelection=
"{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@
change=
"handleTableChange"
>
...
...
jshERP-web/src/views/bill/AssembleList.vue
View file @
2c8510b0
...
...
@@ -89,6 +89,7 @@
:columns=
"columns"
:dataSource=
"dataSource"
:pagination=
"ipagination"
:scroll=
"scroll"
:loading=
"loading"
:rowSelection=
"{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@
change=
"handleTableChange"
>
...
...
jshERP-web/src/views/bill/DisassembleList.vue
View file @
2c8510b0
...
...
@@ -89,6 +89,7 @@
:columns=
"columns"
:dataSource=
"dataSource"
:pagination=
"ipagination"
:scroll=
"scroll"
:loading=
"loading"
:rowSelection=
"{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@
change=
"handleTableChange"
>
...
...
jshERP-web/src/views/bill/OtherInList.vue
View file @
2c8510b0
...
...
@@ -98,6 +98,7 @@
:columns=
"columns"
:dataSource=
"dataSource"
:pagination=
"ipagination"
:scroll=
"scroll"
:loading=
"loading"
:rowSelection=
"{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@
change=
"handleTableChange"
>
...
...
jshERP-web/src/views/bill/OtherOutList.vue
View file @
2c8510b0
...
...
@@ -98,6 +98,7 @@
:columns=
"columns"
:dataSource=
"dataSource"
:pagination=
"ipagination"
:scroll=
"scroll"
:loading=
"loading"
:rowSelection=
"{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@
change=
"handleTableChange"
>
...
...
jshERP-web/src/views/bill/PurchaseBackList.vue
View file @
2c8510b0
...
...
@@ -98,6 +98,7 @@
:columns=
"columns"
:dataSource=
"dataSource"
:pagination=
"ipagination"
:scroll=
"scroll"
:loading=
"loading"
:rowSelection=
"{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@
change=
"handleTableChange"
>
...
...
jshERP-web/src/views/bill/PurchaseInList.vue
View file @
2c8510b0
...
...
@@ -100,6 +100,7 @@
:columns=
"columns"
:dataSource=
"dataSource"
:pagination=
"ipagination"
:scroll=
"scroll"
:loading=
"loading"
:rowSelection=
"{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@
change=
"handleTableChange"
>
...
...
@@ -210,7 +211,7 @@
{
title
:
'
操作
'
,
dataIndex
:
'
action
'
,
align
:
"
center
"
,
width
:
1
5
0
,
align
:
"
center
"
,
width
:
1
6
0
,
scopedSlots
:
{
customRender
:
'
action
'
},
}
],
...
...
jshERP-web/src/views/bill/PurchaseOrderList.vue
View file @
2c8510b0
...
...
@@ -90,6 +90,7 @@
:columns=
"columns"
:dataSource=
"dataSource"
:pagination=
"ipagination"
:scroll=
"scroll"
:loading=
"loading"
:rowSelection=
"{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@
change=
"handleTableChange"
>
...
...
jshERP-web/src/views/bill/RetailBackList.vue
View file @
2c8510b0
...
...
@@ -98,6 +98,7 @@
:columns=
"columns"
:dataSource=
"dataSource"
:pagination=
"ipagination"
:scroll=
"scroll"
:loading=
"loading"
:rowSelection=
"{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@
change=
"handleTableChange"
>
...
...
jshERP-web/src/views/bill/RetailOutList.vue
View file @
2c8510b0
...
...
@@ -98,6 +98,7 @@
:columns=
"columns"
:dataSource=
"dataSource"
:pagination=
"ipagination"
:scroll=
"scroll"
:loading=
"loading"
:rowSelection=
"{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@
change=
"handleTableChange"
>
...
...
jshERP-web/src/views/bill/SaleBackList.vue
View file @
2c8510b0
...
...
@@ -99,6 +99,7 @@
:columns=
"columns"
:dataSource=
"dataSource"
:pagination=
"ipagination"
:scroll=
"scroll"
:loading=
"loading"
:rowSelection=
"{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@
change=
"handleTableChange"
>
...
...
jshERP-web/src/views/bill/SaleOrderList.vue
View file @
2c8510b0
...
...
@@ -91,6 +91,7 @@
:columns=
"columns"
:dataSource=
"dataSource"
:pagination=
"ipagination"
:scroll=
"scroll"
:loading=
"loading"
:rowSelection=
"{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@
change=
"handleTableChange"
>
...
...
jshERP-web/src/views/bill/SaleOutList.vue
View file @
2c8510b0
...
...
@@ -101,6 +101,7 @@
:columns=
"columns"
:dataSource=
"dataSource"
:pagination=
"ipagination"
:scroll=
"scroll"
:loading=
"loading"
:rowSelection=
"{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@
change=
"handleTableChange"
>
...
...
@@ -210,7 +211,7 @@
{
title
:
'
操作
'
,
dataIndex
:
'
action
'
,
align
:
"
center
"
,
width
:
1
5
0
,
align
:
"
center
"
,
width
:
1
6
0
,
scopedSlots
:
{
customRender
:
'
action
'
},
}
],
...
...
jshERP-web/src/views/financial/AdvanceInList.vue
View file @
2c8510b0
...
...
@@ -94,6 +94,7 @@
:columns=
"columns"
:dataSource=
"dataSource"
:pagination=
"ipagination"
:scroll=
"scroll"
:loading=
"loading"
:rowSelection=
"{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@
change=
"handleTableChange"
>
...
...
jshERP-web/src/views/financial/GiroList.vue
View file @
2c8510b0
...
...
@@ -85,6 +85,7 @@
:columns=
"columns"
:dataSource=
"dataSource"
:pagination=
"ipagination"
:scroll=
"scroll"
:loading=
"loading"
:rowSelection=
"{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@
change=
"handleTableChange"
>
...
...
jshERP-web/src/views/financial/ItemInList.vue
View file @
2c8510b0
...
...
@@ -94,6 +94,7 @@
:columns=
"columns"
:dataSource=
"dataSource"
:pagination=
"ipagination"
:scroll=
"scroll"
:loading=
"loading"
:rowSelection=
"{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@
change=
"handleTableChange"
>
...
...
jshERP-web/src/views/financial/ItemOutList.vue
View file @
2c8510b0
...
...
@@ -94,6 +94,7 @@
:columns=
"columns"
:dataSource=
"dataSource"
:pagination=
"ipagination"
:scroll=
"scroll"
:loading=
"loading"
:rowSelection=
"{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@
change=
"handleTableChange"
>
...
...
jshERP-web/src/views/financial/MoneyInList.vue
View file @
2c8510b0
...
...
@@ -95,6 +95,7 @@
:columns=
"columns"
:dataSource=
"dataSource"
:pagination=
"ipagination"
:scroll=
"scroll"
:loading=
"loading"
:rowSelection=
"{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@
change=
"handleTableChange"
>
...
...
jshERP-web/src/views/financial/MoneyOutList.vue
View file @
2c8510b0
...
...
@@ -95,6 +95,7 @@
:columns=
"columns"
:dataSource=
"dataSource"
:pagination=
"ipagination"
:scroll=
"scroll"
:loading=
"loading"
:rowSelection=
"{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@
change=
"handleTableChange"
>
...
...
Prev
1
2
Next
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