<?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>