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
4a35dfb7
Commit
4a35dfb7
authored
Jul 19, 2023
by
huangjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*
parent
8138fdd0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
30 deletions
+44
-30
project.scss
dsk-operate-ui/src/assets/styles/project.scss
+15
-17
index.vue
dsk-operate-ui/src/views/custom/customList/index.vue
+29
-13
No files found.
dsk-operate-ui/src/assets/styles/project.scss
View file @
4a35dfb7
.el-card
{
overflow
:
initial
;
}
.app-container
{
.app-container
{
padding
:
0
;
padding
:
0
;
}
}
...
@@ -1210,19 +1212,15 @@
...
@@ -1210,19 +1212,15 @@
//}
//}
}
}
//.fixed-table {
.fixed-table
{
// overflow: initial;
overflow
:
visible
;
//
// .el-table__header-wrapper {
.el-table__header-wrapper
{
// position: sticky;
position
:
sticky
;
// top: 0;
top
:
56px
;
// z-index: 9;
z-index
:
9
;
// }
}
//
.el-table__fixed-header-wrapper
{
// .el-table__fixed-header-wrapper {
z-index
:
9
;
// position: sticky;
}
// top: 0;
}
// z-index: 9;
// }
//
//}
dsk-operate-ui/src/views/custom/customList/index.vue
View file @
4a35dfb7
...
@@ -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
id=
"tables"
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%"
>
...
@@ -335,18 +335,34 @@
...
@@ -335,18 +335,34 @@
// },
// },
methods
:{
methods
:{
scrolling
()
{
scrolling
()
{
let
el
=
document
.
getElementById
(
"tables"
).
offsetTop
// let e1 = document.getElementsByClassName("tables")[0].offsetTop
console
.
log
(
el
)
// console.log(e1)
// let el = document.getElementsByClassName("el-table__fixed-header-wrapper")[0]
// return false
// let el1 = document.getElementsByClassName("el-table__header")[0]
// let e2 = document.getElementsByClassName("navbar")[0].getBoundingClientRect().height
// console.log(el1.offsetTop)
// let con = document.getElementsByClassName('el-table__fixed-header-wrapper')[0]
// let scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
// // let con1 = document.getElementsByClassName('el-table__fixed-header-wrapper')[0]
// if (scrollTop > el1.offsetTop) {
// console.log(con)
// let top = scrollTop - el1.offsetTop - 13
// if(e1
<=
e2
){
// el.style.top = top + 'px'
// con.style.top=e2+'px'
// } else {
// // con.style.position='fixed'
// el.style.top = 0
// con.style.zIndex=5
// }else{
// // con.style.position='relative'
// con.style.top='0px'
// }
// }
let
e1
=
document
.
getElementById
(
"tables"
).
offsetTop
let
e2
=
document
.
getElementsByClassName
(
"navbar"
)[
0
].
getBoundingClientRect
().
height
let
e3
=
document
.
getElementsByClassName
(
"el-card"
)[
0
].
offsetTop
console
.
log
(
e3
)
let
el
=
document
.
getElementsByClassName
(
"el-table__fixed-header-wrapper"
)[
0
]
let
scrollTop
=
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
;
if
(
scrollTop
>
105
){
let
top
=
scrollTop
-
105
el
.
style
.
top
=
top
+
'px'
}
else
{
el
.
style
.
top
=
0
}
},
},
sq1
(
item
,
sq
){
sq1
(
item
,
sq
){
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
@@ -631,7 +647,7 @@
...
@@ -631,7 +647,7 @@
.tables
{
.tables
{
position
:
relative
;
position
:
relative
;
min-height
:
calc
(
100vh
-
134px
);
min-height
:
calc
(
100vh
-
134px
);
overflow
:
auto
;
/*overflow: auto;*/
.empty
{
.empty
{
position
:
absolute
;
position
:
absolute
;
top
:
50%
;
top
:
50%
;
...
...
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