Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
Project
Project
Details
Activity
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
Administrator
dsk-cr20g
Commits
988e3782
Commit
988e3782
authored
Jul 20, 2023
by
huangjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*
parent
1e4da622
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
40 deletions
+12
-40
project.scss
dsk-operate-ui/src/assets/styles/project.scss
+10
-0
index.vue
dsk-operate-ui/src/views/custom/customList/index.vue
+1
-20
index.vue
...operate-ui/src/views/custom/historicalCustomers/index.vue
+1
-20
No files found.
dsk-operate-ui/src/assets/styles/project.scss
View file @
988e3782
...
@@ -1223,4 +1223,14 @@
...
@@ -1223,4 +1223,14 @@
.el-table__fixed-header-wrapper
{
.el-table__fixed-header-wrapper
{
z-index
:
9
;
z-index
:
9
;
}
}
.el-table__fixed-header-wrapper
{
position
:
sticky
;
z-index
:
9
;
top
:
56px
;
}
.el-table__fixed
{
overflow-x
:
clip
;
overflow-y
:
clip
;
}
}
}
dsk-operate-ui/src/views/custom/customList/index.vue
View file @
988e3782
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
</div>
</div>
</div>
</div>
<skeleton
v-if=
"isSkeleton"
></skeleton>
<skeleton
v-if=
"isSkeleton"
></skeleton>
<el-table
id=
"tables"
v-if=
"!isSkeleton&&tableData.total > 0"
class=
"fixed-table"
<el-table
v-if=
"!isSkeleton&&tableData.total > 0"
class=
"fixed-table"
:data=
"tableData.rows"
:data=
"tableData.rows"
stripe
border
stripe
border
style=
"width: 100%"
>
style=
"width: 100%"
>
...
@@ -317,26 +317,7 @@
...
@@ -317,26 +317,7 @@
this
.
getDictType
()
this
.
getDictType
()
this
.
prvinceTree
()
this
.
prvinceTree
()
},
},
mounted
()
{
window
.
addEventListener
(
"scroll"
,
this
.
scrolling
)
},
beforeDestroy
()
{
window
.
removeEventListener
(
"scroll"
,
this
.
scrolling
);
},
methods
:{
methods
:{
scrolling
()
{
let
e1
=
document
.
getElementById
(
"tables"
).
offsetTop
let
e2
=
document
.
getElementsByClassName
(
"navbar"
)[
0
].
getBoundingClientRect
().
height
let
mheight
=
e1
+
e2
+
2
let
el
=
document
.
getElementsByClassName
(
"el-table__fixed-header-wrapper"
)[
0
]
let
scrollTop
=
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
;
if
(
scrollTop
>
mheight
){
let
top
=
scrollTop
-
mheight
el
.
style
.
top
=
top
+
'px'
}
else
{
el
.
style
.
top
=
0
}
},
sq1
(
item
,
sq
){
sq1
(
item
,
sq
){
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
item
.
sq1
=
sq
item
.
sq1
=
sq
...
...
dsk-operate-ui/src/views/custom/historicalCustomers/index.vue
View file @
988e3782
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
</div>
</div>
</div>
</div>
<skeleton
v-if=
"isSkeleton"
></skeleton>
<skeleton
v-if=
"isSkeleton"
></skeleton>
<el-table
id=
"tables"
v-if=
"!isSkeleton&&tableData.total > 0"
class=
"fixed-table"
<el-table
v-if=
"!isSkeleton&&tableData.total > 0"
class=
"fixed-table"
:data=
"tableData.rows"
:data=
"tableData.rows"
stripe
border
stripe
border
style=
"width: 100%"
>
style=
"width: 100%"
>
...
@@ -246,26 +246,7 @@ export default {
...
@@ -246,26 +246,7 @@ export default {
this
.
getCustomerList
()
this
.
getCustomerList
()
this
.
getDictType
()
this
.
getDictType
()
},
},
mounted
()
{
window
.
addEventListener
(
"scroll"
,
this
.
scrolling
)
},
beforeDestroy
()
{
window
.
removeEventListener
(
"scroll"
,
this
.
scrolling
);
},
methods
:{
methods
:{
scrolling
()
{
let
e1
=
document
.
getElementById
(
"tables"
).
offsetTop
let
e2
=
document
.
getElementsByClassName
(
"navbar"
)[
0
].
getBoundingClientRect
().
height
let
mheight
=
e1
+
e2
+
2
let
el
=
document
.
getElementsByClassName
(
"el-table__fixed-header-wrapper"
)[
0
]
let
scrollTop
=
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
;
if
(
scrollTop
>
mheight
){
let
top
=
scrollTop
-
mheight
el
.
style
.
top
=
top
+
'px'
}
else
{
el
.
style
.
top
=
0
}
},
sq1
(
item
,
sq
){
sq1
(
item
,
sq
){
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
item
.
sq1
=
sq
item
.
sq1
=
sq
...
...
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