修改bug 56268 企标计划-UI需要进行固定(复现方法:浏览器全屏 然后在取消全屏,在打卡全屏可以复现)

This commit is contained in:
hanshaozhuang
2022-07-15 17:40:29 +08:00
parent bc552a0259
commit 872cc1ac3f
+10 -4
View File
@@ -1,5 +1,5 @@
<template> <template>
<div id="app" ref="appView"> <div id="app">
<!-- <router-view v-if="!isBoolean"/>--> <!-- <router-view v-if="!isBoolean"/>-->
<span v-if="this.$route.name === 'Login'|| !isBoolean"> <span v-if="this.$route.name === 'Login'|| !isBoolean">
<router-view /> <router-view />
@@ -34,7 +34,7 @@
<nav-menu></nav-menu> <nav-menu></nav-menu>
<div class="sub-container" style="margin-left: 60px"> <div class="sub-container" style="margin-left: 60px">
<div class="container-box"> <div class="container-box">
<router-view/> <router-view ref="appView1"/>
</div> </div>
</div> </div>
</el-main> </el-main>
@@ -70,7 +70,7 @@
<nav-menu></nav-menu> <nav-menu></nav-menu>
<div class="sub-container" style="margin-left: 200px"> <div class="sub-container" style="margin-left: 200px">
<div class="container-box"> <div class="container-box">
<router-view/> <router-view ref="appView2"/>
</div> </div>
</div> </div>
</el-main> </el-main>
@@ -104,9 +104,15 @@ export default {
}, },
methods: { methods: {
handleRefreshTable() { handleRefreshTable() {
this.$nextTick(() => { this.$nextTick(() => {
// 获取页面中已注册过ref的所有的子组件。 // 获取页面中已注册过ref的所有的子组件。
let refList = this.$refs.appView.$refs; let refList = ''
if(this.$refs.appView1){
refList = this.$refs.appView1.$children[0].$refs;
}else{
refList = this.$refs.appView2.$children[0].$refs;
}
if (refList) { if (refList) {
for (let i of Object.keys(refList)) { for (let i of Object.keys(refList)) {
// 根据doLayout方法判断子组件是不是el-table // 根据doLayout方法判断子组件是不是el-table