Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-operation-4
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
达摩4.0重构
haoban-operation-4
Commits
25d62bd5
Commit
25d62bd5
authored
Aug 06, 2020
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口联调
parent
224575bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
permission-list.vue
src/views/permission/permission-list.vue
+4
-4
No files found.
src/views/permission/permission-list.vue
View file @
25d62bd5
...
...
@@ -5,7 +5,7 @@
</div>
<el-table
style=
"margin-top: 20px"
:data=
"authList"
>
<el-table-column
label=
"权限名称"
prop=
"authItemName"
:formatter=
"(row, col, val) => val || '--'"
></el-table-column>
<el-table-column
label=
"包含操作项"
prop=
"operationItem
Names"
:formatter=
"(row, col, val) => val
|| '--'"
></el-table-column>
<el-table-column
label=
"包含操作项"
prop=
"operationItem
Count"
:formatter=
"(row, col, val) => val + '个'
|| '--'"
></el-table-column>
<el-table-column
label=
"操作"
>
<template
slot-scope=
"
{ row }">
<el-button
type=
"text"
@
click=
"onEditAuthOpen(row)"
>
编辑
</el-button>
...
...
@@ -27,7 +27,7 @@
</el-form-item>
<el-form-item
label=
"包含操作项"
prop=
"operationItemIds"
>
<el-select
v-model=
"editAuth.operationItemIds"
collapse-tags
multiple
clearable
style=
"width:332px"
>
<el-option
v-for=
"el in operationList"
:key=
"el.operationItemId"
:value=
"el.operationItemId
+ ''
"
:label=
"el.operationItemName"
></el-option>
<el-option
v-for=
"el in operationList"
:key=
"el.operationItemId"
:value=
"el.operationItemId"
:label=
"el.operationItemName"
></el-option>
</el-select>
<el-button
type=
"text"
style=
"margin-left: 24px"
@
click=
"toOperationList"
>
添加操作项
</el-button>
</el-form-item>
...
...
@@ -112,10 +112,10 @@ export default {
},
// 编辑权限项弹窗打开
onEditAuthOpen
(
authData
)
{
const
{
authItemId
,
authItemName
,
operationItem
Ids
}
=
authData
;
const
{
authItemId
,
authItemName
,
operationItem
List
}
=
authData
;
Object
.
assign
(
this
.
editAuth
,
{
show
:
true
,
operationItemIds
:
typeof
operationItemIds
==
'string'
&&
operationItemIds
.
length
>
0
?
operationItemIds
.
split
(
','
)
:
[],
operationItemIds
:
Array
.
isArray
(
operationItemList
)
?
operationItemList
.
map
(
el
=>
el
.
operationItemId
)
:
[],
authItemId
,
authItemName
,
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment