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
6f6d69b1
Commit
6f6d69b1
authored
Oct 11, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.处理重复查询问题
parent
43ecb29c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
9 deletions
+18
-9
ServiceHGWD002.java
.../java/com/baosight/hggp/hg/wd/service/ServiceHGWD002.java
+7
-0
HGWD002.js
src/main/webapp/HG/WD/HGWD002.js
+9
-7
HGWD002.jsp
src/main/webapp/HG/WD/HGWD002.jsp
+2
-2
No files found.
src/main/java/com/baosight/hggp/hg/wd/service/ServiceHGWD002.java
View file @
6f6d69b1
...
...
@@ -11,6 +11,8 @@ import com.baosight.hggp.hg.xs.domain.User;
import
com.baosight.hggp.util.CommonMethod
;
import
com.baosight.hggp.util.EiInfoUtils
;
import
com.baosight.hggp.util.LogUtils
;
import
com.baosight.hggp.util.MapUtils
;
import
com.baosight.hggp.util.StringUtils
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
...
...
@@ -53,6 +55,11 @@ public class ServiceHGWD002 extends ServiceBase {
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
Map
queryRow
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
// 未选择文件目录时,返回空
String
fileId
=
MapUtils
.
getString
(
queryRow
,
HGWD001
.
FIELD_FILE_ID
);
if
(
StringUtils
.
isBlank
(
fileId
))
{
return
inInfo
;
}
// 仅查询已发布的文件
queryRow
.
put
(
HGWD001
.
FIELD_STATUS
,
HgWdConstant
.
FileStatus
.
S_1
);
// 管理员不做权限验证
...
...
src/main/webapp/HG/WD/HGWD002.js
View file @
6f6d69b1
...
...
@@ -11,10 +11,7 @@ $(function () {
// 显示授权按钮
showAuthButton
();
},
1000
);
// 查询
$
(
"#QUERY"
).
on
(
"click"
,
function
(
e
)
{
resultGrid
.
dataSource
.
page
(
1
);
});
// 分割线组件
(
function
()
{
splitter
=
$
(
"#splitter"
).
kendoSplitter
({
...
...
@@ -161,7 +158,7 @@ $(function () {
"result"
:
{
exportGrid
:
false
,
// 隐藏右侧自定义导出按钮
pageable
:
{
pageSize
:
50
,
pageSize
:
50
0
,
pageSizes
:
[
20
,
50
,
100
,
200
,
500
],
},
columns
:
[{
...
...
@@ -213,15 +210,20 @@ $(function () {
*/
$
(
window
).
load
(
function
()
{
// 查询
//query();
//
query();
// 按键事件
downKeyUp
();
//
downKeyUp();
});
/**
* 查询
*/
let
query
=
function
()
{
let
fileId
=
$
(
"#inqu_status-0-fileId"
).
val
();
if
(
isBlank
(
fileId
))
{
message
(
"请选择文件目录,再进行查询"
);
return
;
}
resultGrid
.
dataSource
.
page
(
1
);
}
...
...
src/main/webapp/HG/WD/HGWD002.jsp
View file @
6f6d69b1
...
...
@@ -45,8 +45,8 @@
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"明细信息"
fitHeight=
"true"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
showCount=
"true"
height=
"73vh"
queryMethod=
"query
"
sort=
"setted"
checkMode=
"row"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
showCount=
"true"
height=
"73vh"
sort=
"setted
"
checkMode=
"row"
>
<EF:EFColumn
ename=
"id"
cname=
"ID"
hidden=
"true"
/>
<EF:EFColumn
ename=
"fileId"
cname=
"ID"
hidden=
"true"
/>
<EF:EFColumn
ename=
"docId"
cname=
"文件ID"
enable=
"false"
width=
"120"
align=
"center"
sort=
"false"
...
...
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