|
@@ -90,7 +90,7 @@
|
|
|
<span class="requiredField">*</span>设备编号
|
|
|
</th>
|
|
|
<td>
|
|
|
- <input type="text" value="${equipment.sn}" name="sn" class="text" required/>
|
|
|
+ <input type="text" value="${equipment.sn}" name="sn" id="aaaa" class="text" required/>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
@@ -128,6 +128,9 @@
|
|
|
</th>
|
|
|
<td>
|
|
|
${equipment.adminUserName}
|
|
|
+ [#if type=="管理员"]
|
|
|
+     <button type="button" id="touji" >系统脱机</button>
|
|
|
+ [/#if]
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
@@ -1125,7 +1128,17 @@
|
|
|
</div>
|
|
|
</body>
|
|
|
<script>
|
|
|
-
|
|
|
+ // 脱离系统管理id
|
|
|
+ $('#touji').click(function(){
|
|
|
+ var id= document.getElementById("aaaa").value;
|
|
|
+ $.ajax({
|
|
|
+ url:"/api/app_equipment/index/separate.htm?clientId="+id,
|
|
|
+ type:"post",
|
|
|
+ success: function(data){
|
|
|
+ layer.msg('脱机成功');
|
|
|
+ }
|
|
|
+ })
|
|
|
+ });
|
|
|
|
|
|
var h = '<div id="container" style="width: 1200px;height: 650px"></div>';
|
|
|
$('.location').click(function () {
|