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
[#if nodeTemplateId == Constants.REMIND_DISPATCH]<button type="button" id="button" class="add" onclick="addCi();" ><span>添加巡检配置</span></button>[/#if]
[#if ciList??&&ciList?size>0]
 
   [#list ciList as item]
           <section class="worklist clearfix" id="${item.CIID}">
           <h2>
                   <div class="deletes">
                       <!-- 执行维护节点 -->
                       [#if nodeTemplateId == Constants.REMIND_DEAL]
                           <a href="${base}/ewyw/ewRemind/ewRemindPatrol.html?patrolId=${item.ID}&flowId=${flowId}&orderId=${orderId}"><em class="edit"></em></a>
                       [/#if]
                       <!-- 人员分派节点 -->
                       [#if nodeTemplateId == Constants.REMIND_DISPATCH]<a href="javascript:remove('${item.CIID}');"><em class="deletes"></em></a>[/#if]
                       <!-- 结果审核节点 -->
                       [#if nodeTemplateId == Constants.REMIND_APPROVE]<a href="${base}/ewyw/ewRemind/ewRemindPatrolInfo.html?patrolId=${item.ID}&flowId=${flowId}&orderId=${orderId}"><em class="view"></em></a>[/#if]
                   </div>
               ${item.SEARCHCODE}
           </h2>
           <div class="worklistcon clearfix">
                   <input type="hidden" value="${item.CIID}" class="flag" /> 
               <span class="relaicon"></span>
               <p>配置名称:${item.CINAME}</p>
               <p>存放位置:${item.POSITION}</p>
               <p>执行状态:<em>[#if item.DEAL_STATE==1]
                                已完成
                            [#elseif item.DEAL_STATE==2]
                                未完成
                            [#elseif item.DEAL_STATE==3]
                                未执行
                            [/#if]
                </em></p>
           </div>
       </section>
   [/#list]
 
[#else]
   <div class="nodate"><span>无巡检配置</span></div>
[/#if]
 
<script type="text/javascript">
    function addCi(){
        var ciIds = '';
        var $hidden = $(".flag");
        if($hidden.size() > 0){
            $hidden.each(function(){
                ciIds += (ciIds?',':'') + $(this).val();
            });
        }
        window.location.href = "${base}/ewyw/ewRemind/ewAddCiDialog.html?customerId=${info.customer_id}&subCustomerId=${info.sub_customer_id}&flowId=${info.flow_id}&orderId=${orderId}&ciIds="+ciIds;
    }
    
    function remove(id){
        $("#"+id).remove();
    }
</script>