cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>添加事件处理记录</title>
 
 
</head>
<body class="edit_txt_body">
[#include "/business/pages/include/static.html" /]
[#include "/component/HtmlEditor.html" /]
[#include "/component/webupload.html" /]
 
<script type="text/javascript">
$(function() {
    $.formValidator.initConfig({formID:"myform",onError:function(msg){popupTips(msg)},onSuccess:function(){
                        document.getElementById("myform").target = window.top.openDialog("1","操作",
                         {},
                         {"width":40,"height":40},[{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
                         return true;
        }});
        
        
        $("#content").formValidator({onshow:"",onFocus:"处理内容不能为空"}).functionValidator({
                fun:function(val,elem){
                    var text = content.isEmpty();
                    if(text) {
                        return "请输入处理内容";
                    } 
                    return true;
                }
            });
        
})
</script>
 
<div class="edit_txt">
    <form id="myform" action="${base}/business/pages/incident/addRecord.html" method="post">
        <input type="hidden" value="${RequestParameters.flowId}" name="flowId">
        <input type="hidden" value="${RequestParameters.folderId}" name="folderId">
        <input type="hidden" value="${RequestParameters.recordId}" name="recordId" >
             [@htmleditor simple="true" id="content" value="${record.DEAL_CONTENT}" /]
             <div id="contentTip" style="display:inline-block;"></div>
         <div class="edit_btn clearfix">
              <div class="upload_file" >
                 [@webupload id="files" multiple="true"  fileList=record.files/]
             </div>
         </div>
     </form>
</div>
 
<script type="text/javascript">
function onDialogBtnClick(btnID, dialogID, config){
        if(btnID == "btnSure"){
            $("#myform").submit();
        }
    }
</script>
 
</body>
</html>