File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed
litemall-admin/src/views/sys Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 4
4
<!-- 查询和其他操作 -->
5
5
<div class =" filter-container" >
6
6
<el-input v-model =" listQuery.username" clearable class =" filter-item" style =" width : 200px ;" placeholder =" 请输入管理员名称" />
7
- <el-button class =" filter-item" type =" primary" icon =" el-icon-search" @click =" handleFilter" >查找</el-button >
8
- <el-button class =" filter-item" type =" primary" icon =" el-icon-edit" @click =" handleCreate" >添加</el-button >
7
+ <el-button v-permission = " ['GET /admin/admin/list'] " class =" filter-item" type =" primary" icon =" el-icon-search" @click =" handleFilter" >查找</el-button >
8
+ <el-button v-permission = " ['POST /admin/admin/create'] " class =" filter-item" type =" primary" icon =" el-icon-edit" @click =" handleCreate" >添加</el-button >
9
9
<el-button :loading =" downloadLoading" class =" filter-item" type =" primary" icon =" el-icon-download" @click =" handleDownload" >导出</el-button >
10
10
</div >
11
11
29
29
30
30
<el-table-column align =" center" label =" 操作" class-name =" small-padding fixed-width" >
31
31
<template slot-scope="scope">
32
- <el-button type =" primary" size =" mini" @click =" handleUpdate(scope.row)" >编辑</el-button >
33
- <el-button type =" danger" size =" mini" @click =" handleDelete(scope.row)" >删除</el-button >
32
+ <el-button v-permission = " ['POST /admin/admin/update'] " type =" primary" size =" mini" @click =" handleUpdate(scope.row)" >编辑</el-button >
33
+ <el-button v-permission = " ['POST /admin/admin/delete'] " type =" danger" size =" mini" @click =" handleDelete(scope.row)" >删除</el-button >
34
34
</template >
35
35
</el-table-column >
36
36
</el-table >
Original file line number Diff line number Diff line change 5
5
<div class =" filter-container" >
6
6
<el-input v-model =" listQuery.key" clearable class =" filter-item" style =" width : 200px ;" placeholder =" 请输入对象KEY" />
7
7
<el-input v-model =" listQuery.name" clearable class =" filter-item" style =" width : 200px ;" placeholder =" 请输入对象名称" />
8
- <el-button class =" filter-item" type =" primary" icon =" el-icon-search" @click =" handleFilter" >查找</el-button >
9
- <el-button class =" filter-item" type =" primary" icon =" el-icon-edit" @click =" handleCreate" >添加</el-button >
8
+ <el-button v-permission = " ['GET /admin/storage/list'] " class =" filter-item" type =" primary" icon =" el-icon-search" @click =" handleFilter" >查找</el-button >
9
+ <el-button v-permission = " ['POST /admin/storage/create'] " class =" filter-item" type =" primary" icon =" el-icon-edit" @click =" handleCreate" >添加</el-button >
10
10
<el-button :loading =" downloadLoading" class =" filter-item" type =" primary" icon =" el-icon-download" @click =" handleDownload" >导出</el-button >
11
11
</div >
12
12
31
31
32
32
<el-table-column align =" center" label =" 操作" width =" 200" class-name =" small-padding fixed-width" >
33
33
<template slot-scope="scope">
34
- <el-button type =" primary" size =" mini" @click =" handleUpdate(scope.row)" >编辑</el-button >
35
- <el-button type =" danger" size =" mini" @click =" handleDelete(scope.row)" >删除</el-button >
34
+ <el-button v-permission = " ['POST /admin/storage/update'] " type =" primary" size =" mini" @click =" handleUpdate(scope.row)" >编辑</el-button >
35
+ <el-button v-permission = " ['POST /admin/storage/delete'] " type =" danger" size =" mini" @click =" handleDelete(scope.row)" >删除</el-button >
36
36
</template >
37
37
</el-table-column >
38
38
</el-table >
Original file line number Diff line number Diff line change 4
4
<!-- 查询和其他操作 -->
5
5
<div class =" filter-container" >
6
6
<el-input v-model =" listQuery.rolename" clearable class =" filter-item" style =" width : 200px ;" placeholder =" 请输入角色名称" />
7
- <el-button class =" filter-item" type =" primary" icon =" el-icon-search" @click =" handleFilter" >查找</el-button >
8
- <el-button class =" filter-item" type =" primary" icon =" el-icon-edit" @click =" handleCreate" >添加</el-button >
7
+ <el-button v-permission = " ['GET /admin/role/list'] " class =" filter-item" type =" primary" icon =" el-icon-search" @click =" handleFilter" >查找</el-button >
8
+ <el-button v-permission = " ['POST /admin/role/create'] " class =" filter-item" type =" primary" icon =" el-icon-edit" @click =" handleCreate" >添加</el-button >
9
9
</div >
10
10
11
11
<!-- 查询结果 -->
16
16
17
17
<el-table-column align =" center" label =" 操作" class-name =" small-padding fixed-width" >
18
18
<template slot-scope="scope">
19
- <el-button type =" primary" size =" mini" @click =" handleUpdate(scope.row)" >编辑</el-button >
20
- <el-button type =" danger" size =" mini" @click =" handleDelete(scope.row)" >删除</el-button >
21
- <el-button type =" primary" size =" mini" @click =" handlePermission(scope.row)" >授权</el-button >
19
+ <el-button v-permission = " ['POST /admin/role/update'] " type =" primary" size =" mini" @click =" handleUpdate(scope.row)" >编辑</el-button >
20
+ <el-button v-permission = " ['POST /admin/role/delete'] " type =" danger" size =" mini" @click =" handleDelete(scope.row)" >删除</el-button >
21
+ <el-button v-permission = " ['GET /admin/role/permissions'] " type =" primary" size =" mini" @click =" handlePermission(scope.row)" >授权</el-button >
22
22
</template >
23
23
</el-table-column >
24
24
</el-table >
You can’t perform that action at this time.
0 commit comments