1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-05 23:11: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"
@@ -111,7 +111,7 @@ export default {
if (response.code === DATABASE_SELECT_OK) {
const roles = response.data
for (const role of roles) {
role.customColumn = []
role.customColumn_1 = []
const menus = role.menus
const elements = role.elements
const operations = role.operations
@@ -133,7 +133,7 @@ export default {
_.forEach(element.operations, (value) => {
operas.push(value.name)
})
role.customColumn.push(
role.customColumn_1.push(
`${menu.name}/${element.name}/${_.join(operas, ';')}`
)
}