You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.4 KiB
40 lines
1.4 KiB
@model List<FBeeDevice>
|
|
@{
|
|
this.HtmlTitle = "设备列表";
|
|
}
|
|
<div class="box">
|
|
<table class="table table-bordered">
|
|
<tr>
|
|
<th>Sn编号</th>
|
|
<th>IEEE地址</th>
|
|
<th>地址</th>
|
|
<th>名称</th>
|
|
<th>分类</th>
|
|
<th>分类编号</th>
|
|
<th>电源</th>
|
|
<th>开关</th>
|
|
<th>删除</th>
|
|
</tr>
|
|
@foreach (var item in Model)
|
|
{
|
|
<tr>
|
|
<td>@item.Sn</td>
|
|
<td>@item.IEEE</td>
|
|
<td>@item.Address</td>
|
|
<td>@item.Name</td>
|
|
<td>@item.CategoryName</td>
|
|
<td>@item.CategoryNumber</td>
|
|
<td>@item.Power</td>
|
|
<td>
|
|
<a class="btn btn-primary cmd" href="/api/x82?sn=@item.Sn&ieee=@item.IEEE&status=1">开</a>
|
|
<a class="btn btn-primary cmd" href="/api/x82?sn=@item.Sn&ieee=@item.IEEE&status=0">关</a>
|
|
@if (item.DeviceId == 0x0202 || item.DeviceId == 0x0203)
|
|
{
|
|
<a class="btn btn-primary cmd" href="/api/x82?sn=@item.Sn&ieee=@item.IEEE&status=2">停</a>
|
|
}
|
|
</td>
|
|
<td><a class="btn btn-primary cmd" href="/api/x95?sn=@item.Sn&ieee=@item.IEEE">删除设备</a></td>
|
|
</tr>
|
|
}
|
|
</table>
|
|
</div> |