Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
Overview
Overview
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
platform
hp-smart
Commits
0fb1e3dc
Commit
0fb1e3dc
authored
Nov 04, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
界面展示优化
parent
2aea91e6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
3 deletions
+48
-3
HPBI003.jsp
src/main/webapp/HP/BI/HPBI003.jsp
+0
-0
HPBI004.jsp
src/main/webapp/HP/BI/HPBI004.jsp
+6
-3
public.js
src/main/webapp/common/js/public.js
+42
-0
No files found.
src/main/webapp/HP/BI/HPBI003.jsp
View file @
0fb1e3dc
This diff is collapsed.
Click to expand it.
src/main/webapp/HP/BI/HPBI004.jsp
View file @
0fb1e3dc
...
@@ -256,18 +256,21 @@
...
@@ -256,18 +256,21 @@
querySbNODate
:[],
querySbNODate
:[],
currentTime
:
dayjs
().
format
(
"YYYY-MM-DD HH:mm:ss"
),
currentTime
:
dayjs
().
format
(
"YYYY-MM-DD HH:mm:ss"
),
lineOption1
:
''
,
lineOption1
:
''
,
lineOption2
:
''
lineOption2
:
''
,
timer
:
''
};
};
},
},
mounted
()
{
mounted
()
{
this
.
getYesterdayDateFormatted
();
setInterval
(()
=>
{
setInterval
(()
=>
{
this
.
currentTime
=
dayjs
().
format
(
"YYYY-MM-DD HH:mm:ss"
)
this
.
currentTime
=
dayjs
().
format
(
"YYYY-MM-DD HH:mm:ss"
)
},
1000
);
},
1000
);
this
.
queryCompanyInfo
();
this
.
queryCompanyInfo
();
this
.
initPage
();
this
.
setOption
();
this
.
setOption
();
this
.
setOption2
();
this
.
setOption2
();
this
.
getYesterdayDateFormatted
();
this
.
initPage
();
this
.
onSetInterval
();
this
.
onSetInterval
();
},
},
...
...
src/main/webapp/common/js/public.js
0 → 100644
View file @
0fb1e3dc
let
timer1
=
{}
const
tableContentScroll
=
(
el
)
=>
{
if
(
timer1
[
el
])
{
clearInterval
(
timer1
[
el
])
timer1
[
el
]
=
null
;
}
setTimeout
(()
=>
{
let
i
=
$
(
"#"
+
el
+
' .el-table__body-wrapper table'
);
let
i2
=
$
(
"#"
+
el
+
' .el-table__body-wrapper'
);
let
a
=
0
;
let
boxHeight
=
i
.
height
();
let
height
=
i2
.
height
();
let
num
=
boxHeight
-
height
;
// console.log(boxHeight, height, num,"高度数据")
let
run
=
()
=>
{
if
(
num
>
0
)
{
timer1
[
el
]
=
setInterval
(()
=>
{
a
=
a
+
0.07
;
if
(
a
>=
num
)
{
a
=
0
}
i2
.
scrollTop
(
a
);
},
10
)
}
}
run
()
i
.
on
(
'mouseenter'
,
()
=>
{
clearInterval
(
timer1
[
el
])
timer1
[
el
]
=
null
i2
.
on
(
'scroll'
,()
=>
{
a
=
i2
.
scrollTop
();
})
})
i
.
on
(
"mouseleave"
,()
=>
{
i2
.
off
(
"scroll"
);
if
(
!
timer1
[
el
]){
run
()
}
})
},
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