作者 董瑞恩
1 个管道 的构建 通过 耗费 0 秒

interface

@@ -55,7 +55,7 @@ @@ -55,7 +55,7 @@
55 <th>设备锁编号</th> 55 <th>设备锁编号</th>
56 <th>设备锁名称</th> 56 <th>设备锁名称</th>
57 <th>初始医院设置</th> 57 <th>初始医院设置</th>
58 - <th>设备电量状态</th> 58 + <th>设备状态(电量/使用/设备)</th>
59 <th>导入时间</th> 59 <th>导入时间</th>
60 <th>二维码</th> 60 <th>二维码</th>
61 <th>备注</th> 61 <th>备注</th>
@@ -87,6 +87,14 @@ @@ -87,6 +87,14 @@
87 <case value="0"><span class="label label-warning">低电</span></case> 87 <case value="0"><span class="label label-warning">低电</span></case>
88 <case value="1"><span class="label label-success">正常</span></case> 88 <case value="1"><span class="label label-success">正常</span></case>
89 </switch> 89 </switch>
  90 + <switch name="vo.use">
  91 + <case value="0"><span class="label label-success">空闲</span></case>
  92 + <case value="1"><span class="label label-warning">占用</span></case>
  93 + </switch>
  94 + <switch name="vo.state">
  95 + <case value="1"><span class="label label-success">正常</span></case>
  96 + <case value="2"><span class="label label-warning">检修</span></case>
  97 + </switch>
90 </td> 98 </td>
91 <td> 99 <td>
92 {:date('Y-m-d H:i:s',$vo.create_time)} 100 {:date('Y-m-d H:i:s',$vo.create_time)}
@@ -98,12 +106,6 @@ @@ -98,12 +106,6 @@
98 {$vo.note} 106 {$vo.note}
99 </td> 107 </td>
100 <td> 108 <td>
101 - <switch name="vo.use">  
102 - <case value="0"><span class="label label-success">空闲</span></case>  
103 - <case value="1"><span class="label label-warning">占用</span></case>  
104 - </switch>  
105 - </td>  
106 - <td>  
107 <a onclick="doEdit(Number('{$vo.id}'))">{:lang('EDIT')}</a> 109 <a onclick="doEdit(Number('{$vo.id}'))">{:lang('EDIT')}</a>
108 <a href="{:url('AdminEquipment/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a> 110 <a href="{:url('AdminEquipment/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a>
109 </td> 111 </td>