Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-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
hp-smart
Commits
cd66ddf2
Commit
cd66ddf2
authored
Oct 29, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.文档库授权文档授权回显目录状态
parent
c335bfa4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
33 deletions
+13
-33
HPWD001.js
src/main/webapp/HP/WD/HPWD001.js
+3
-1
HPWD001H.js
src/main/webapp/HP/WD/HPWD001H.js
+10
-32
No files found.
src/main/webapp/HP/WD/HPWD001.js
View file @
cd66ddf2
...
...
@@ -312,7 +312,9 @@ $(function () {
title
:
"<div style='text-align: center;'>文档权限管理</div>"
,
width
:
"90%"
,
height
:
"90%"
,
callbackName
:
editCallback
callbackName
:
function
()
{
editCallback
(
$
(
"#inqu_status-0-orgParentId"
).
val
());
}
});
})
...
...
src/main/webapp/HP/WD/HPWD001H.js
View file @
cd66ddf2
...
...
@@ -64,8 +64,7 @@ let save = function () {
function
(
e
)
{
var
status
=
e
.
status
;
if
(
status
!==
-
1
)
{
let
fileId
=
$
(
"#inqu_status-0-fileId"
).
val
();
parent
.
JSColorbox
.
setValueCallback
(
fileId
);
parent
.
JSColorbox
.
setValueCallback
();
}
});
}
...
...
@@ -98,7 +97,6 @@ let auth = function () {
* 授权回调
*/
let
authCallback
=
function
(
res
)
{
parent
.
JSColorbox
.
setValueCallback
();
// 刷新页面
query
();
...
...
@@ -119,9 +117,14 @@ let removeUser = function () {
}
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
取消授权用户
\"
操作? "
,
{
ok
:
function
()
{
JSUtils
.
submitGridsData
(
"result"
,
"HPWD003"
,
"removeUser"
,
true
);
JSUtils
.
submitGridsData
(
"result"
,
"HPWD003"
,
"removeUser"
,
true
,
function
(
e
)
{
var
status
=
e
.
status
;
if
(
status
!==
-
1
)
{
parent
.
JSColorbox
.
setValueCallback
();
}
}
)
}
});
}
...
...
@@ -152,7 +155,7 @@ let copyUser = function () {
* 授权回调
*/
let
copyUserCallback
=
function
(
res
)
{
parent
.
JSColorbox
.
setValueCallback
();
}
/**
...
...
@@ -201,28 +204,4 @@ let showAuthButton = function () {
}
}
},
{
async
:
false
})
EiCommunicator
.
send
(
'HPWD001'
,
'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"
);
}
});
}
\ No newline at end of file
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