Commit f2035183 by 江和松

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

parent 6198d2bf
$(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 = {
uploadFile: {
success: function(e) {
......
......@@ -7,8 +7,8 @@
<EF:EFPage title="附件上传">
<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:EFOption label="全部" value=""/>
<EF:EFSelect cname="文件类型" ename="inqu_status-0-bizType" colWidth="3" filter="contains" required="true">
<EF:EFOption label="未选择" value=""/>
<EF:EFCodeOption codeName="hggp.sc.drawingBizType" />
</EF:EFSelect>
<EF:EFRegion id="result">
......
$(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 = {
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) {
let docId = e.response.docId;
if (isBlank(docId)) {
return;
}
NotificationUtil(ei, 'warning');
$("#fileDocId").val(docId);
NotificationUtil("附件上传成功");
console.log($("#fileDocId").val())
......
......@@ -7,8 +7,8 @@
<EF:EFPage title="附件上传">
<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:EFOption label="全部" value=""/>
<EF:EFSelect cname="文件类型" ename="inqu_status-0-bizType" colWidth="3" filter="contains" required="true">
<EF:EFOption label="未选择" value=""/>
<EF:EFCodeOption codeName="hggp.sc.bizType" />
</EF:EFSelect>
<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