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
68bc28ec
Commit
68bc28ec
authored
Oct 24, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.文档库页面增加预览
parent
7d179daf
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
9 deletions
+25
-9
HGWD001.js
src/main/webapp/HG/WD/HGWD001.js
+19
-4
HGWD001.jsp
src/main/webapp/HG/WD/HGWD001.jsp
+3
-1
HGWD002.js
src/main/webapp/HG/WD/HGWD002.js
+3
-4
No files found.
src/main/webapp/HG/WD/HGWD001.js
View file @
68bc28ec
...
...
@@ -480,15 +480,18 @@ $(function () {
// 阻止默认请求,使用自定义删除
e
.
preventDefault
();
deleteFunc
();
},
columns
:
[{
},
columns
:
[{
field
:
"operator"
,
title
:
"操作"
,
readonly
:
true
,
template
:
function
(
item
)
{
template
:
function
(
model
)
{
let
param
=
"'"
+
model
.
docId
+
"', '"
+
model
.
docType
+
"', '"
+
model
.
docName
+
"'"
;
let
template
=
""
;
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="changeFile(
\'
'
+
item
.
docId
+
'
\'
,
\'
'
+
item
.
bizId
+
'
\'
)" target="_blank">变更</a>'
;
+
'onclick="showPreview('
+
param
+
')" >预览</a>'
;
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="changeFile(
\'
'
+
model
.
docId
+
'
\'
,
\'
'
+
model
.
bizId
+
'
\'
)" target="_blank">变更</a>'
;
return
template
;
}
},
{
...
...
@@ -1024,6 +1027,18 @@ let preview = function () {
window
.
open
(
url
,
'_blank'
);
}
/**
* 预览
*
* @param docId
* @param docType
* @param docName
*/
let
showPreview
=
function
(
docId
,
docType
,
docName
)
{
let
fileId
=
IPLATUI
.
EFTree
.
categoryTree
.
selectTreeNode
.
fileId
;
addRecordWindow
(
fileId
,
docId
,
docType
,
docName
);
}
let
isProjectManager
=
function
(
parentId
)
{
let
inEiInfo
=
new
EiInfo
();
inEiInfo
.
set
(
"inqu_status-0-fileId"
,
parentId
);
...
...
src/main/webapp/HG/WD/HGWD001.jsp
View file @
68bc28ec
...
...
@@ -9,7 +9,6 @@
<c:set
var=
"ctx"
value=
"${pageContext.request.contextPath}"
/>
<c:set
var=
"loginName"
value=
"<%=userId%>"
/>
<script
type=
"text/javascript"
src=
"${ctx}/common/js/dayjs.min.js"
></script>
<script
src=
"${ctx}/HG/WD/HGWD001C1.js"
></script>
<EF:EFPage
title=
"文档库"
>
...
...
@@ -212,3 +211,5 @@
<EF:EFButton
ename=
"confirmRelease"
cname=
"确认发布"
/>
</div>
</EF:EFWindow>
<jsp:include
page=
"HGWD002A1.jsp"
/>
\ No newline at end of file
src/main/webapp/HG/WD/HGWD002.js
View file @
68bc28ec
...
...
@@ -154,8 +154,7 @@ $(function () {
field
:
"operator"
,
title
:
"操作"
,
template
:
function
(
model
)
{
let
param
=
"'"
+
model
.
fileId
+
"', '"
+
model
.
docId
+
"', '"
+
model
.
docType
+
"', '"
+
model
.
docName
+
"'"
;
let
param
=
"'"
+
model
.
docId
+
"', '"
+
model
.
docType
+
"', '"
+
model
.
docName
+
"'"
;
let
template
=
''
;
// template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
// + 'onclick="showQueryRecord(' + param + ')" >预览记录</a>';
...
...
@@ -349,11 +348,11 @@ let preview = function () {
/**
* 预览
*
* @param fileId
* @param docId
* @param docType
* @param docName
*/
let
showPreview
=
function
(
fileId
,
docId
,
docType
,
docName
)
{
let
showPreview
=
function
(
docId
,
docType
,
docName
)
{
let
fileId
=
IPLATUI
.
EFTree
.
categoryTree
.
selectTreeNode
.
fileId
;
addRecordWindow
(
fileId
,
docId
,
docType
,
docName
);
}
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