Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
E
ec-report-refactor
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
lihuizhen
ec-report-refactor
Commits
dedf6563
Commit
dedf6563
authored
May 26, 2022
by
Jenny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: details update
parent
52634995
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
details.vue
pages/details/details.vue
+8
-3
No files found.
pages/details/details.vue
View file @
dedf6563
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
:class=
"[element.type == 'NormalTabs' && element.option.tabs.sticky && pageScrollTop > Number(element.top) ? 'el-fixed': '']"
:class=
"[element.type == 'NormalTabs' && element.option.tabs.sticky && pageScrollTop > Number(element.top) ? 'el-fixed': '']"
:style=
"
{
:style=
"
{
width: `${parseInt(element.width * scale)}px`,
width: `${parseInt(element.width * scale)}px`,
height: `${parseInt(element.height * scale)}px`,
height: `${
element.type == 'HorizontalBar'
&&
horizontalBarHeight ? horizontalBarHeight :
parseInt(element.height * scale)}px`,
left: `${parseInt(element.left * scale)}px`,
left: `${parseInt(element.left * scale)}px`,
top: `${parseInt(element.top * scale)}px`,
top: `${parseInt(element.top * scale)}px`,
zIndex: `${element.type == 'NormalTabs' || element.type == 'DateTimePicker' ? 999999 : index + 1}`
zIndex: `${element.type == 'NormalTabs' || element.type == 'DateTimePicker' ? 999999 : index + 1}`
...
@@ -65,7 +65,8 @@
...
@@ -65,7 +65,8 @@
reportInfo
:
{},
reportInfo
:
{},
detailId
:
""
,
detailId
:
""
,
timename
:
null
,
timename
:
null
,
pageScrollTop
:
0
pageScrollTop
:
0
,
horizontalBarHeight
:
0
}
}
},
},
computed
:
{
computed
:
{
...
@@ -131,13 +132,17 @@
...
@@ -131,13 +132,17 @@
return
item
return
item
})
})
}
}
})
})
uni
.
$on
(
'handleUpdateHeight'
,
(
height
)
=>
{
that
.
horizontalBarHeight
=
height
})
},
},
onUnload
()
{
onUnload
()
{
// 移除监听事件
// 移除监听事件
uni
.
$off
(
'handleLinkParams'
)
uni
.
$off
(
'handleLinkParams'
)
uni
.
$off
(
'handleLinkComp'
)
uni
.
$off
(
'handleLinkComp'
)
uni
.
$off
(
'handleDataZoomParams'
)
uni
.
$off
(
'handleDataZoomParams'
)
uni
.
$off
(
'handleUpdateHeight'
)
clearInterval
(
this
.
timename
)
clearInterval
(
this
.
timename
)
},
},
methods
:
{
methods
:
{
...
...
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