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
f2035183
Commit
f2035183
authored
May 25, 2024
by
江和松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.附件必须选择,如果未选择就不展示上传
parent
6198d2bf
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
4 deletions
+35
-4
HGSC003C.js
src/main/webapp/HG/SC/HGSC003C.js
+11
-0
HGSC003C.jsp
src/main/webapp/HG/SC/HGSC003C.jsp
+2
-2
HGSC004C.js
src/main/webapp/HG/SC/HGSC004C.js
+20
-0
HGSC004C.jsp
src/main/webapp/HG/SC/HGSC004C.jsp
+2
-2
No files found.
src/main/webapp/HG/SC/HGSC003C.js
View file @
f2035183
$
(
function
()
{
$
(
function
()
{
if
(
isBlank
(
$
(
"#inqu_status-0-bizType"
).
val
()))
{
document
.
getElementById
(
'result'
).
style
.
display
=
'none'
;
}
$
(
"#inqu_status-0-bizType"
).
on
(
"change"
,
function
()
{
let
bizType
=
$
(
"#inqu_status-0-bizType"
).
val
();
if
(
isBlank
(
bizType
))
{
document
.
getElementById
(
'result'
).
style
.
display
=
'none'
;
}
else
{
document
.
getElementById
(
'result'
).
style
.
display
=
'block'
;
}
});
IPLATUI
.
EFUpload
=
{
IPLATUI
.
EFUpload
=
{
uploadFile
:
{
uploadFile
:
{
success
:
function
(
e
)
{
success
:
function
(
e
)
{
...
...
src/main/webapp/HG/SC/HGSC003C.jsp
View file @
f2035183
...
@@ -7,8 +7,8 @@
...
@@ -7,8 +7,8 @@
<EF:EFPage
title=
"附件上传"
>
<EF:EFPage
title=
"附件上传"
>
<EF:EFInput
cname=
"主表ID"
ename=
"matId"
blockId=
"inqu_status"
row=
"0"
type=
"hidden"
/>
<EF:EFInput
cname=
"主表ID"
ename=
"matId"
blockId=
"inqu_status"
row=
"0"
type=
"hidden"
/>
<EF:EFSelect
cname=
"
业务类型"
ename=
"inqu_status-0-bizType"
colWidth=
"3"
filter=
"contains
"
>
<EF:EFSelect
cname=
"
文件类型"
ename=
"inqu_status-0-bizType"
colWidth=
"3"
filter=
"contains"
required=
"true
"
>
<EF:EFOption
label=
"
全部
"
value=
""
/>
<EF:EFOption
label=
"
未选择
"
value=
""
/>
<EF:EFCodeOption
codeName=
"hggp.sc.drawingBizType"
/>
<EF:EFCodeOption
codeName=
"hggp.sc.drawingBizType"
/>
</EF:EFSelect>
</EF:EFSelect>
<EF:EFRegion
id=
"result"
>
<EF:EFRegion
id=
"result"
>
...
...
src/main/webapp/HG/SC/HGSC004C.js
View file @
f2035183
$
(
function
()
{
$
(
function
()
{
if
(
isBlank
(
$
(
"#inqu_status-0-bizType"
).
val
()))
{
document
.
getElementById
(
'result'
).
style
.
display
=
'none'
;
}
$
(
"#inqu_status-0-bizType"
).
on
(
"change"
,
function
()
{
let
bizType
=
$
(
"#inqu_status-0-bizType"
).
val
();
if
(
isBlank
(
bizType
))
{
document
.
getElementById
(
'result'
).
style
.
display
=
'none'
;
}
else
{
document
.
getElementById
(
'result'
).
style
.
display
=
'block'
;
}
});
IPLATUI
.
EFUpload
=
{
IPLATUI
.
EFUpload
=
{
uploadFile
:
{
uploadFile
:
{
upload
:
function
(
e
)
{
let
bizType
=
$
(
"#inqu_status-0-bizType"
).
val
();
if
(
isBlank
(
bizType
))
{
NotificationUtil
(
"请先选择文件类型"
,
"error"
);
openFileWindow
.
close
();
IPLAT
.
progress
(
$
(
"body"
),
true
);
}
},
success
:
function
(
e
)
{
success
:
function
(
e
)
{
let
docId
=
e
.
response
.
docId
;
let
docId
=
e
.
response
.
docId
;
if
(
isBlank
(
docId
))
{
if
(
isBlank
(
docId
))
{
return
;
return
;
}
}
NotificationUtil
(
ei
,
'warning'
);
$
(
"#fileDocId"
).
val
(
docId
);
$
(
"#fileDocId"
).
val
(
docId
);
NotificationUtil
(
"附件上传成功"
);
NotificationUtil
(
"附件上传成功"
);
console
.
log
(
$
(
"#fileDocId"
).
val
())
console
.
log
(
$
(
"#fileDocId"
).
val
())
...
...
src/main/webapp/HG/SC/HGSC004C.jsp
View file @
f2035183
...
@@ -7,8 +7,8 @@
...
@@ -7,8 +7,8 @@
<EF:EFPage
title=
"附件上传"
>
<EF:EFPage
title=
"附件上传"
>
<EF:EFInput
cname=
"主表ID"
ename=
"matId"
blockId=
"inqu_status"
row=
"0"
type=
"hidden"
/>
<EF:EFInput
cname=
"主表ID"
ename=
"matId"
blockId=
"inqu_status"
row=
"0"
type=
"hidden"
/>
<EF:EFSelect
cname=
"
业务类型"
ename=
"inqu_status-0-bizType"
colWidth=
"3"
filter=
"contains
"
>
<EF:EFSelect
cname=
"
文件类型"
ename=
"inqu_status-0-bizType"
colWidth=
"3"
filter=
"contains"
required=
"true
"
>
<EF:EFOption
label=
"
全部
"
value=
""
/>
<EF:EFOption
label=
"
未选择
"
value=
""
/>
<EF:EFCodeOption
codeName=
"hggp.sc.bizType"
/>
<EF:EFCodeOption
codeName=
"hggp.sc.bizType"
/>
</EF:EFSelect>
</EF:EFSelect>
<EF:EFRegion
id=
"result"
>
<EF:EFRegion
id=
"result"
>
...
...
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