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
69df35bf
Commit
69df35bf
authored
Dec 14, 2022
by
Jenny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 弹框关闭后清除数据
parent
2005a5c8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
ModelData.vue
components/ModelData/ModelData.vue
+3
-1
details.vue
pages/details/details.vue
+1
-1
index.vue
pages/index/index.vue
+1
-1
No files found.
components/ModelData/ModelData.vue
View file @
69df35bf
...
@@ -8,12 +8,13 @@
...
@@ -8,12 +8,13 @@
>
>
<view
class=
"slot-content"
>
<view
class=
"slot-content"
>
<swiper
<swiper
v-if=
"show"
class=
"swiper"
class=
"swiper"
circular
circular
:current=
"currentIndex"
:current=
"currentIndex"
:style=
"
{ height: `${height}px` }"
:style=
"
{ height: `${height}px` }"
>
>
<swiper-item
v-for=
"
item in popupData
"
>
<swiper-item
v-for=
"
(item, index) in popupData"
:key=
"index
"
>
<view
v-for=
"(val, key) in item"
:key=
"key"
class=
"data-view"
>
<view
v-for=
"(val, key) in item"
:key=
"key"
class=
"data-view"
>
<view
class=
"data-key ellipsis"
>
{{
key
}}
</view>
<view
class=
"data-key ellipsis"
>
{{
key
}}
</view>
<template
v-if=
"customRender[key] === 'picture'"
>
<template
v-if=
"customRender[key] === 'picture'"
>
...
@@ -69,6 +70,7 @@ export default {
...
@@ -69,6 +70,7 @@ export default {
}
}
},
},
height
()
{
height
()
{
if
(
!
this
.
popupData
.
length
)
return
const
keys
=
Object
.
keys
(
this
.
popupData
[
0
])
const
keys
=
Object
.
keys
(
this
.
popupData
[
0
])
const
customRenderKeys
=
Object
.
keys
(
this
.
customRender
)
const
customRenderKeys
=
Object
.
keys
(
this
.
customRender
)
return
keys
.
length
*
30
+
customRenderKeys
.
length
*
50
return
keys
.
length
*
30
+
customRenderKeys
.
length
*
50
...
...
pages/details/details.vue
View file @
69df35bf
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
:popupData=
"popupData"
:popupData=
"popupData"
:currentIndex=
"currentIndex"
:currentIndex=
"currentIndex"
:customRender=
"customRender"
:customRender=
"customRender"
@
close=
"popupShow=false"
@
close=
"popupShow=false
;popupData = []
"
></ModelData>
></ModelData>
<MySelect></MySelect>
<MySelect></MySelect>
...
...
pages/index/index.vue
View file @
69df35bf
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
:popupData=
"popupData"
:popupData=
"popupData"
:currentIndex=
"currentIndex"
:currentIndex=
"currentIndex"
:customRender=
"customRender"
:customRender=
"customRender"
@
close=
"popupShow=false"
@
close=
"popupShow=false
;popupData = []
"
></ModelData>
></ModelData>
<MySelect></MySelect>
<MySelect></MySelect>
...
...
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