style: 调整受众弹窗表格列宽和数据映射,优化用户界面

This commit is contained in:
huweihang
2025-12-17 22:35:07 +08:00
parent 2389b06f28
commit ea6ed74746

View File

@@ -44,12 +44,11 @@
:data="tableData"
@selection-change="onSelectionChange"
:row-key="row => row.id"
max-height="420"
>
<el-table-column type="selection" width="50" />
<el-table-column prop="userName" label="姓名" min-width="220" show-overflow-tooltip />
<el-table-column prop="workNum" label="工号" width="120" />
<el-table-column prop="departName" label="部门" width="120" />
<el-table-column prop="userName" label="姓名" min-width="120" show-overflow-tooltip />
<el-table-column prop="workNum" label="工号" width="130" />
<el-table-column prop="departName" label="部门" width="140" />
<el-table-column prop="orgPath" label="组织路径" min-width="200" show-overflow-tooltip />
</el-table>
<div class="pagination">
@@ -244,7 +243,7 @@ export default {
type: 13,
deptIds: [],
groupIds: [],
studentList: this.selectedRows.map((e) => ({ id: e.userId })),
studentList: this.selectedRows.map((e) => ({ id: e.userId, realName: e.userName })),
}).then(() => {
this.$showMessage("添加成功", 'success');
this.$emit("confirm", this.selectedRows);