Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
V3-TailingPond
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
xinzhedeai
V3-TailingPond
Commits
631bceed
Commit
631bceed
authored
Jun 24, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:浸润线查询
parent
823970bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
+18
-9
index.vue
src/views/dataMonitor/jrx/history/index.vue
+18
-9
No files found.
src/views/dataMonitor/jrx/history/index.vue
View file @
631bceed
...
...
@@ -22,11 +22,11 @@
style=
"background: #f0f0f0"
></canvas>
</div>
<div
class=
"chart-wrapper"
>
<div
class=
"chart-wrapper"
style=
"padding-left: 20px;"
>
<!-- 图表容器780 -->
<div
ref=
"chartContainer"
style=
"width: 780px; height:
600px; margin-bottom: 20px
"
style=
"width: 780px; height:
550px; margin-bottom: 20px;border:1px solid gainsboro;
"
></div>
<!-- 图表操作区域(调整到最下方左侧) -->
<div
class=
"chart-btn-group"
>
...
...
@@ -194,7 +194,6 @@ export default {
this
.
chartVisible
=
true
;
// 弹窗显示后初始化图表
this
.
$nextTick
(()
=>
{
this
.
initChart
();
this
.
initChart1
();
// 新增:在图表初始化的 $nextTick 后初始化 Canvas(确保 DOM 已渲染)
this
.
$nextTick
(()
=>
{
...
...
@@ -368,14 +367,19 @@ export default {
},
initChart1
()
{
let
params
=
{
sort
:
"
date,desc
"
,
}
if
(
this
.
form
.
query
.
daterange
){
params
.
daterange
=
this
.
form
.
query
.
daterange
.
join
(
'
,
'
)
}
if
(
this
.
form
.
query
.
sensorid
){
params
.
code
=
this
.
form
.
query
.
sensorid
}
request
({
url
:
"
data/st/imghistory
"
,
method
:
"
get
"
,
params
:
{
daterange
:
"
2020-06-02,2026-07-11
"
,
sort
:
"
date,desc
"
,
code
:
"
202206201438352828
"
,
},
params
}).
then
((
res
)
=>
{
const
data
=
res
.
body
;
// const data = this.getChartData().body
...
...
@@ -1029,7 +1033,12 @@ export default {
});
}
},
loadData
:
reqApi
.
common
.
getRequst
,
loadData
:
function
(){
console
.
log
(
this
.
form
,
'
form
'
)
this
.
initChart1
()
return
reqApi
.
common
.
getRequst
},
cancelForm
()
{
this
.
form
.
visible
=
false
;
},
...
...
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