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
c8339dda
Commit
c8339dda
authored
Feb 15, 2023
by
leon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: tab components refresh
parent
f3f00306
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
NormalTabs.vue
components/NormalTabs/NormalTabs.vue
+3
-3
index.vue
pages/index/index.vue
+5
-5
No files found.
components/NormalTabs/NormalTabs.vue
View file @
c8339dda
...
@@ -147,7 +147,7 @@
...
@@ -147,7 +147,7 @@
/**
/**
* 改变选项卡的值
* 改变选项卡的值
*/
*/
tabsValueChange
()
{
tabsValueChange
()
{
const
{
const
{
index
,
index
,
paramName
,
paramName
,
...
@@ -185,8 +185,8 @@
...
@@ -185,8 +185,8 @@
},
},
watch
:
{
watch
:
{
'elementInfo.child.index'
:
{
'elementInfo.child.index'
:
{
handler
(
newVal
)
{
handler
(
newVal
)
{
if
(
newVal
.
length
)
this
.
tabsValueChange
()
this
.
tabsValueChange
()
},
},
immediate
:
true
immediate
:
true
}
}
...
...
pages/index/index.vue
View file @
c8339dda
...
@@ -187,11 +187,11 @@
...
@@ -187,11 +187,11 @@
* 递归 - 隐藏子项为NormalTabs的所有关联组件
* 递归 - 隐藏子项为NormalTabs的所有关联组件
*/
*/
childrenDataHide
(
item
)
{
childrenDataHide
(
item
)
{
if
(
item
.
type
===
'NormalTabs'
)
{
if
(
item
.
type
===
'NormalTabs'
)
{
if
(
!
item
.
child
.
data
.
length
)
{
if
(
!
item
.
child
.
data
.
length
)
{
return
return
}
}
item
.
child
.
data
.
forEach
(
data
=>
{
item
.
child
.
data
.
forEach
(
data
=>
{
this
.
reportInfo
.
list
.
map
(
item
=>
{
this
.
reportInfo
.
list
.
map
(
item
=>
{
if
(
data
.
comp
===
item
.
id
)
{
if
(
data
.
comp
===
item
.
id
)
{
item
.
hide
=
true
item
.
hide
=
true
...
@@ -199,8 +199,8 @@
...
@@ -199,8 +199,8 @@
}
}
return
item
return
item
})
})
})
})
}
}
},
},
//检查是否登录
//检查是否登录
userAuthCheck
()
{
userAuthCheck
()
{
...
...
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