Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ai-yunshou-vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
AI云守
ai-yunshou-vue
Commits
9041e125
Commit
9041e125
authored
Sep 18, 2024
by
胡占生
🇨🇳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 用户管理 报错修复,路由跳转问题
parent
05207984
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
6 deletions
+14
-6
src/api/system/dept.js
src/api/system/dept.js
+8
-0
src/views/system/role/authUser.vue
src/views/system/role/authUser.vue
+1
-1
src/views/system/role/index.vue
src/views/system/role/index.vue
+2
-2
src/views/system/user/authRole.vue
src/views/system/user/authRole.vue
+1
-1
src/views/system/user/index.vue
src/views/system/user/index.vue
+2
-2
No files found.
src/api/system/dept.js
View file @
9041e125
import
request
from
'
@/utils/request
'
// 查询部门列表
export
function
treeListDept
(
query
)
{
return
request
({
url
:
'
/system/dept/treeselect
'
,
method
:
'
get
'
,
params
:
query
})
}
// 查询部门列表
export
function
listDept
(
query
)
{
return
request
({
...
...
src/views/system/role/authUser.vue
View file @
9041e125
...
...
@@ -126,7 +126,7 @@ function getList() {
/** 返回按钮 */
function
handleClose
()
{
const
obj
=
{
path
:
"
/
system
/role
"
};
const
obj
=
{
path
:
"
/
userControl
/role
"
};
proxy
.
$tab
.
closeOpenPage
(
obj
);
}
...
...
src/views/system/role/index.vue
View file @
9041e125
...
...
@@ -121,9 +121,9 @@
<el-tooltip
content=
"删除"
placement=
"top"
v-if=
"scope.row.roleId !== 1"
>
<el-button
link
type=
"primary"
icon=
"Delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['system:role:remove']"
></el-button>
</el-tooltip>
<el-tooltip
content=
"数据权限"
placement=
"top"
v-if=
"scope.row.roleId !== 1"
>
<
!--
<
el-tooltip
content=
"数据权限"
placement=
"top"
v-if=
"scope.row.roleId !== 1"
>
<el-button
link
type=
"primary"
icon=
"CircleCheck"
@
click=
"handleDataScope(scope.row)"
v-hasPermi=
"['system:role:edit']"
></el-button>
</el-tooltip>
</el-tooltip>
-->
<el-tooltip
content=
"分配用户"
placement=
"top"
v-if=
"scope.row.roleId !== 1"
>
<el-button
link
type=
"primary"
icon=
"User"
@
click=
"handleAuthUser(scope.row)"
v-hasPermi=
"['system:role:edit']"
></el-button>
</el-tooltip>
...
...
src/views/system/user/authRole.vue
View file @
9041e125
...
...
@@ -80,7 +80,7 @@ function getRowKey(row) {
/** 关闭按钮 */
function
close
()
{
const
obj
=
{
path
:
"
/
system
/user
"
};
const
obj
=
{
path
:
"
/
userControl
/user
"
};
proxy
.
$tab
.
closeOpenPage
(
obj
);
};
...
...
src/views/system/user/index.vue
View file @
9041e125
...
...
@@ -332,7 +332,7 @@
<
script
setup
name=
"User"
>
import
{
getToken
}
from
"
@/utils/auth
"
;
import
{
changeUserStatus
,
listUser
,
resetUserPwd
,
delUser
,
getUser
,
updateUser
,
addUser
,
deptTreeSelect
}
from
"
@/api/system/user
"
;
import
{
treeListDept
}
from
"
@/api/system/dept
"
;
const
router
=
useRouter
();
const
{
proxy
}
=
getCurrentInstance
();
const
{
sys_normal_disable
,
sys_user_sex
}
=
proxy
.
useDict
(
"
sys_normal_disable
"
,
"
sys_user_sex
"
);
...
...
@@ -412,7 +412,7 @@ watch(deptName, val => {
/** 查询部门下拉树结构 */
function
getDeptTree
()
{
deptTreeSelec
t
().
then
(
response
=>
{
treeListDep
t
().
then
(
response
=>
{
deptOptions
.
value
=
response
.
data
;
});
};
...
...
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