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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
17 deletions
+33
-17
HGWD001.js
src/main/webapp/HG/WD/HGWD001.js
+27
-12
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,18 +480,21 @@ $(function () {
...
@@ -480,18 +480,21 @@ $(function () {
// 阻止默认请求,使用自定义删除
// 阻止默认请求,使用自定义删除
e
.
preventDefault
();
e
.
preventDefault
();
deleteFunc
();
deleteFunc
();
},
},
columns
:
[{
columns
:
[{
field
:
"operator"
,
field
:
"operator"
,
title
:
"操作"
,
title
:
"操作"
,
readonly
:
true
,
readonly
:
true
,
template
:
function
(
model
)
{
template
:
function
(
item
)
{
let
param
=
"'"
+
model
.
docId
+
"', '"
+
model
.
docType
+
"', '"
+
model
.
docName
+
"'"
;
let
template
=
""
;
let
template
=
""
;
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
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>'
;
return
template
;
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
;
}
},
{
field
:
"docVersion"
,
field
:
"docVersion"
,
template
:
function
(
model
)
{
template
:
function
(
model
)
{
return
"v"
+
model
.
docVersion
;
return
"v"
+
model
.
docVersion
;
...
@@ -1024,6 +1027,18 @@ let preview = function () {
...
@@ -1024,6 +1027,18 @@ let preview = function () {
window
.
open
(
url
,
'_blank'
);
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
isProjectManager
=
function
(
parentId
)
{
let
inEiInfo
=
new
EiInfo
();
let
inEiInfo
=
new
EiInfo
();
inEiInfo
.
set
(
"inqu_status-0-fileId"
,
parentId
);
inEiInfo
.
set
(
"inqu_status-0-fileId"
,
parentId
);
...
...
src/main/webapp/HG/WD/HGWD001.jsp
View file @
68bc28ec
...
@@ -9,7 +9,6 @@
...
@@ -9,7 +9,6 @@
<c:set
var=
"ctx"
value=
"${pageContext.request.contextPath}"
/>
<c:set
var=
"ctx"
value=
"${pageContext.request.contextPath}"
/>
<c:set
var=
"loginName"
value=
"<%=userId%>"
/>
<c:set
var=
"loginName"
value=
"<%=userId%>"
/>
<script
type=
"text/javascript"
src=
"${ctx}/common/js/dayjs.min.js"
></script>
<script
type=
"text/javascript"
src=
"${ctx}/common/js/dayjs.min.js"
></script>
<script
src=
"${ctx}/HG/WD/HGWD001C1.js"
></script>
<EF:EFPage
title=
"文档库"
>
<EF:EFPage
title=
"文档库"
>
...
@@ -212,3 +211,5 @@
...
@@ -212,3 +211,5 @@
<EF:EFButton
ename=
"confirmRelease"
cname=
"确认发布"
/>
<EF:EFButton
ename=
"confirmRelease"
cname=
"确认发布"
/>
</div>
</div>
</EF:EFWindow>
</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 () {
...
@@ -154,8 +154,7 @@ $(function () {
field
:
"operator"
,
field
:
"operator"
,
title
:
"操作"
,
title
:
"操作"
,
template
:
function
(
model
)
{
template
:
function
(
model
)
{
let
param
=
"'"
+
model
.
fileId
+
"', '"
+
model
.
docId
+
"', '"
+
model
.
docType
let
param
=
"'"
+
model
.
docId
+
"', '"
+
model
.
docType
+
"', '"
+
model
.
docName
+
"'"
;
+
"', '"
+
model
.
docName
+
"'"
;
let
template
=
''
;
let
template
=
''
;
// template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
// template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
// + 'onclick="showQueryRecord(' + param + ')" >预览记录</a>';
// + 'onclick="showQueryRecord(' + param + ')" >预览记录</a>';
...
@@ -349,11 +348,11 @@ let preview = function () {
...
@@ -349,11 +348,11 @@ let preview = function () {
/**
/**
* 预览
* 预览
*
*
* @param fileId
* @param docId
* @param docId
* @param docType
* @param docType
* @param docName
* @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
);
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