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
2f1a6bf7
Commit
2f1a6bf7
authored
Oct 18, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.文档库浏览不限制状态
parent
fd593700
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
4 deletions
+11
-4
ServiceHGWD002A.java
...java/com/baosight/hggp/hg/wd/service/ServiceHGWD002A.java
+7
-3
HGWD001.js
src/main/webapp/HG/WD/HGWD001.js
+2
-1
HGWD002A.js
src/main/webapp/HG/WD/HGWD002A.js
+1
-0
HGWD002A.jsp
src/main/webapp/HG/WD/HGWD002A.jsp
+1
-0
No files found.
src/main/java/com/baosight/hggp/hg/wd/service/ServiceHGWD002A.java
View file @
2f1a6bf7
...
...
@@ -51,11 +51,12 @@ public class ServiceHGWD002A extends ServiceEPBase {
try
{
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
String
fileId
=
MapUtils
.
getString
(
queryMap
,
HGWD001
.
FIELD_FILE_ID
);
String
source
=
MapUtils
.
getString
(
queryMap
,
"source"
);
String
node
=
MapUtils
.
getString
(
queryMap
,
CommonConstant
.
Field
.
NODE
);
if
(
CommonConstant
.
Field
.
ROOT
.
equals
(
node
)
||
CommonConstant
.
Field
.
ROOT2
.
equals
(
node
))
{
inInfo
.
addBlock
(
node
).
setRows
(
queryTopNode
(
node
,
fileId
));
}
else
{
inInfo
.
addBlock
(
node
).
setRows
(
queryChildNode
(
node
));
inInfo
.
addBlock
(
node
).
setRows
(
queryChildNode
(
node
,
source
));
}
}
catch
(
Exception
e
)
{
LogUtils
.
setMsg
(
inInfo
,
e
,
"查询节点失败"
);
...
...
@@ -89,9 +90,10 @@ public class ServiceHGWD002A extends ServiceEPBase {
* 查询叶子节点
*
* @param parentId
* @param source 1=文档库,2=文件浏览
* @return
*/
public
List
queryChildNode
(
String
parentId
)
{
public
List
queryChildNode
(
String
parentId
,
String
source
)
{
List
<
Map
>
results
=
new
ArrayList
();
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"fileId"
,
parentId
);
...
...
@@ -101,7 +103,9 @@ public class ServiceHGWD002A extends ServiceEPBase {
if
(!(
isSpare
||
HgWdUtils
.
HgWd009
.
isManager
()))
{
queryMap
.
put
(
"userId"
,
UserSessionUtils
.
getLoginName
());
}
queryMap
.
put
(
HGWD001
.
FIELD_STATUS
,
HgWdConstant
.
FileStatus
.
S_1
);
if
(!
"1"
.
equals
(
source
))
{
queryMap
.
put
(
HGWD001
.
FIELD_STATUS
,
HgWdConstant
.
FileStatus
.
S_1
);
}
queryMap
.
put
(
"orderBy"
,
"B.DOC_TYPE ASC, B.DOC_NAME ASC"
);
List
<
HGWD002
>
dbWd002s
=
dao
.
query
(
HGWD002
.
QUERY
,
queryMap
);
if
(
CollectionUtils
.
isEmpty
(
dbWd002s
))
{
...
...
src/main/webapp/HG/WD/HGWD001.js
View file @
2f1a6bf7
...
...
@@ -970,8 +970,9 @@ function saveProtFunc() {
* 预览
*/
let
preview
=
function
()
{
// source:1=文档库
let
fileId
=
IPLATUI
.
EFTree
.
categoryTree
.
selectTreeNode
.
fileId
;
let
url
=
"HGWD002A?inqu_status-0-fileId="
+
fileId
;
let
url
=
"HGWD002A?inqu_status-0-fileId="
+
fileId
+
"&inqu_status-0-source=1"
;
window
.
open
(
url
,
'_blank'
);
}
...
...
src/main/webapp/HG/WD/HGWD002A.js
View file @
2f1a6bf7
...
...
@@ -4,6 +4,7 @@ $(function () {
"docTree"
:
{
query
:
function
(
inInfo
,
model
)
{
inInfo
.
set
(
"inqu_status-0-fileId"
,
$
(
"#inqu_status-0-fileId"
).
val
());
inInfo
.
set
(
"inqu_status-0-source"
,
$
(
"#inqu_status-0-source"
).
val
());
return
inInfo
;
},
select
:
function
(
e
)
{
...
...
src/main/webapp/HG/WD/HGWD002A.jsp
View file @
2f1a6bf7
...
...
@@ -15,6 +15,7 @@
<div
class=
"col-md-3"
>
<EF:EFRegion
title=
"文件目录树"
id=
"tree"
fitHeight=
"true"
>
<EF:EFInput
ename=
"fileId"
cname=
"文件ID"
blockId=
"inqu_status"
row=
"0"
type=
"hidden"
/>
<EF:EFInput
ename=
"source"
cname=
"来源"
blockId=
"inqu_status"
row=
"0"
type=
"hidden"
/>
<div
id=
"menu"
style=
"margin-top: 12px; margin-bottom: 8px"
>
<EF:EFTree
bindId=
"docTree"
ename=
"node"
textField=
"text"
valueField=
"label"
hasChildren=
"leaf"
serviceName=
"HGWD002A"
methodName=
"queryTree"
expandLevel=
"1"
>
...
...
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