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
48774168
Commit
48774168
authored
Feb 28, 2022
by
Jenny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: v-show
parent
eb4ee270
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
index.vue
pages/index/index.vue
+4
-4
No files found.
pages/index/index.vue
View file @
48774168
...
...
@@ -3,7 +3,7 @@
<template
v-for=
"(element, index) in reportData"
>
<view
class=
"view-element"
v-
if
=
"!element.hide"
v-
show
=
"!element.hide"
:key=
"element.id"
:style=
"
{
width: `${element.width * scale}px`,
...
...
@@ -94,7 +94,7 @@
* 组件交互 - 组件
*/
uni
.
$on
(
'handleLinkComp'
,
({
showData
,
hideData
})
=>
{
this
.
reportData
.
map
(
item
=>
{
this
.
reportData
=
this
.
reportData
.
map
(
item
=>
{
if
(
showData
.
includes
(
item
.
id
))
item
.
hide
=
false
if
(
hideData
.
includes
(
item
.
id
))
item
.
hide
=
true
return
item
...
...
@@ -174,7 +174,7 @@
*/
handleValueChange
(
index
,
paramName
,
value
)
{
if
(
index
.
length
&&
paramName
&&
value
)
{
this
.
reportData
.
map
(
item
=>
{
this
.
reportData
=
this
.
reportData
.
map
(
item
=>
{
const
flag
=
index
.
includes
(
item
.
id
)
if
(
flag
&&
item
.
type
===
'BasicText'
&&
item
.
data
.
dataType
===
'static'
)
{
this
.
$set
(
item
.
data
.
dataList
,
'text'
,
value
)
...
...
@@ -203,7 +203,7 @@
position
:
relative
;
height
:
100%
;
user-select
:
none
;
overflow
:
auto
;
//
overflow: auto;
background-repeat
:
no-repeat
;
background-size
:
cover
;
background-position
:
center
;
...
...
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