Merge remote-tracking branch 'origin/feature_民主管理、人员管理' into release_20261030问题整改

# Conflicts:
#	src/main/resources/views/platform/zhgh/activity/culture/common/applyActivity.js
This commit is contained in:
2026-11-02 11:06:34 +08:00
6 changed files with 99 additions and 13 deletions
@@ -82,6 +82,7 @@ layout("/layouts/platform.html"){
</el-popover>
</table-tool>
<el-table
ref="memberTableRef"
:data="tableData"
style="width: 100%"
stripe
@@ -102,12 +103,12 @@ layout("/layouts/platform.html"){
<el-table-column
align="center"
header-align="center"
v-for="column in tableColumns"
v-for="column in showColumns"
:key="column.prop"
show-overflow-tooltip
v-if="checkedFields.includes(column.prop)"
:label="column.label"
:prop="column.prop"
:width="column.width"
:min-width="column.width || 120"
:fixed="column.fixed"
:sortable="column.sortable"
>
@@ -268,6 +269,16 @@ layout("/layouts/platform.html"){
this.checkedFields = all.filter(p => !this.checkedFields.includes(p));
}
},
watch: {
checkedFields() {
// 可见列更新后重新计算列宽,保证右侧固定操作列与表头、数据行对齐。
this.$nextTick(() => {
if (this.$refs.memberTableRef) {
this.$refs.memberTableRef.doLayout()
}
})
}
},
computed: {
showColumns() {
return this.tableColumns.filter(c => this.checkedFields.includes(c.prop));