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 44 <!-- 查询和其他操作 -->
55 <div class =" filter-container" >
66 <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 >
99 <el-button :loading =" downloadLoading" class =" filter-item" type =" primary" icon =" el-icon-download" @click =" handleDownload" >导出</el-button >
1010 </div >
1111
2929
3030 <el-table-column align =" center" label =" 操作" class-name =" small-padding fixed-width" >
3131 <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 >
3434 </template >
3535 </el-table-column >
3636 </el-table >
Original file line number Diff line number Diff line change 55 <div class =" filter-container" >
66 <el-input v-model =" listQuery.key" clearable class =" filter-item" style =" width : 200px ;" placeholder =" 请输入对象KEY" />
77 <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 >
1010 <el-button :loading =" downloadLoading" class =" filter-item" type =" primary" icon =" el-icon-download" @click =" handleDownload" >导出</el-button >
1111 </div >
1212
3131
3232 <el-table-column align =" center" label =" 操作" width =" 200" class-name =" small-padding fixed-width" >
3333 <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 >
3636 </template >
3737 </el-table-column >
3838 </el-table >
Original file line number Diff line number Diff line change 44 <!-- 查询和其他操作 -->
55 <div class =" filter-container" >
66 <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 >
99 </div >
1010
1111 <!-- 查询结果 -->
1616
1717 <el-table-column align =" center" label =" 操作" class-name =" small-padding fixed-width" >
1818 <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 >
2222 </template >
2323 </el-table-column >
2424 </el-table >
You can’t perform that action at this time.
0 commit comments