Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pdczt_qd
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaopanyu
pdczt_qd
Commits
3d1c2de2
Commit
3d1c2de2
authored
Aug 13, 2025
by
cat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zd
parent
3cd04a10
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
src/views/efficiencyAnalysis/djzt/detail/components/CurveGraph.vue
+3
-3
src/views/efficiencyAnalysis/djzt/detail/components/HistogramGraph.vue
+4
-4
No files found.
src/views/efficiencyAnalysis/djzt/detail/components/CurveGraph.vue
View file @
3d1c2de2
<
template
>
<div
class=
"drilling-chart-container"
v-loading=
"loading"
>
<div
id=
"drillingEfficiencyChart
dj
"
class=
"chart"
></div>
<div
id=
"drillingEfficiencyChart"
class=
"chart"
></div>
</div>
</
template
>
...
...
@@ -61,14 +61,14 @@ export default {
initChart
()
{
if
(
!
this
.
chartData
)
{
const
chartDom
=
document
.
getElementById
(
'drillingEfficiencyChart
dj
'
);
const
chartDom
=
document
.
getElementById
(
'drillingEfficiencyChart'
);
if
(
chartDom
&&
this
.
myChart
)
{
this
.
myChart
.
clear
();
}
return
;
}
const
chartDom
=
document
.
getElementById
(
'drillingEfficiencyChart
dj
'
);
const
chartDom
=
document
.
getElementById
(
'drillingEfficiencyChart'
);
if
(
!
chartDom
)
{
console
.
error
(
'未找到图表容器'
);
return
;
...
...
src/views/efficiencyAnalysis/djzt/detail/components/HistogramGraph.vue
View file @
3d1c2de2
<
template
>
<div
class=
"chart-container"
v-loading=
"loading"
>
<div
id=
"mainzft
dj"
class=
"chart"
ref=
"chartRef"
></div>
<div
id=
"mainzft
"
class=
"chart"
></div>
</div>
</
template
>
...
...
@@ -63,7 +63,7 @@ export default {
window
.
addEventListener
(
"resize"
,
this
.
handleResize
);
},
observeParentResize
()
{
const
parentDom
=
this
.
$refs
.
chartRef
?.
parentElement
;
const
parentDom
=
document
.
getElementById
(
"mainzft"
)
?.
parentElement
;
if
(
parentDom
&&
window
.
ResizeObserver
)
{
this
.
resizeObserver
=
new
ResizeObserver
(()
=>
{
if
(
this
.
myChart
)
{
...
...
@@ -87,7 +87,7 @@ export default {
async
initChart
()
{
this
.
loading
=
true
;
const
chartDom
=
this
.
$refs
.
chartRef
;
const
chartDom
=
document
.
getElementById
(
"mainzft"
)
;
if
(
!
chartDom
)
{
console
.
error
(
"未找到图表容器 DOM"
);
this
.
loading
=
false
;
...
...
@@ -142,7 +142,7 @@ export default {
const
availableHeight
=
viewportHeight
-
120
;
const
availableWidth
=
viewportWidth
-
80
;
const
chartDom
=
this
.
$refs
.
chartRef
;
const
chartDom
=
document
.
getElementById
(
"mainzft"
)
;
if
(
chartDom
)
{
chartDom
.
style
.
width
=
`
${
availableWidth
}
px`
;
chartDom
.
style
.
height
=
`
${
availableHeight
}
px`
;
...
...
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