Commit c8339dda authored by leon's avatar leon

fix: tab components refresh

parent f3f00306
...@@ -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
} }
......
...@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment