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
3c393b43
Commit
3c393b43
authored
Dec 13, 2022
by
leon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: detail page add popup
parent
18acb150
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
2 deletions
+26
-2
details.vue
pages/details/details.vue
+26
-2
No files found.
pages/details/details.vue
View file @
3c393b43
...
...
@@ -13,7 +13,7 @@
height: `${element.type == 'HorizontalBar'
&&
horizontalBarHeight ? horizontalBarHeight : parseInt(element.height * scale)}px`,
left: `${parseInt(element.left * scale)}px`,
top: `${parseInt(element.top * scale)}px`,
zIndex: `${element.type == 'NormalTabs' || element.type == 'DateTimePicker' ? 9999
99
: index + 1}`
zIndex: `${element.type == 'NormalTabs' || element.type == 'DateTimePicker' ? 9999 : index + 1}`
}"
>
<!-- 普通柱状图 -->
...
...
@@ -57,6 +57,13 @@
<!--
<Table
v-if=
"element.type == 'NormalTable'"
:elementInfo=
"element"
></Table>
-->
</view>
</
template
>
<ModelData
style=
"position: relative;z-index: 99999;"
:popupShow=
"popupShow"
:popupData=
"popupData"
:currentIndex=
"currentIndex"
:customRender=
"customRender"
></ModelData>
</view>
</template>
...
...
@@ -72,7 +79,12 @@
timename
:
null
,
pageScrollTop
:
0
,
stickyTables
:
[],
// 设置了吸顶的table
horizontalBarHeight
:
0
horizontalBarHeight
:
0
,
popupShow
:
false
,
popupData
:
{},
customRender
:
{},
currentIndex
:
0
}
},
computed
:
{
...
...
@@ -148,14 +160,26 @@
})
uni
.
$on
(
'handleUpdateHeight'
,
(
height
)
=>
{
that
.
horizontalBarHeight
=
height
}),
uni
.
$on
(
'showBarDetail'
,
data
=>
{
const
{
popupShow
,
popupData
,
customRender
,
currentIndex
}
=
data
that
.
popupShow
=
popupShow
that
.
popupData
=
popupData
that
.
currentIndex
=
currentIndex
that
.
customRender
=
customRender
})
},
onUnload
()
{
// 如何监听页面卸载时候隐藏弹窗
uni
.
$on
(
'showBarDetail'
,
data
=>
{
that
.
popupShow
=
false
})
// 移除监听事件
uni
.
$off
(
'handleLinkParams'
)
uni
.
$off
(
'handleLinkComp'
)
uni
.
$off
(
'handleDataZoomParams'
)
uni
.
$off
(
'handleUpdateHeight'
)
uni
.
$off
(
'showBarDetail'
)
clearInterval
(
this
.
timename
)
},
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