Commit f2035183 by 江和松

1.附件必须选择,如果未选择就不展示上传

parent 6198d2bf
$(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) {
......
...@@ -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">
......
$(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())
......
...@@ -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">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment