Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9cb37853
authored
Aug 26, 2022
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复删除用户检测
1 parent
90e8b8b1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
src/views/user/index.vue
src/views/user/index.vue
View file @
9cb3785
...
@@ -404,7 +404,7 @@ export default {
...
@@ -404,7 +404,7 @@ export default {
// 组织架构节点
// 组织架构节点
handleNodeClick
(
data
)
{
handleNodeClick
(
data
)
{
this
.
searchForm
.
departmentId
=
data
.
id
;
this
.
searchForm
.
departmentId
=
data
.
id
;
this
.
$refs
.
userTable
.
handleCurrentChange
(
1
)
this
.
$refs
.
userTable
.
handleCurrentChange
(
1
)
;
// this.$refs.userTable.refreshTable();
// this.$refs.userTable.refreshTable();
},
},
// 树节点内容区的渲染
// 树节点内容区的渲染
...
@@ -509,7 +509,7 @@ export default {
...
@@ -509,7 +509,7 @@ export default {
async
deleteEvent
(
id
)
{
async
deleteEvent
(
id
)
{
const
that
=
this
;
const
that
=
this
;
let
res
=
await
JUDGE_USER_BINDVEHICLE
({
userId
:
id
});
let
res
=
await
JUDGE_USER_BINDVEHICLE
({
userId
:
id
,
types
:
[
1
]
});
// true:可以删除,false:不能删除用户
// true:可以删除,false:不能删除用户
if
(
!
res
.
data
)
{
if
(
!
res
.
data
)
{
showModal
({
showModal
({
...
@@ -738,12 +738,6 @@ export default {
...
@@ -738,12 +738,6 @@ export default {
this
.
$refs
.
assignInfo
.
saveInfo
();
this
.
$refs
.
assignInfo
.
saveInfo
();
},
},
// 判断用户是否绑定车辆
async
judgeUser
(
id
)
{
let
res
=
await
JUDGE_USER_BINDVEHICLE
({
userId
:
id
});
if
(
res
.
code
==
200
)
{
}
},
},
},
};
};
</
script
>
</
script
>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment