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
53d6a0b3
Commit
53d6a0b3
authored
Jun 25, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:guan 动态test 数量4
parent
76936d94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
16 deletions
+24
-16
index.vue
src/views/dataMonitor/jrx/history/index.vue
+24
-16
No files found.
src/views/dataMonitor/jrx/history/index.vue
View file @
53d6a0b3
...
...
@@ -183,15 +183,22 @@ export default {
// 数据清洗
const
canvasH
=
600
const
canvasW
=
1000
const
po_pad_right
=
180
// 第一个台阶距离画布的距离
const
poH
=
150
this
.
poConfigs
=
[]
this
.
guanConfigs
=
[]
for
(
let
index
=
0
;
index
<
4
;
index
++
)
{
this
.
poConfigs
.
push
({
x
:
0
,
y
:
canvasH
-
((
index
+
1
)
*
150
),
width
:
879
-
(
index
*
250
),
height
:
150
x
:
0
,
y
:
canvasH
-
((
index
+
1
)
*
poH
),
width
:
canvasW
-
((
index
+
1
)
*
po_pad_right
),
height
:
150
})
//
this.guanConfigs.push({
// x: null, y: null, width: 6, height: index==0?121
:200, image: 'guanImage'
//
})
this
.
guanConfigs
.
push
({
x
:
this
.
poConfigs
[
index
].
width
*
0.75
,
y
:
canvasH
-
(
this
.
poConfigs
[
index
].
height
*
(
index
+
1
))
+
30
,
width
:
6
,
height
:
index
==
0
?
100
:
200
,
image
:
'
guanImage
'
})
}
// lineConfigs: [
...
...
@@ -340,19 +347,20 @@ export default {
});
// 3. 绘制guan.png(遍历配置数组)
console
.
log
(
this
.
guanConfigs
,
'
guanConfigs
'
)
this
.
guanConfigs
.
forEach
((
config
,
index
)
=>
{
const
firstPo
=
this
.
poConfigs
[
0
];
const
secondPo
=
this
.
poConfigs
[
1
];
// 第一张guan.png坐标计算(基于第一张po.png)
if
(
index
===
0
)
{
config
.
x
=
firstPo
.
width
-
150
;
// 879 - 150
config
.
y
=
canvasHeight
-
135.5
;
// 原计算逻辑
}
// 第二张guan.png坐标计算(基于第二张po.png)
if
(
index
===
1
)
{
config
.
x
=
secondPo
.
width
-
150
;
// secondPoWidth - 150
config
.
y
=
secondPo
.
y
+
30
;
// secondPoY + 30
}
//
const firstPo = this.poConfigs[0];
//
const secondPo = this.poConfigs[1];
//
//
第一张guan.png坐标计算(基于第一张po.png)
//
if (index === 0) {
//
config.x = firstPo.width - 150; // 879 - 150
//
config.y = canvasHeight - 135.5; // 原计算逻辑
//
}
//
//
第二张guan.png坐标计算(基于第二张po.png)
//
if (index === 1) {
//
config.x = secondPo.width - 150; // secondPoWidth - 150
//
config.y = secondPo.y + 30; // secondPoY + 30
//
}
this
.
drawGuanImage
(
config
);
});
...
...
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