修改分屏以后,别的选项卡内容消失
Showing
1 changed file
with
5 additions
and
3 deletions
| ... | @@ -88,8 +88,8 @@ | ... | @@ -88,8 +88,8 @@ |
| 88 | <el-tab-pane | 88 | <el-tab-pane |
| 89 | :label="item.name" | 89 | :label="item.name" |
| 90 | :name="item.value" | 90 | :name="item.value" |
| 91 | v-for="(item, index) in tabList" | 91 | v-for="item in tabList" |
| 92 | :key="index" | 92 | :key="item.value" |
| 93 | > | 93 | > |
| 94 | </el-tab-pane> | 94 | </el-tab-pane> |
| 95 | </el-tabs> | 95 | </el-tabs> |
| ... | @@ -279,9 +279,11 @@ export default { | ... | @@ -279,9 +279,11 @@ export default { |
| 279 | this.tabName = this.tabList[this.clxxIndex - 1].value; | 279 | this.tabName = this.tabList[this.clxxIndex - 1].value; |
| 280 | this.getFromRouter(this.tabList[this.clxxIndex - 1].value); | 280 | this.getFromRouter(this.tabList[this.clxxIndex - 1].value); |
| 281 | } | 281 | } |
| 282 | //删除材料信息选项卡数据 | ||
| 282 | this.tabList.splice(this.clxxIndex, 1); | 283 | this.tabList.splice(this.clxxIndex, 1); |
| 283 | } else { | 284 | } else { |
| 284 | this.tabList.splice(this.clxxIndex, 1, this.clxxTab); | 285 | //新增材料信息选项卡数据 |
| 286 | this.tabList.splice(this.clxxIndex, 0, this.clxxTab); | ||
| 285 | } | 287 | } |
| 286 | break; | 288 | break; |
| 287 | case "B4": | 289 | case "B4": | ... | ... |
-
Please register or sign in to post a comment