feat(post): list name link and show bound user names

Enrich post list with boundUserNames and open view dialog from the name column.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-08-05 14:33:52 +08:00
1 parent 45ada351ba
commit 3e60ed56f0
4 files changed
+109 -4

No files matched your search

+1
View File
@@ -470,6 +470,7 @@ declare namespace Api {
tenantNo: string
orderNum: number
remark: string
boundUserNames?: string[]
createTime: string
updateTime: string
}
+31 -1
View File
@@ -72,7 +72,13 @@
min-width="140"
align="center"
header-align="center"
/>
>
<template #default="{ row }">
<el-button link type="primary" @click="handleView(row)">
{{ row.postName || '-' }}
</el-button>
</template>
</el-table-column>
<el-table-column
prop="postCode"
label="职位编码"
@@ -80,6 +86,20 @@
align="center"
header-align="center"
/>
<el-table-column
label="关联人员"
min-width="180"
align="center"
header-align="center"
>
<template #default="{ row }">
<span class="post-bound-users-cell">{{
(row.boundUserNames || []).length
? (row.boundUserNames || []).join('、')
: '—'
}}</span>
</template>
</el-table-column>
<el-table-column
prop="status"
label="状态"
@@ -712,6 +732,7 @@
try {
await fetchUpdatePostBoundUsers(postBindPostId.value, [...postBindUserCheckedKeys.value])
postBindDialogVisible.value = false
await loadData()
} finally {
postBindSubmitLoading.value = false
}
@@ -865,6 +886,15 @@
</script>
<style scoped lang="scss">
.post-bound-users-cell {
display: inline-block;
max-width: 100%;
white-space: normal;
word-break: break-word;
line-height: 1.45;
text-align: center;
}
.post-dialog-form {
:deep(.el-form-item) {
margin-bottom: 0;