Toggle navigation
Toggle navigation
This project
Loading...
Sign in
monitor_v3
/
hg-monitor-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
鲁尚清
3 years ago
Commit
9710eec64aaeb29eaccaacbac3649472da25e313
2 parents
5723f5fd
2cb90ea2
Merge branch 'master' of
http://192.168.1.136:82/monitor_v3/hg-monitor-web
into …
…master-v32-lushangqing
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/document/index.js
hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/userright/index.js
hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/document/index.js
View file @
9710eec
...
...
@@ -594,12 +594,11 @@ export default {
if
(
arr
.
length
==
1
)
{
// 查询文件的权限
proxy
.
$http
.
get
(
`
/
inspection
-
report
/
doc
/
doc
/
auth
/
getGrant
`
,
{
docId
:
arr
[
0
].
id
},
function
(
res
)
{
proxy
.
$http
.
get
(
`
/
inspection
-
report
/
file
/
auth
/
getGrant
`
,
{
docId
:
arr
[
0
].
id
},
function
(
res
)
{
if
(
res
&&
res
.
code
==
0
)
{
// {roleIds: ["1"], usernames: ["admin"]}
let
map
=
res
.
map
;
if
(
map
)
{
let
all
=
res
.
map
.
roleIds
.
concat
(
res
.
map
.
usernames
)
;
let
all
=
map
.
allIds
;
userFileRight
.
value
=
all
;
}
}
...
...
hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/userright/index.js
View file @
9710eec
...
...
@@ -210,12 +210,12 @@ export default {
let
getUser
=
()
=>
{
let
arr
=
allArr
.
value
;
if
(
!
arr
||
arr
.
length
==
0
)
{
proxy
.
$global
.
showMsg
(
"您没有选择用户!"
,
"warning"
)
return
;
}
// Start Wang 2021/12/28 19:46 删除非空验证,考虑授权时,取消授权,需要清空授权数据
// if (!arr || arr.length == 0) {
// proxy.$global.showMsg("您没有选择用户!", "warning")
// return;
// }
// End Wang 2021/12/28 19:46
let
user
=
[];
let
role
=
[];
...
...
Please
register
or
login
to post a comment