LON100W.lview 4.86 KB
Newer Older
Spencer Chang's avatar
Spencer Chang committed
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 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
<?xml version="1.0" encoding="UTF-8"?>

<!--
    $Author: huangtianyang
    $Date: 2018/6/28 上午11:13
    $Revision: 1.0
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:init-procedure/>
    <a:view template="default">
        <script src="${/request/@context_path}/javascripts/hapGrid.js"
                type="text/javascript"/>
        <script src="${/request/@context_path}/javascripts/hls-component.js"
                type="text/javascript"/>
        <script src="${/request/@context_path}/javascripts/hls-component-other.js" type="text/javascript"/>
        <a:link id="hls_bp_master_funds_lv_query" model="lon.lon100w.hls_bp_master_funds_lv" modelaction="query"/>
        <a:link id="hls_bp_master_link" url="${/request/@context_path}/modules/lon/LON100/bp_funds_modify.lview?_csrf=${/session/@_csrf.token}"/>
        <a:link id="get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
        
        <style>
            html,body{
                width: 270px;
                height: 50px;
                padding: 0;
            }
            .HlsQueryTab_main_first_title {
                height: 50px;
                background: white;
                box-shadow: 3px 3px 3px rgb(204, 204, 204);
                border-radius: 5px;
                width: 270px;
            }

            .HlsQueryTab_main_first_title img {
                width: 23px;
                height: 23px;
                display: inline-block;
                margin-left: 10px;
                position: relative;
                top: 5px;
            }

            .HlsQueryTab_main_first_title input {
                border: none;
                width: 232px;
                height: 50px;
            }
        </style>
        <div></div>
        <script type="text/javascript"><![CDATA[
            function lon100wSelectFunciton(input) {
            //
                var url = $('hls_bp_master_funds_lv_query').getUrl() + '?bp_name=' + $jq.trim(typeof input === 'string' ? input : input.value);
                url = encodeURI(url);
                $jq.ajax({
                    url: url,
                    type:'get',
                    contentType:"application/json; charset=utf-8",
                    success: function (res) {
                        //
                        if (res.success) {
                            if (!(res.result.record instanceof Array)) {
                                res.result.record = new Array(res.result.record);
                            }
                            var param = res.result.record[0];
                            param['function_code'] = 'LON100E';
                            param['function_usage'] = 'MODIFY';
                            param['url_title'] = '融资机构维护';
                            param['winid'] = 'lon100_bp_credit_modify_winid';
                            hls_doc_get_layout_code('get_layout_code_link_id', param, 'hls_bp_master_link');
                            // $jq('#lon100_bp_credit_modify_winid').css('z-index',145);
                        }
                    }
                });

            }


        ]]></script>
        <a:dataSets/>
            <div id="lon100w" style="position: relative">
                <div class="HlsQueryTab_main_first_title">
                    <img onclick="lon100wSelectFunciton()" src="${/request/@context_path}/images/lon/query.png"/>
                    <input type="text" style="border:none;background-color: white;" id="lon100w_testInput"
                           placeholder="请输入授信机构名称"/>

                </div>
                <div id="lon100w_query"></div>
            </div>
            <script type="text/javascript"><![CDATA[
            var itemSelectFunction = function () {
                lon100wSelectFunciton(lon100w_testInput);
            };
            var config = {
                id:"lon100w",
                queryId:"bp_id",
                queryText:"bp_name",
                itemSelectFunction:"lon100wSelectFunciton",
                inputImage:"${/request/@context_path}/leafresource/images/CSH/query.png",
                url:$('hls_bp_master_funds_lv_query').getUrl(),//下拉框查询
                suggestMaxHeight:"200px",
                itemColor:"#000000",
                itemBackgroundColor:"RGB(255,255,255)",
                itemOverColor:"#ffffff",
                itemOverBackgroundColor:"#C9302C",
                itemPadding:"3",
                fontSize:"12"
            };
            config.contextPath = "${/request/@context_path}";
            config.itemSelectFunction = itemSelectFunction;
            lon100w = new HlsQueryTab();
            lon100w._init(config);
            ]]></script>

        <a:screenBody style="display:none;"></a:screenBody>
        <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
    </a:view>
</a:screen>