1、窗体代码定义
<div id="WinLoad" class="easyui-dialog" style="1050px;height:530px;padding:15px" closed="true" iconCls="icon-app" title="5分钟电压曲线" minimizable="true" maximizable="true" resizable="true" buttons="#WinLoad-buttons"> <div id="pnl" class="easyui-panel" data-options="fit:true" border="false"/> </div> <div id="WinLoad-buttons"> <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="javascript:$('#WinLoad').dialog('close')">确 定</a> <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#WinLoad').dialog('close')">关 闭</a> </div>
2、js代码
function Chart() { var row = $(dg).datagrid('getSelected'); if (row) { var jcdid, jcdmch, rq,title, url; jcdid = row.jcdid; jcdmch = row.jcdmch; title = '【' + jcdmch + "】5分钟电压曲线"; $('#WinLoad').dialog({ title: title }); rq = $('#rq').val(); url = "../Chart/MinuteDataCht.htm?tbName=" + tbName + "&&jcdid=" + jcdid + "&&rq=" + rq; $("#pnl").html('<iframe src="' + url + '" frameborder="0" height="100%" width="100%" id="dialogFrame" scrolling="no"></iframe>'); WinShow('WinLoad'); } else AlterInfo("您没有选择记录,不能查看电压曲线!"); }