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
ace1bbc2
Commit
ace1bbc2
authored
Sep 23, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-09-23 页数最大调整为500,列表显示版本号、最后修改时间,表格列支持排序,增加预览功能,查询条件增加修改时间
parent
3eab31b3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
5 deletions
+32
-5
HGWD099.xml
src/main/java/com/baosight/hggp/hg/wd/sql/HGWD099.xml
+3
-0
HGWD001.js
src/main/webapp/HG/WD/HGWD001.js
+20
-2
HGWD001.jsp
src/main/webapp/HG/WD/HGWD001.jsp
+8
-2
HGWD002.js
src/main/webapp/HG/WD/HGWD002.js
+1
-1
No files found.
src/main/java/com/baosight/hggp/hg/wd/sql/HGWD099.xml
View file @
ace1bbc2
...
...
@@ -66,6 +66,9 @@
<isNotEmpty
prepend=
" AND "
property=
"operStatus"
>
OPER_STATUS = #operStatus#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedTime"
>
LEFT(UPDATED_TIME,8) = replace(#updatedTime#,'-','')
</isNotEmpty>
</sql>
<sql
id=
"customCondition"
>
...
...
src/main/webapp/HG/WD/HGWD001.js
View file @
ace1bbc2
...
...
@@ -401,7 +401,8 @@ $(function () {
IPLATUI
.
EFGrid
=
{
"result"
:
{
pageable
:
{
pageSize
:
20
pageSize
:
20
,
pageSizes
:
[
20
,
50
,
100
,
200
,
500
],
},
loadComplete
:
function
(
grid
)
{
...
...
@@ -474,6 +475,8 @@ $(function () {
$
(
"#CHANGE_RECORD"
).
on
(
"click"
,
changeResord
);
// 复制附件
$
(
"#COPY_FILE"
).
on
(
"click"
,
copyFile
);
// 预览
$
(
"#PREVIEW"
).
on
(
"click"
,
preview
);
},
onDelete
:
function
(
e
)
{
// 阻止默认请求,使用自定义删除
...
...
@@ -492,6 +495,11 @@ $(function () {
+
'onclick="changeFile(
\'
'
+
item
.
docId
+
'
\'
,
\'
'
+
item
.
bizId
+
'
\'
)" target="_blank">附件变更</a>'
;
return
template
;
}
},
{
field
:
"docVersion"
,
template
:
function
(
model
)
{
return
"v"
+
model
.
docVersion
;
}
}
],
},
...
...
@@ -655,7 +663,7 @@ const selectTreeNode = (tree, treeOrgId) => {
* @param nodeData
*/
let
setTreeNodeValue
=
function
(
nodeData
)
{
IPLATUI
.
EFTree
.
categoryTree
.
selectTreeNode
.
fileId
=
nodeData
.
label
;
IPLATUI
.
EFTree
.
categoryTree
.
selectTreeNode
.
fileId
=
nodeData
.
id
;
IPLATUI
.
EFTree
.
categoryTree
.
selectTreeNode
.
parentId
=
nodeData
.
parentId
;
IPLATUI
.
EFTree
.
categoryTree
.
selectTreeNode
.
fileName
=
nodeData
.
text
;
IPLATUI
.
EFTree
.
categoryTree
.
selectTreeNode
.
companyCode
=
nodeData
.
companyCode
;
...
...
@@ -906,4 +914,13 @@ function saveFunc() {
});
}
})
}
/**
* 预览
*/
let
preview
=
function
()
{
let
fileId
=
IPLATUI
.
EFTree
.
categoryTree
.
selectTreeNode
.
fileId
;
let
url
=
"HGWD002A?inqu_status-0-fileId="
+
fileId
;
window
.
open
(
url
,
'_blank'
);
}
\ No newline at end of file
src/main/webapp/HG/WD/HGWD001.jsp
View file @
ace1bbc2
...
...
@@ -62,16 +62,19 @@
<EF:EFInput
cname=
"登录用户"
ename=
"userId"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
value=
"${loginName}"
type=
"hidden"
/>
<EF:EFInput
cname=
"业务类型"
ename=
"bizType"
blockId=
"inqu_status"
row=
"0"
type=
"hidden"
value=
"WD"
/>
<EF:EFInput
cname=
"文件名称"
ename=
"docName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
<EF:EFDatePicker
blockId=
"inqu_status"
row=
"0"
ename=
"updatedTime"
cname=
"修改时间"
role=
"date"
format=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
colWidth=
"3"
/>
</div>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"明细信息"
fitHeight=
"true"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"no"
personal=
"true"
serviceName=
"HGWD099"
queryMethod=
"query"
<EF:EFGrid
blockId=
"result"
autoDraw=
"no"
personal=
"true"
s
ort=
"all"
s
erviceName=
"HGWD099"
queryMethod=
"query"
deleteMethod=
"delete"
>
<EF:EFColumn
ename=
"id"
cname=
"ID"
hidden=
"true"
/>
<EF:EFColumn
ename=
"docId"
cname=
"文件ID"
enable=
"false"
width=
"180"
hidden=
"true"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
enable=
"false"
width=
"140"
align=
"center"
sort=
"false"
/>
<EF:EFColumn
ename=
"docName"
cname=
"文件名称"
enable=
"false"
width=
"180"
/>
<EF:EFColumn
ename=
"docType"
cname=
"文件类型"
enable=
"false"
width=
"110"
align=
"center"
/>
<EF:EFColumn
ename=
"docVersion"
cname=
"版本号"
enable=
"false"
width=
"90"
align=
"center"
sort=
"true"
/>
<EF:EFComboColumn
ename=
"status"
cname=
"状态"
enable=
"false"
width=
"100"
align=
"center"
defaultValue=
"0"
hidden=
"false"
>
<EF:EFCodeOption
codeName=
"hggp.hgwd.status"
/>
...
...
@@ -79,6 +82,9 @@
<EF:EFColumn
ename=
"createdTime"
cname=
"创建时间"
enable=
"false"
width=
"140"
align=
"center"
parseFormats=
"['yyyyMMddHHmmss']"
editType=
"datetime"
dateFormat=
"yyyy-MM-dd HH:mm:ss"
/>
<EF:EFColumn
ename=
"updatedTime"
cname=
"修改时间"
enable=
"false"
width=
"140"
align=
"center"
parseFormats=
"['yyyyMMddHHmmss']"
editType=
"datetime"
dateFormat=
"yyyy-MM-dd HH:mm:ss"
/>
</EF:EFGrid>
</EF:EFRegion>
</div>
...
...
src/main/webapp/HG/WD/HGWD002.js
View file @
ace1bbc2
...
...
@@ -258,7 +258,7 @@ let showDownloadRecord = function (fileId, docId) {
* 预览
*/
let
preview
=
function
()
{
let
url
=
"HGWD002A?inqu_status-0-fileId"
+
$
(
"#inqu_status-0-fileId"
).
val
();
let
url
=
"HGWD002A?inqu_status-0-fileId
=
"
+
$
(
"#inqu_status-0-fileId"
).
val
();
window
.
open
(
url
,
'_blank'
);
// let params = {
// "inqu_status-0-fileId": $("#inqu_status-0-fileId").val()
...
...
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