Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-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
hp-smart
Commits
abbc4c96
Commit
abbc4c96
authored
Jan 25, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.关闭附件上传弹窗时,不新增空文件
parent
a1779c19
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
12 deletions
+7
-12
HPSC002A.js
src/main/webapp/HP/SC/HPSC002A.js
+0
-2
HPSC099.js
src/main/webapp/HP/SC/HPSC099.js
+6
-2
HPSC099.jsp
src/main/webapp/HP/SC/HPSC099.jsp
+1
-8
No files found.
src/main/webapp/HP/SC/HPSC002A.js
View file @
abbc4c96
...
@@ -76,8 +76,6 @@ function uploadFileCallback(docId) {
...
@@ -76,8 +76,6 @@ function uploadFileCallback(docId) {
},
{
},
{
async
:
false
async
:
false
});
});
// 关闭弹窗
JSColorbox
.
close
();
}
}
/**
/**
...
...
src/main/webapp/HP/SC/HPSC099.js
View file @
abbc4c96
...
@@ -4,11 +4,15 @@ $(function () {
...
@@ -4,11 +4,15 @@ $(function () {
IPLATUI
.
EFUpload
=
{
IPLATUI
.
EFUpload
=
{
uploadFile
:
{
uploadFile
:
{
success
:
function
(
e
)
{
success
:
function
(
e
)
{
$
(
"#fileDocId"
).
val
(
e
.
response
.
docId
);
let
docId
=
e
.
response
.
docId
;
if
(
isBlank
(
docId
))
{
return
;
}
$
(
"#fileDocId"
).
val
(
docId
);
NotificationUtil
(
"附件上传成功"
);
NotificationUtil
(
"附件上传成功"
);
console
.
log
(
$
(
"#fileDocId"
).
val
())
console
.
log
(
$
(
"#fileDocId"
).
val
())
try
{
try
{
parent
.
JSColorbox
.
setValueCallback
(
e
.
response
.
docId
);
parent
.
JSColorbox
.
setValueCallback
(
docId
);
}
catch
(
e
){
}
catch
(
e
){
}
}
},
},
...
...
src/main/webapp/HP/SC/HPSC099.jsp
View file @
abbc4c96
...
@@ -4,16 +4,10 @@
...
@@ -4,16 +4,10 @@
<
%@
taglib
prefix=
"EF"
tagdir=
"/WEB-INF/tags/EF"
%
>
<
%@
taglib
prefix=
"EF"
tagdir=
"/WEB-INF/tags/EF"
%
>
<c:set
var=
"ctx"
value=
"${pageContext.request.contextPath}"
/>
<c:set
var=
"ctx"
value=
"${pageContext.request.contextPath}"
/>
<head>
<
%
--
<
link
rel=
"stylesheet"
href=
"${ctx}/css/simulatedOperation.css"
/>
--%>
</head>
<EF:EFPage
title=
"附件上传"
>
<EF:EFPage
title=
"附件上传"
>
<EF:EFRegion
id=
"result"
>
<EF:EFRegion
id=
"result"
>
<EF:EFUpload
blockId=
"result"
ename=
"uploadFile"
docTag=
"hk_file11"
path=
"A"
/>
<EF:EFUpload
blockId=
"result"
ename=
"uploadFile"
docTag=
"hk_file11"
path=
"A"
/>
</EF:EFRegion>
</EF:EFRegion>
<EF:EFInput
ename=
"fileDocId"
cname=
""
hidden=
"true"
/>
<EF:EFInput
ename=
"fileDocId"
cname=
""
hidden=
"true"
/>
</EF:EFPage>
</EF:EFPage>
<script>
var
ctx
=
"${ctx}"
;
</script>
<script
src=
"${ctx}/HP/SC/HPSC099.js"
></script>
\ No newline at end of file
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