修改bug 56037 【WELINK】标准征求意见流程,意见审批节点,表格无法对齐

This commit is contained in:
hanshaozhuang
2022-07-05 11:25:32 +08:00
parent 43d0fc68e5
commit 7a7d7070c4
+27
View File
@@ -92,7 +92,32 @@ export default {
isBoolean: false
}
},
created() {
let _this = this;
//窗口改变时
window.onresize = function () {
_this.handleRefreshTable();
};
},
updated() {
this.handleRefreshTable()
},
methods: {
handleRefreshTable() {
this.$nextTick(() => {
// 获取页面中已注册过ref的所有的子组件。
let refList = this.$refs.appView.$refs;
if (refList) {
for (let i of Object.keys(refList)) {
// 根据doLayout方法判断子组件是不是el-table
if (refList[i] && refList[i].doLayout) {
// 执行doLayout方法
refList[i].doLayout();
}
}
}
})
},
// 点击下拉选项事件
handleCommand(command) {
// 退出登录
@@ -227,6 +252,8 @@ export default {
} else {
this.isBoolean = false
}
//切换标签时
this.handleRefreshTable();
}
},
mounted() {