cy
2022-06-28 2ba5c891b24d4d0cd6ce7ef833592e4f576ee5e8
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>选择${Constants.CUSTOMER_CONSTANTS}</title>
 
[#include "/business/pages/include/static.html" /]
</head>
[#include "/component/newsel.html" /]
<body>
    <div class="fs_main clearfix">
            <div class="event_fill list_common_select" >
            <table><tr><th width="80%">
                <div class="fill_item"><label>${Constants.CUSTOMER_CONSTANTS}名称:</label><input class="general" type="text" id="cusName"/></div>
            </th><td width="20%">
                <a class="retrievebtn" id="reset">重置</a><a class="retrievebtn focus" href="javascript:query2();">查询</a>
            </td></tr>
            </table>
        </div>
        <div class="checked-now">
            当前选中:
            <span id="content">
                [#if selectItems?? && selectItems?size>0]
                    [#list selectItems as item]
                        <span class="selcus ${item.ID}" sl='${item.ID}' p="${item.CUSTOMER_NAME}">${item.CUSTOMER_NAME}<img src="${common_static}/static/ui/images/del.png" alt=""/></span>
                    [/#list]
                [/#if]
            </span>
            <span class="kong">清空</span>
        </div>
    </div>    
    <div class="fs_main clearfix">
        <div id="mainData"></div>
        <div class="paging clearfix" id="pagination"></div>
    </div>
    <input type="hidden" id="ids" value="${ids}" />
</body>
<script type="text/javascript">
    var nowPage = 1;
    function query2() {
        var cusName = $.trim($("#cusName").val());
        var ids = $("#ids").val();
        var params = {"cusName":cusName,"ids":ids};
        pagination("${base}/business/pages/knowledge/knowledgeDeal/chooseCusData.html","${base}/business/pages/knowledge/knowledgeDeal/chooseCusCount.html","mainData","pagination",{cpage:nowPage,psize:10},params,function(data,page) {
            nowPage = page;
        });
        
    }
 
 
    $(function() {
        query2();
        $("#reset").click(function() {
            window.location.reload(true);
        });
        
        
        
        
    })
    
    function onDialogBtnClick(btnID, dialogID, config){
        if(btnID == "btnSure"){
            var ids = new Array();
            var values = new Array();
            $(".selcus").each(function(){
                ids.push($(this).attr('sl'));
                values.push($(this).attr('p'));
            });
            ids = ids.join(',');
            values = values.join(',');
            
            [#if RequestParameters.iframe_lv1_id?length<=0]
                window.parent.showCusName(ids,values);
            [#else]
                [#if RequestParameters.iframe_lv2_id?length<=0]
                window.top.document.getElementById("${RequestParameters.iframe_lv1_id}").contentWindow
                .showCusName(ids,values);        
                [#else]
                    window.top.document.getElementById("${RequestParameters.iframe_lv1_id}").contentWindow
                        .document.getElementById("${RequestParameters.iframe_lv2_id}").contentWindow
                        .showCusName(ids,values);
                [/#if]
            [/#if]
            window.top.hideDialog(dialogID);
        }
    }
    
</script>
 
</html>