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 4a50c96b
authored
Jul 08, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改验证
1 parent
9641032f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/views/role/index.vue
src/views/role/index.vue
View file @
4a50c96
...
@@ -179,14 +179,14 @@ export default {
...
@@ -179,14 +179,14 @@ export default {
}
}
};
};
var
checkRoleVisibility
=
(
rule
,
value
,
callBack
)
=>
{
var
checkRoleVisibility
=
(
rule
,
value
,
callBack
)
=>
{
if
(
value
&&
value
==
2
)
{
if
(
value
&&
value
==
2
&&
this
.
roleForm
.
roleTenants
.
length
==
0
)
{
return
callBack
(
new
Error
(
"请选择指定租户"
));
return
callBack
(
new
Error
(
"请选择指定租户"
));
}
else
{
}
else
{
return
callBack
();
return
callBack
();
}
}
};
};
var
checkRolePermissionType
=
(
rule
,
value
,
callBack
)
=>
{
var
checkRolePermissionType
=
(
rule
,
value
,
callBack
)
=>
{
if
(
value
&&
value
==
6
)
{
if
(
value
&&
value
==
6
&&
this
.
roleForm
.
permTenants
.
length
==
0
)
{
return
callBack
(
new
Error
(
"请选择指定数据权限"
));
return
callBack
(
new
Error
(
"请选择指定数据权限"
));
}
else
{
}
else
{
return
callBack
();
return
callBack
();
...
...
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