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
2096b4ec
Commit
2096b4ec
authored
Jul 18, 2023
by
danfuman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
046a8970
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
49 additions
and
24 deletions
+49
-24
sidebar.scss
dsk-operate-ui/src/assets/styles/sidebar.scss
+13
-12
AppMain.vue
dsk-operate-ui/src/layout/components/AppMain.vue
+1
-0
regionalEconomy.vue
...i/src/views/macro/economies/component/regionalEconomy.vue
+11
-0
index.vue
dsk-operate-ui/src/views/macro/enterprises/index.vue
+4
-4
economies-detail.vue
...ws/macro/nationalEconomies/component/economies-detail.vue
+12
-0
qgjjdq.vue
...ui/src/views/macro/nationalEconomies/component/qgjjdq.vue
+8
-8
No files found.
dsk-operate-ui/src/assets/styles/sidebar.scss
View file @
2096b4ec
...
...
@@ -5,6 +5,7 @@
transition
:
margin-left
.28s
;
margin-left
:
$base-sidebar-width
;
position
:
relative
;
background
:
#F5F5F5
;
}
.sidebarHide
{
...
...
@@ -37,12 +38,12 @@
animation-fill-mode
:
forwards
;
z-index
:
1002
;
}
@keyframes
left-right
{
0
%
{
right
:
0
;}
100
%
{
right
:
-21px
;}
}
// reset element-ui css
.horizontal-collapse-transition
{
transition
:
0s
width
ease-in-out
,
0s
padding-left
ease-in-out
,
0s
padding-right
ease-in-out
;
...
...
@@ -58,10 +59,10 @@
.el-scrollbar
{
height
:
100%
;
}
&
.has-logo
{
.el-scrollbar
{
...
...
@@ -138,8 +139,8 @@
background
:
#fff
!
important
;
}
}
// menu hover
.submenu-title-noDropdown
,
.el-submenu__title
{
color
:
#fff
!
important
;
...
...
@@ -150,9 +151,9 @@
border
:
1px
solid
#2b3f69
;
}
}
}
.sidebar-container
.el-submenu
.el-menu-item
:hover
,
.sidebar-container
.nest-menu
.el-submenu
>
.el-submenu__title
:hover
{
background-color
:
#1e2c4c
!
important
;
...
...
@@ -160,7 +161,7 @@
border-radius
:
10px
;
border
:
1px
solid
#2b3f69
;
}
.sidebar-container
.el-submenu
.el-menu-item
:before
,
.sidebar-container
.nest-menu
.el-submenu
>
.el-submenu__title
:before
{
position
:
absolute
;
width
:
2px
;
...
...
@@ -210,7 +211,7 @@
vertical-align
:
-0
.15em
;
fill
:
currentColor
;
overflow
:
hidden
;
}
}
}
...
...
@@ -405,4 +406,4 @@
padding-top
:
6px
;
padding-bottom
:
10px
;
}
}
\ No newline at end of file
}
dsk-operate-ui/src/layout/components/AppMain.vue
View file @
2096b4ec
...
...
@@ -45,6 +45,7 @@ export default {
min-height
:
calc
(
100vh
-
56px
);
min-width
:
1440px
;
background
:
#F5F5F5
;
overflow
:
initial
;
}
.fixed-header
+
.app-main
{
...
...
dsk-operate-ui/src/views/macro/economies/component/regionalEconomy.vue
View file @
2096b4ec
...
...
@@ -823,6 +823,7 @@ export default {
.table-item
{
margin-top
:
22px
;
::v-deep
.el-table
{
overflow
:visible
;
th
{
font-size
:
12px
!
important
;
font-weight
:
400
!
important
;
...
...
@@ -836,6 +837,16 @@ export default {
.caret-wrapper
{
width
:
10px
;
}
.el-table__body-wrapper
{
overflow
:visible
;
}
.el-table__body
{
tr
:first-child
{
position
:
sticky
;
top
:
56px
;
z-index
:
9
;
}
}
}
}
}
...
...
dsk-operate-ui/src/views/macro/enterprises/index.vue
View file @
2096b4ec
...
...
@@ -136,17 +136,17 @@ export default {
},
mounted
()
{
//
window.addEventListener("scroll",this.scrolling)
window
.
addEventListener
(
"scroll"
,
this
.
scrolling
)
},
beforeDestroy
()
{
//
window.removeEventListener("scroll", this.scrolling);
window
.
removeEventListener
(
"scroll"
,
this
.
scrolling
);
},
methods
:
{
scrolling
()
{
let
el
=
document
.
getElementsByClassName
(
"el-table__fixed-header-wrapper"
)[
0
]
let
scrollTop
=
window
.
pageYOffset
||
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
;
if
(
scrollTop
>
1
35
){
let
top
=
scrollTop
-
1
38
if
(
scrollTop
>
1
97
){
let
top
=
scrollTop
-
1
97
el
.
style
.
top
=
top
+
'px'
}
else
{
el
.
style
.
top
=
0
...
...
dsk-operate-ui/src/views/macro/nationalEconomies/component/economies-detail.vue
View file @
2096b4ec
...
...
@@ -295,5 +295,17 @@ export default {
}
.table-item
{
padding
:
16px
10px
16px
16px
;
::v-deep
.el-table
{
.el-table__body-wrapper
{
overflow
:visible
;
}
.el-table__body
{
tr
:first-child
{
position
:
fixed
;
top
:
49px
;
z-index
:
9
;
}
}
}
}
</
style
>
dsk-operate-ui/src/views/macro/nationalEconomies/component/qgjjdq.vue
View file @
2096b4ec
...
...
@@ -158,14 +158,14 @@
},
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-136
//
el.style.top = top+'px'
//
}else{
//
el.style.top = 0
//
}
let
el
=
document
.
getElementsByClassName
(
"el-table__fixed-header-wrapper"
)[
0
]
let
scrollTop
=
window
.
pageYOffset
||
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
;
if
(
scrollTop
>
138
){
let
top
=
scrollTop
-
138
el
.
style
.
top
=
top
+
'px'
}
else
{
el
.
style
.
top
=
0
}
},
getYears
(){
getYears
({}).
then
(
res
=>
{
...
...
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