index.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <div class="bjui-pageHeader" data-layout-fixed="true">
  2. <div class="bjui-searchBar">
  3. <div class="btn-group">
  4. <button type="button" class="btn-green" >查询</button>
  5. <!-- showMoreSearch 记住显示状态data-name="custom2" -->
  6. <button type="button" class="btn-green" data-toggle="moresearch" title="更多查询条件"><i class="fa fa-angle-double-down"></i></button>
  7. </div>
  8. <!-- <button type="button" onclick="Data_upd('__MODULE__/Devices/paidan','#Devices',$('#Devices_sele option:selected').val())" class="btn-green">派单</button>
  9. <select id="Devices_sele" data-toggle="selectpicker">
  10. <option value="">请选择</option>
  11. <foreach name="user" item="u">
  12. <option value="{$u.agentid}">{$u.truename}</option>
  13. </foreach>
  14. </select> -->
  15. <span><a class="btn btn-orange" href="javascript:;" onclick="Devices_sx()" data-icon="undo"> 刷新</a></span>
  16. <!-- <span style="float:right;" ><a onclick="down_data('__MODULE__/Devices/downdata?',$('#Devices_form').serialize())" class="btn btn-blue" data-icon="arrow-up" ><i class="fa fa-arrow-down"></i> 导出</a></span> -->
  17. </div>
  18. <form data-toggle="ajaxsearch" data-options="{searchDatagrid:$.CurrentNavtab.find('#Devices')}" id="Devices_form">
  19. <div class="bjui-moreSearch">
  20. <fieldset>
  21. <legend style="font-weight:normal;">搜索:</legend>
  22. <div style="margin:0; padding:1px 5px 5px;">
  23. <table class="table-condensed" width="100%">
  24. <tr><td>
  25. <span>设备ID:</span>
  26. <input name="deviceid" size="10">&nbsp;
  27. <div class="btn-group">
  28. <button type="submit" class="btn-green" onclick="formnone()" data-icon="search">查询!</button>
  29. <button type="reset" class="btn-orange" data-icon="times">重置</button>
  30. </div>
  31. </td></tr>
  32. <tr><td>
  33. </td></tr>
  34. </table>
  35. </div>
  36. </div>
  37. </fieldset>
  38. </div>
  39. </form>
  40. </div>
  41. <!--header end -->
  42. <div class="bjui-pageContent">
  43. <table id='Devices'>
  44. <thead>
  45. <tr>
  46. <th data-options="{name:'truename'}">所属客户</th>
  47. <th data-options="{name:'regtime',width:170}">安装时间</th>
  48. <th data-options="{name:'deviceid'}">设备ID</th>
  49. <th data-options="{name:'devicetype'}">设备类型</th>
  50. <th data-options="{name:'devname'}">设备名称</th>
  51. <th data-options="{name:'devstatus'}">设备状态</th>
  52. <th data-options="{name:'linkstatus'}">联网状态</th>
  53. <th data-options="{name:'phone'}">手机卡号</th>
  54. <th data-options="{name:'installman'}">安装人员</th>
  55. <th data-options="{name:'devaddre'}">设备地址</th>
  56. <th data-options="{name:'installphone'}">联系电话</th>
  57. <th data-options="{name:'lastupdate'}">编辑时间</th>
  58. <th data-options="{name:'updateman'}">编辑人</th>
  59. <th data-options="{render:'Devicesedit',align:'center',quicksort:false}">操作</th>
  60. </tr>
  61. </thead>
  62. </table>
  63. </div>
  64. <script>
  65. $(function(){
  66. mypage('#Devices',true,false,'__MODULE__/Devices/index/list/l/');//表id ,取值url
  67. });
  68. function Devices_sx(){
  69. $('#Devices').datagrid('refresh', {'filterFlag':true});
  70. }
  71. function Devicesedit(tr,data){
  72. //'<a class="btn btn-red" onclick="Data_del(\'__MODULE__/User/del\','+data.id+',\'#usertable\')" data-mask="true" >删除</a>';
  73. return '<a class="btn btn-green" data-toggle="dialog" '+
  74. 'data-options={id:"user_edit",url:"__APP__/Home/Devices/edit/id/'+data.deviceid+'",width:"700",height:"700",onClose:"Devices_sx"} data-mask="true" >配置</a>';
  75. }
  76. </script>