1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-06 07:21:24 +08:00

Added a new column in CommonTable

This commit is contained in:
2023-05-16 18:22:57 +08:00
parent 0371eff3c9
commit 6cd9266b09
3 changed files with 23 additions and 10 deletions

View File

@@ -19,7 +19,7 @@
:table-loading="tableLoading"
@onEdit="handleEdit"
@onDelete="handleDelete"
customColumnLabel="角色"
custom-column-label_1="角色"
/>
<el-dialog
:title="dialogTitle"
@@ -104,10 +104,10 @@ export default {
if (response.code === DATABASE_SELECT_OK) {
const groups = response.data
for (const group of groups) {
group.customColumn = []
group.customColumn_1 = []
const roles = group.roles
for (const role of roles) {
group.customColumn.push(role.name)
group.customColumn_1.push(role.name)
}
}
this.groupTable = groups