cy
2022-06-22 6e06bba1c89f8077e29d0fbf0ce12f89f027d8d2
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
62
63
64
65
66
67
68
69
70
71
72
73
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>处理记录</title>
</head>
 
<body>
[#include "/business/pages/include/static.html" /]
 
<div class="deal_switch_con" style="display:block;">
    <div class="deal_record_tittle"><a href="javascript:addRecord();">添加处理记录</a></div>
            <div id="main"></div>
</div>
 
 
 
<script type="text/javascript">
    var flowId = '${RequestParameters.flowId}';
    var folderId = '${RequestParameters.folderId}';
    //添加事件处理记录
    function addRecord() {
        window.top.openDialog("0","添加处理记录",
                         {},
                         {"width":60,"height":80},
                         [{btnId:"btnSure", btnName:"提交", btnStyle:"bluebtn"}],
                         "${base}/business/pages/incident/addRecord.html?flowId="+flowId+"&folderId="+folderId);
    }
    
    
    //查询事件处理
    function queryRecord() {
        $.post("${base}/business/pages/incident/recordData.html",{"flowId":flowId},function(data,textStatus) {
                $("#main").html(data);
                eventIframe();
        })
    }
    
    
    //编辑事件处理记录
    function editRecord(recordId) {
        window.top.openDialog("0","修改处理记录",
                         {},
                         {"width":60,"height":80},
                         [{btnId:"btnSure", btnName:"提交", btnStyle:"bluebtn"}],
                         "${base}/business/pages/incident/addRecord.html?recordId="+recordId+"&flowId="+flowId+"&folderId="+folderId);
    }
    
    $(function() {
        queryRecord();
        
        $(".deleteBtn").live("click",function() {
            var dom = $(this);
            window.top.confirmInfo('提示', '确定要删除吗?', function(){
                var recordId = dom.attr("recordId");
                $.post("${base}/business/pages/incident/delRecord.html",{"recordId":recordId},function(data,textStatus) {
                        if(data==1) {
                            queryRecord();
                            window.top.popupTips("删除成功");
                        } else {
                            window.top.popupTips("删除失败");
                        }
                })
            })
        });
        
        
    })
    
</script>
 
</body>
</html>