<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<title>台账管理</title>
	<meta name="description" content="">
	<meta name="author" content="">
	<link rel="stylesheet" href="${ctx}/css/plugin/bootstrap/bootstrap.min.css">
	<link rel="stylesheet" href="${ctx}/css/plugin/metroStyle/metroStyle.css">
	<link rel="stylesheet" href="${ctx}/js/plugin/layui/css/layui.css" media="all">
	<link rel="stylesheet" href="${ctx}/css/plugin/amazeui/amazeui.css" media="all">
	<link rel="stylesheet" href="${ctx}/css/plugin/mulitiCheckbox/fSelect.css">
	<link rel="stylesheet" href="${ctx}/css/plugin/bootstrap/bootstrap-datetimepicker.css">
	<link rel="stylesheet" href="${ctx}/css/plugin/bootstrap/bootstrap-select.css"/>
	<link rel="stylesheet" href="${ctx}/css/basic.css">
	<script src="${ctx}/js/plugin/jquery.min.js"></script>
	<script src="${ctx}/js/plugin/layui/layer.js"></script>
	<script src="${ctx}/jspJS/utils/loading.js"></script>
</head>
<script type="text/javascript">
</script>
<style type="text/css">
	#rightContent label {
		max-width: none;
	}
	.btn {
		padding: 2px 6px;
	}
	.table {
		margin-bottom: 5px;
		border-collapse:separate;
		border-color: #006a6a;
		font-size: 12px;
	}

	.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12{
		padding-left: 0px !important;
	}
	.width1{
		width:150px
	}
	.width2{
		width:250px
	}
	.width3{
		width:145px
	}
	.font12{
		text-align: right;
		font-weight: normal;
	}
	#zd,#jcd{
		font-size:14px;
		font-weight:  bolder; !important
	}
	.table>tbody>tr>td{
		padding: 4px;
	}
</style>
<body>
<div class="left-menu" style="color:#333;top:5px;height:5%;overflow-y:hidden">
	<div class="btn themeBGColor layui-form-item" id="download">
		<i class="glyphicon glyphicon-share"></i>模板下载
	</div>
	<div class="btn themeBGColor layui-form-item" id="importExl">
		<i class="glyphicon glyphicon-edit"></i>导入
	</div>
	<div class="btn themeBGColor layui-form-item" id="exportExl">
		<i class="glyphicon glyphicon-share"></i>导出
	</div>
</div>
<div class="left-menu" style="color:#333;top:5%;bottom:15%;overflow-y:auto;">
	<div class="pdt5"><input style="width:155px;" id="search_value" type="text" value="" placeholder="请输入关键词" />
		<input type="button" value="搜索" onclick="javascript: searchNode(search_value.value)" style="padding:0 5px;"></div>
	<div id="tree" class="ztree" style="padding:2px 2px;"></div>
</div>
<div class="left-menu" style="color:#333;top:86%;height:13%;overflow-y:hidden">
	<div class="layui-form-item" id="buttonarea">
		<div  style="width:200px;">
			<button type="button" id="addProj" class="btn themeBGColor" style="margin-left:5px" hidden>新建</button>
			<button type="button" id="addPro" class="btn themeBGColor" style="margin-left:5px" hidden>新建</button>
			<button type="button" id="addGd" class="btn themeBGColor" style="margin-left:5px" hidden>新建</button>
			<button type="button" id="addSub" class="btn themeBGColor" style="margin-left:5px" hidden>新建</button>
			<button type="button" id="addDev" class="btn themeBGColor" style="margin-left:5px" hidden>新建</button>
			<button type="button" id="addSubv" class="btn themeBGColor" style="margin-left:5px" hidden>新建</button>
			<button type="button" id="addLine" class="btn themeBGColor" style="margin-left:5px" hidden>新建</button>
			<button type="button" id="modProj" class="btn themeBGColor" style="margin-left:5px" hidden>修改</button>
			<button type="button" id="modGd" class="btn themeBGColor" style="margin-left:5px" hidden>修改</button>
			<button type="button" id="modSub" class="btn themeBGColor" style="margin-left:5px" hidden>修改</button>
			<button type="button" id="modDev" class="btn themeBGColor" style="margin-left:5px" hidden>修改</button>
			<button type="button" id="modSubv" class="btn themeBGColor" style="margin-left:5px" hidden>修改</button>
			<button type="button" id="modLine" class="btn themeBGColor" style="margin-left:5px" hidden>修改</button>
			<button type="button" id="delProj" class="btn themeBGColor" style="margin-left:5px" hidden>删除</button>
			<button type="button" id="delPro" class="btn themeBGColor" style="margin-left:5px" hidden>删除</button>
			<button type="button" id="delGd" class="btn themeBGColor" style="margin-left:5px" hidden>删除</button>
			<button type="button" id="delSub" class="btn themeBGColor" style="margin-left:5px" hidden>删除</button>
			<button type="button" id="delDev" class="btn themeBGColor" style="margin-left:5px" hidden>删除</button>
			<button type="button" id="delSubv" class="btn themeBGColor" style="margin-left:5px" hidden>删除</button>
			<button type="button" id="delLine" class="btn themeBGColor" style="margin-left:5px" hidden>删除</button>
			<button type="button" id="addProj2" class="btn themeBGColor" style="margin-left:5px;margin-top:5px;" hidden>新建项目</button>
			<button type="button" id="addPro2" class="btn themeBGColor" style="margin-left:5px;margin-top:5px;" hidden>新建省份</button>
			<button type="button" id="addGd2" class="btn themeBGColor" style="margin-left:5px;margin-top:5px;" hidden>新建供电公司</button>
			<button type="button" id="addSub2" class="btn themeBGColor" style="margin-left:5px;margin-top:5px;" hidden>新建变电站</button>
			<button type="button" id="addDev2" class="btn themeBGColor" style="margin-left:5px;margin-top:5px;" hidden>新建终端</button>
			<button type="button" id="addSubv2" class="btn themeBGColor" style="margin-left:5px;margin-top:5px;" hidden>新建母线</button>
			<button type="button" id="addLine2" class="btn themeBGColor" style="margin-left:5px;margin-top:5px;" hidden>新建监测点</button>
		</div>
	</div>
</div>
<div  id="rightContent" style="position:absolute;left:270px;right:20px;top:0;bottom:0;z-index:1;">
	<div id="zd">终端:</div>
	<table class="table" id="device" frame="border" rules="groups">
		<tr>
			<td align="right" class="width1">名称:</td>
			<td align="left" class="width2"><input class="width3" name="devname" id="devname"  disabled ></td>

			<td align="right" class="width1"><font color='red'>*</font>型号:</td>
			<td align="left" class="width2"><select class="width3" id="devtype">
			</select></td>
			<td align="right" id="ipmac" class="width1"><font color='red'>*</font>IP:</td>
			<td align="left"  class="width2"><input class="width3" name="mac" id="mac" maxlength="64">
			</td>
		</tr>
		<tr>
			<td align="right"  class="width1">通讯状态:</td>
			<td align="left"  class="width2"><input class="width3" name="status" id="status"  disabled></td>
			<td align="right"  class="width1">投运时间:</td>
			<td align="left" class="width2"><input class="width3 form_datetime" type="text" autocomplete="off"
												   id="LogonTime" style="position:relative;"></td>
			<td align="right" class="width1">数据更新时间:</td>
			<td align="left" class="width2"><input type="text" class="width3 form_datetime"
												   id="UpdateTime" style="position:relative;" disabled></td>
		</tr>
		<tr>
			<td align="right" class="width1">所属供电公司:</td>
			<td align="left" class="width2"><input class="width3" name="gdname" id="gdname"  disabled></td>
			<td align="right" class="width1">所属变电站:</td>
			<td align="left" class="width2"><input class="width3" name="subname" id="subname"  disabled></td>
			<td align="right" class="width1"><font color='red'>*</font>所属前置机:</td>
			<td align="left" class="width2"><select class="width3" id="nodeinfo">
			</select>
				<button id="nodemanage" class="btn themeBGColor" style="padding-top: 0px;padding-right: 3px;padding-bottom: 0px;padding-left: 3px;">
					<i class="glyphicon glyphicon-edit mr0"></i></button></td>
		</tr>
		<tr>
			<td align="right" class="width1"><font color='red'>*</font>厂家:</td>
			<td align="left" class="width2"><select class="width3" id="manufacturer">
			</select></td>
			<td align="right" class="width1">本次定检时间:</td>
			<td align="left" class="width2"><input type="text" class="width3 form_datetime"
												   id="ThisTimeCheck" style="position:relative;" disabled></td>
			<td align="right" class="width1">下次定检时间:</td>
			<td align="left" class="width2"><input type="text" class="width3 form_datetime" autocomplete="off"
												   id="NextTimeCheck" style="position:relative;"></td>
		</tr>
		<tr>
			<td align="right" class="width1"><font color='red'>*</font>终端模型:</td>
			<td align="left" class="width2"><select class="width3" id="devmodel">
				<option selected value="1">实际终端</option>
				<option value="0">虚拟终端</option>
				<option value="2">离线终端</option>
			</select></td>
			<td align="right" class="width1"><font color='red'>*</font>数据类型:</td>
			<td align="left" class="width2"><select class="width3" id="datatype">
				<option selected value="0">暂态系统</option>
				<option value="1">稳态系统</option>
				<option value="2">两个系统</option>
			</select></td>
			<td align="right" class="width1"><font color='red'>*</font>端口号:</td>
			<td align="left" class="width2">
				<input name="port" id="port" class="width3" maxlength="10" onkeyup="this.value=this.value.replace(/[^0-9-]+/,'');"  autocomplete="off">
		</tr>
		<tr>
			<td align="right" class="width1">识别码:</td>
			<td align="left" class="width2"><input type="password" class="width3" name="series" id="series" autocomplete="off" maxlength="255"></td>
			<td align="right" class="width1">秘钥:</td>
			<td align="left" class="width2"><input type="password" class="width3" name="key" id="key" autocomplete="off" maxlength="255"></td>
			<td align="right" class="width1" id="call"></td>
			<td align="left" class="width2"><select class="width3" id="callflag" hidden>
			</select></td>
		</tr>
		<tr>
			<td align="right" class="width1">电度功能:</td>
			<td align="left" class="width2"><select class="width3" id="electroplate">
				<option value="1">开启</option>
				<option value="0" selected>关闭</option>
			</select>
			</td>
			<td align="right" class="width1">对时功能:</td>
			<td align="left" class="width2"><select class="width3" id="ontime">
				<option value="1" selected>开启</option>
				<option value="0">关闭</option>
			</select>
			</td>
			<td align="right" class="width1">合同号:</td>
			<td align="left" class="width2"><input type="text" class="width3" name="key" id="contract" autocomplete="off" maxlength="255"></td>
		</tr>
		<tr>
			<td align="right" class="width1">装置系列:</td>
			<td align="left" class="width2"><select class="width3" id="devCatena">

			</select>
			</td>

			<td align="right" class="width1">SIM卡号:</td>
			<td align="left" class="width2"><input type="text" class="width3" name="key" id="sim" autocomplete="off" maxlength="255"></td>

			<td align="right" class="width1">监测装置安装位置:</td>
<%--			<td align="left" class="width2"><input type="text" class="width3" name="key" id="devLocation" autocomplete="off" maxlength="255"></td>--%>
			<td align="left" class="width2"><select class="width3" id="devLocation">
				<option selected value="电网侧">电网侧</option>
				<option value="用户侧">用户侧</option>
			</select></td>

		</tr>
		<tr>
			<td align="right" class="width1">监测厂家设备编号:</td>
			<td align="left" class="width2"><input type="text" class="width3" name="key" id="devNo" autocomplete="off" maxlength="255"></td>
			<td align="right">告警功能:</td>
			<td align="left"><select class="width3" id="isAlarm"><option value="1">开启</option><option value="0">关闭</option></select></td>
			<td align="right"><button id="devcommit" class="btn themeBGColor" disabled>更新</button></td>
			<td align="left"><button id="push" class="btn themeBGColor displayNone">采集重启</button></td>
		</tr>
	</table>
	<div id="jcd">监测点:</div>
	<table class="table" id="line" frame="border" rules="groups">
		<tr>
			<td align="right" class="width1">监测点名称:</td>
			<td align="left" class="width2"><input class="width3" name="linename" id="linename"  disabled></td>
			<td align="right" class="width1">电压等级:</td>
			<td align="left" class="width2"><select class="width3" id="scale" disabled>
			</select></td>
			<td align="right" class="width1"><font color='red'>*</font>短路容量(MVA):</td>
			<td align="left" class="width2"><input class="width3" name="dlcMp" id="dlcMp" autocomplete="off" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"></td>
		</tr>
		<tr>
			<td align="right" class="width1"><font color='red'>*</font>协议容量(MVA):</td>
			<td align="left" class="width2"><input class="width3" name="xycMp" id="xycMp" autocomplete="off" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"></td>
			<td align="right" class="width1"><font color='red'>*</font>基准容量(MVA):</td>
			<td align="left" class="width2"><input class="width3" name="jzcMp" id="jzcMp" disabled></td>
			<td align="right" class="width1"><font color='red'>*</font>设备容量(MVA):</td>
			<td align="left" class="width2"><input class="width3" name="devcMp" id="devcMp" autocomplete="off" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"></td>
		</tr>
		<tr>
			<td align="right" class="width1"><font color='red'>*</font>CT变比:</td>
			<td align="left" class="width2"><input name="CT1" id="CT1"  style="width:70px" onkeyup="this.value=this.value.replace(/[^0-9-]+/,'');">:
				<input name="CT2" id="CT2"  style="width:70px" onkeyup="this.value=this.value.replace(/[^0-9-]+/,'');"></td>
			<td align="right" class="width1"><font color='red'>*</font>PT变比:</td>
			<td align="left" class="width2"><input name="PT1" id="PT1"  style="width:70px" onkeyup="this.value=this.value.replace(/[^0-9-]+/,'');">:
				<input name="PT2" id="PT2"  style="width:70px" onkeyup="this.value=this.value.replace(/[^0-9-]+/,'');"></td>
			<td align="right" class="width1">接线类型:</td>
			<td align="left" class="width2"><select class="width3" id="ptType">
				<option selected value="0">星型接线</option>
				<option value="1">三角型接线</option>
				<option value="2">V型接线</option>
			</select></td>
		</tr>
		<tr>
			<td align="right" class="width1">测量间隔:</td>
			<td align="left" class="width2"><select class="width3" id="tInterval">
				<option selected value="1">1分钟</option>
				<option value="3">3分钟</option>
				<option value="5">5分钟</option>
				<option value="10">10分钟</option>
			</select></td>
			<td align="right" class="width1">干扰源类型:</td>
			<td align="left" class="width2"><select class="width3" id="loadType">
			</select></td>
			<td align="right" class="width1">行业类型:</td>
			<td align="left" class="width2"><select class="width3" id="businessType">
			</select></td>
		</tr>
		<tr>
			<td align="right" class="width1">监测点性质:</td>
			<td align="left" class="width2"><select class="width3" id="powerId">
				<option selected value="0">电网侧</option>
				<option value="1">非电网侧</option>
				<option value="2">电网侧(新能源)</option>
				<option value="3">非电网侧(新能源)</option>
				<option value="4">上送国网</option>
				<option value="5">PCC</option>
			</select></td>
			<td align="right" class="width1">备注:</td>
			<td align="left" class="width2"><input class="width3" name="remark" id="remark" maxlength="255"></td>
			<td align="right" class="width1">国网谐波监测<br/>平台监测点号:</td>
			<td align="left" class="width2"><input class="width3" maxlength="255" name="monitorId" id="monitorId"  onkeyup="this.value=this.value.replace(/[^\w\.\/]/ig,'');"></td>
		</tr>
		<tr>
			<td align="right" class="width1">电压上偏差:</td>
			<td align="left" class="width2"><input class="width3"
												   name="VOLTAGE" id="VOLTAGE" autocomplete="off" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"></td>
			<td align="right" class="width1">电压下偏差:</td>
			<td align="left" class="width2"><input class="width3"
												   name="UVOLTAGE" id="UVOLTAGE" autocomplete="off" onkeyup="value=value.replace(/[^\-?\d.]/g,'')"></td>
			<td align="right" class="width1">对象名称:</td>
			<td align="left" class="width2"><input style="width: 100%" name="objName" id="objName"></td>
		</tr>
		<tr>
			<td align="right" class="width1">是否参与报告统计:</td>
			<td align="left" class="width2">
				<select class="width3" id="statflag">
					<option value="0">不参与</option>
					<option value="1" selected>参与</option>
				</select>
			</td>
			<td align="right" class="width1">电网侧变电站:</td>
			<td align="left" class="width2"><input class="width3"
												   name="PowerSubName" id="PowerSubName" autocomplete="off"></td>

			<td align="right" class="width1">分类等级:</td>
			<td align="left" class="width2">
				<select class="width3" id="calssificationGrade"></select>
			</td>
		</tr>
		<tr>
			<td align="right" class="width1">用户联系人:</td>
			<td align="left" class="width2">
				<input class="width3"
					   name="owner" id="owner" autocomplete="off"></td>
			</td>

			<td align="right" class="width1">联系人职务:</td>
			<td align="left" class="width2">
				<input class="width3"
					   name="ownerDuty" id="ownerDuty" autocomplete="off">
			</td>

			<td align="right" class="width1">联系人电话:</td>
			<td align="left" class="width2">
				<input class="width3"
					   name="ownerTel" id="ownerTel" autocomplete="off">
			</td>
		</tr>

		<tr>
			<td align="right" class="width1">上级变电站:</td>
			<td align="left" class="width2">
				<input class="width3"
					   name="superiorsSubstation" id="superiorsSubstation" autocomplete="off"></td>
			</td>

			<td align="right" class="width1">挂接线路:</td>
			<td align="left" class="width2">
				<input class="width3"
					   name="hangLine" id="hangLine" autocomplete="off">
			</td>

			<td align="right" class="width1">主接线图:</td>
			<td align="left" class="width2">

				<button type="button" class="btn btn-primary" style="display: none;padding-top: 0px;padding-bottom: 0px" id="wiringDiagram">主接线图上传</button>

				<button class="btn btn-primary" style="margin-left: 10px;display: none;padding-top: 0px;padding-bottom: 0px" id="demo1">预览</button>
			</td>


		</tr>
		<tr>
			<td align="right" class="width1">是否并网点:</td>
			<td align="left" class="width2">
				<select class="width3" id="isGridPoint">
					<option value="0">否</option>
					<option value="1" selected>是</option>
				</select>
			</td>

			<td align="right" class="width1">监测点运行状态:</td>
			<td align="left" class="width2">
				<select class="width3" id="lineStatus">
					<option value="0" selected>投运</option>
					<option value="1">检修</option>
					<option value="2">退运</option>
				</select>
			</td>
		</tr>
		<tr>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td align="right"><button id="linecommit" class="btn themeBGColor" disabled>更新</button></td>
			<td align="left">
				<button id="updateAllLimit" class="btn themeBGColor" hidden>限值管理</button>
				<button id="send" class="btn themeBGColor" style="display: none">推送</button>
			</td>
		</tr>
	</table>
</div>
<input type="hidden" id="projIndex" value="projIndex" />
<input type="hidden" id="proIndex" value="proIndex" />
<input type="hidden" id="gdIndex" value="gdIndex" />
<input type="hidden" id="subIndex" value="subIndex" />
<input type="hidden" id="devIndex" value="devIndex" />
<input type="hidden" id="subvIndex" value="subvIndex" />
<input type="hidden" id="lineIndex" value="lineIndex" />
<input type="hidden" id="newSub" value="newSub" />
<input type="hidden" id="newDev" value="newDev" />
<input type="hidden" id="newSubv" value="newSubv" />
<input type="hidden" id="newLine" value="newLine" />
<input type="hidden" id="node" value="node" />
<input type="hidden" id="tips" value="" />
<script src="${ctx}/js/plugin/bootstrap/bootstrap.js"></script>
<script src="${ctx}/js/plugin/jquery.contextMenu.js"></script>
<script src="${ctx}/js/plugin/jquery.cleverTabs.js"></script>
<script src="${ctx}/js/plugin/xss/xss.js"></script>
<script src="${ctx}/js/plugin/ztree/jquery.ztree.core.js"></script>
<script src="${ctx}/js/plugin/bootstrapSwitch/bootstrap-switch.min.js"></script>
<script src="${ctx}/js/plugin/mulitiCheckbox/fSelect.js"></script>
<script src="${ctx}/js/plugin/bootstrap/bootstrap-datetimepicker.min.js"></script>
<script src="${ctx}/js/plugin/bootstrap/bootstrap-datetimepicker.zh-CN.js"></script>
<script src="${ctx}/js/plugin/bootstrap/bootstrap-select.js"></script>
<script src="${ctx}/jspJS/device/deviceTree.js"></script>
<script src="${ctx}/js/basic.js"></script>
<script src="${ctx}/js/plugin/xss/xss.js"></script>
<script src="${ctx}/jspJS/utils/judgeAjaxStatus.js"></script>
<script src="${ctx}/jspJS/utils/loading.js"></script>
<script src="${ctx}/js/plugin/layui/layui.js" charset="utf-8"></script>
<script src="${ctx}/jspJS/device/addDev.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$("#devtype").change(function(){
			var devtype = $("#devtype").find("option:selected").text();
			if(devtype.indexOf("_CLD") > 0){
				$("#ipmac").html("MAC:");

				$("#dataplan").val("500");
				$("#newtraffic").val("0");
			}else if(devtype.indexOf("_PQDIF") > 0){
				$("#ipmac").html("IP/MAC:");

				$("#dataplan").val("");
				$("#newtraffic").val("");
			}else{
				$("#ipmac").html("IP:");

				$("#dataplan").val("");
				$("#newtraffic").val("");
			}
		})
		$("#demo1").hide()

	})



	layui.use(['upload', 'element'], function() {
		var $ = layui.jquery
				, upload = layui.upload
				, element = layui.element;


		//绑定原始文件域
		upload.render({
			elem: '#wiringDiagram'
			,url: '/pqs9900/device/uploadWiringDiagram' //此处配置你自己的上传接口即可
			,accept: 'images'
			,before: function(obj){
				let lineId = $("#lineIndex").val()
				if(lineId == "lineIndex" || lineId==''|| lineId==null){
					layer.msg('请选择监测点', {icon: 2, time: 1000});
					return false
				}
				this.data.lineId = lineId
			}
			,done: function(res){
				$("#demo1").show()
				layer.msg('上传成功', {icon: 1, time: 1000});

			}
			,error:function (res) {
				layer.msg(res.message, {icon: 2, time: 1000});
			}
		});
	})


	$("#demo1").click(function () {
		$.ajax({
			type: 'POST',
			url: '/pqs9900/device/queryWiringDiagram',
			data: {
				lineId:$("#lineIndex").val()
			},
			success: function (data) {
				if(data.code === 200){
					layer.open({
						type: 1,
						title: '主接线图预览',
						shadeClose: true,
						area: ['80%', '90%'],
						maxmin : false,
						content: '<div style="padding: 10px;width: 100%;height: 100%"><img style="width: 100%;height: 100%" src="'+data.body+'"></div>', //iframe的url
						scrollbar: true,
						end:function(){

						}
					});
				}else {
					layer.msg(data.message, {icon: 2, time: 2000});
				}
			}
		})
	})
</script>
</body>
</html>
