Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fk-spider-web
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
周田
fk-spider-web
Commits
cffcb5ba
Commit
cffcb5ba
authored
Jan 28, 2026
by
周田
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'liucan' into 'main'
feat:用户管理关闭非管理员用户的创建、删除用户权限 See merge request
!33
parents
995abc27
bc7cb783
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
index.vue
src/views/os-system/index.vue
+15
-3
No files found.
src/views/os-system/index.vue
View file @
cffcb5ba
...
...
@@ -3,10 +3,17 @@
<MenuTitle
title=
"系统管理"
subtitle=
"System Manager"
/>
<el-card>
<div
class=
"btns"
>
<el-button
test-element=
"userSystem-AddUser"
type=
"primary"
plain
@
click=
"openAddUserDialog"
<el-button
test-element=
"userSystem-AddUser"
type=
"primary"
v-if=
"uRole === UserRole.ADMIN"
plain
@
click=
"openAddUserDialog"
>
创建用户
</el-button
>
<el-button
type=
"danger"
plain
@
click=
"handleBatchDelete"
class=
""
>
批量删除
</el-button>
<el-button
type=
"danger"
plain
@
click=
"handleBatchDelete"
class=
""
v-if=
"uRole === UserRole.ADMIN"
>
批量删除
</el-button
>
</div>
</el-card>
<div
class=
"table-content"
>
...
...
@@ -20,7 +27,12 @@
v-loading="tableLoading"
element-loading-background="rgba(48, 65, 86, 0.7)"
>
<el-table-column
type=
"selection"
width=
"40"
/>
<el-table-column
type=
"selection"
width=
"40"
:selectable=
"() => uRole === UserRole.ADMIN"
v-if=
"uRole === UserRole.ADMIN"
/>
<el-table-column
property=
"number"
label=
"序号"
width=
"55"
type=
"index"
/>
<el-table-column
property=
"username"
label=
"用户账号"
show-overflow-tooltip
/>
<el-table-column
property=
"nickname"
label=
"用户名称"
show-overflow-tooltip
/>
...
...
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