Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
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
platform
hg-smart
Commits
56e5b50c
Commit
56e5b50c
authored
Oct 29, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.文档库文档权限管理按钮添加权限过滤
parent
a497ce0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
HGWD001H.js
src/main/webapp/HG/WD/HGWD001H.js
+41
-0
No files found.
src/main/webapp/HG/WD/HGWD001H.js
View file @
56e5b50c
...
@@ -34,6 +34,8 @@ $(function () {
...
@@ -34,6 +34,8 @@ $(function () {
$
(
window
).
load
(
function
()
{
$
(
window
).
load
(
function
()
{
// 查询
// 查询
query
();
query
();
showAuthButton
();
});
});
/**
/**
...
@@ -164,3 +166,42 @@ let checkSelectMain = function () {
...
@@ -164,3 +166,42 @@ let checkSelectMain = function () {
}
}
return
true
;
return
true
;
}
}
/**
* 显示授权按钮
*/
let
showAuthButton
=
function
()
{
let
label
=
IPLAT
.
EFInput
.
value
(
$
(
"#inqu_status-0-fileId"
))
// C:目录
$
(
"#SAVE"
).
hide
();
$
(
"#AUTH"
).
hide
();
$
(
"#REMOVE_USER"
).
hide
();
$
(
"#COPY_USER"
).
hide
();
// 管理员或者是项目经理,才能进行授权和操作用户
let
inInfo
=
new
EiInfo
();
inInfo
.
set
(
"inqu_status-0-fileId"
,
label
);
EiCommunicator
.
send
(
'HGWD003'
,
'isProjectManager'
,
inInfo
,
{
onSuccess
:
function
(
res
)
{
let
status
=
res
.
getStatus
();
if
(
status
>=
0
&&
res
.
extAttr
.
isManager
==
1
)
{
$
(
"#AUTH"
).
show
();
$
(
"#REMOVE_USER"
).
show
();
$
(
"#COPY_USER"
).
show
();
$
(
"#SAVE"
).
show
();
}
else
if
(
status
>=
0
&&
res
.
extAttr
.
isProjectManager
==
1
)
{
$
(
"#AUTH"
).
show
();
$
(
"#REMOVE_USER"
).
show
();
$
(
"#COPY_USER"
).
show
();
$
(
"#SAVE"
).
hide
();
}
else
{
$
(
"#SAVE"
).
hide
();
$
(
"#AUTH"
).
hide
();
$
(
"#REMOVE_USER"
).
hide
();
$
(
"#COPY_USER"
).
hide
();
}
},
onFail
:
function
(
res
)
{
NotificationUtil
(
"操作失败,原因["
+
res
.
getMsg
()
+
"]"
,
"error"
);
}
});
}
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