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
9b8e9751
Commit
9b8e9751
authored
Jul 17, 2023
by
danfuman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
d77cdaa7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
1 deletion
+29
-1
qgjjdq.vue
...ui/src/views/macro/nationalEconomies/component/qgjjdq.vue
+29
-1
No files found.
dsk-operate-ui/src/views/macro/nationalEconomies/component/qgjjdq.vue
View file @
9b8e9751
...
@@ -31,11 +31,11 @@
...
@@ -31,11 +31,11 @@
<div
class=
"table-item"
>
<div
class=
"table-item"
>
<el-table
<el-table
v-loading=
"tableLoading"
v-loading=
"tableLoading"
class=
"fixed-table"
:data=
"tableData"
:data=
"tableData"
element-loading-text=
"Loading"
element-loading-text=
"Loading"
@
sort-change=
"sortChange"
@
sort-change=
"sortChange"
border
border
fit
highlight-current-row
highlight-current-row
v-if=
"tableDataTotal > 0"
v-if=
"tableDataTotal > 0"
:default-sort =
"
{prop: 'gdp', order: 'descending'}"
:default-sort =
"
{prop: 'gdp', order: 'descending'}"
...
@@ -150,7 +150,23 @@
...
@@ -150,7 +150,23 @@
this
.
dataRegion
()
this
.
dataRegion
()
this
.
getYears
()
this
.
getYears
()
},
},
mounted
()
{
// window.addEventListener("scroll",this.scrolling)
},
beforeDestroy
()
{
// window.removeEventListener("scroll", this.scrolling);
},
methods
:
{
methods
:
{
scrolling
()
{
let
el
=
document
.
getElementsByClassName
(
"el-table__fixed-header-wrapper"
)[
0
]
let
scrollTop
=
window
.
pageYOffset
||
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
;
if
(
scrollTop
>
135
){
let
top
=
scrollTop
-
138
el
.
style
.
top
=
top
+
'px'
}
else
{
el
.
style
.
top
=
0
}
},
getYears
(){
getYears
(){
getYears
({}).
then
(
res
=>
{
getYears
({}).
then
(
res
=>
{
this
.
yearOptions
=
res
.
data
.
reverse
();
this
.
yearOptions
=
res
.
data
.
reverse
();
...
@@ -385,6 +401,15 @@
...
@@ -385,6 +401,15 @@
}
}
}
}
::v-deep
.el-table
{
::v-deep
.el-table
{
overflow
:initial
;
.el-table__header-wrapper
{
position
:
sticky
;
top
:
56px
;
z-index
:
9
;
}
.el-table__fixed-header-wrapper
{
z-index
:
9
;
}
th
{
th
{
font-size
:
12px
!
important
;
font-size
:
12px
!
important
;
font-weight
:
400
!
important
;
font-weight
:
400
!
important
;
...
@@ -399,6 +424,9 @@
...
@@ -399,6 +424,9 @@
width
:
10px
;
width
:
10px
;
}
}
}
}
::v-deep
.fixed-table
{
}
}
}
}
}
}
}
...
...
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