index.html 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. </html>
  2. <div class="bjui-pageHeader" data-layout-fixed="true">
  3. <div class="bjui-searchBar">
  4. <div class="btn-group">
  5. <button type="button" class="btn-green" >查询</button>
  6. <!-- showMoreSearch 记住显示状态data-name="custom2" -->
  7. <button type="button" class="btn-green" data-toggle="moresearch" title="更多查询条件"><i class="fa fa-angle-double-down"></i></button>
  8. </div>
  9. <span><a class="btn btn-orange" href="javascript:;" onclick="loadpage(this)" data-icon="undo"> 刷新</a></span>
  10. <!-- <span style="float:right;" ><a onclick="down_data('__MODULE__/Maintlist/downdata?',$('#Maintlist_form').serialize())" class="btn btn-blue" data-icon="arrow-up" ><i class="fa fa-arrow-down"></i> 导出</a></span> -->
  11. <span style="float:right;margin-right:20px; <php>echo display(CONTROLLER_NAME.'/add');</php> ">
  12. </span>
  13. <form data-toggle="ajaxsearch" data-options="{searchDatagrid:$.CurrentNavtab.find('#Maintlisttable')}" id="Maintlist_form">
  14. <div class="bjui-moreSearch">
  15. <fieldset>
  16. <legend style="font-weight:normal;">搜索:</legend>
  17. <div style="margin:0; padding:1px 5px 5px;">
  18. <span>单位名称:</span>
  19. <input name="name" size="12">&nbsp;
  20. <span>维修人员:</span>
  21. <input name="phone" size="12">&nbsp;
  22. <div class="btn-group">
  23. <button type="submit" class="btn-green" onclick="formnone()" data-icon="search">查询!</button>
  24. <button type="reset" class="btn-orange" data-icon="times">重置</button>
  25. </div>
  26. </div>
  27. </fieldset>
  28. </div>
  29. </form>
  30. </div>
  31. </div>
  32. <div class="bjui-pageContent">
  33. <table id='Maintlisttable'>
  34. <thead>
  35. <tr>
  36. <th data-options="{name:'owner_code',width:150}">设备ID</th>
  37. <th data-options="{name:'type',width:80}">类型</th>
  38. <th data-options="{name:'comp_name',width:200}">项目地点</th>
  39. <th data-options="{name:'datetime',width:170}">上报时间</th>
  40. <th data-options="{name:'editor'}">上报人</th>
  41. <th data-options="{name:'content',width:200}">详细信息</th>
  42. <th data-options="{name:'worker'}">维修人</th>
  43. <th data-options="{name:'status',width:70}">任务状态</th>
  44. <th data-options="{render:'Maintlist_opert',align:'center',quicksort:false}">操作</th>
  45. </tr>
  46. </thead>
  47. </table>
  48. </div>
  49. <script>
  50. mypage('#Maintlisttable',true,false,'__MODULE__/Maintlist/index/list/1');//表id ,取值url
  51. function updatestatus (tr,data){
  52. var buff='<img src="__PUBLIC__/images/locked.gif" style="cursor: pointer;border:none;"/>';
  53. if(data.status==1){
  54. buff='<img src="__PUBLIC__/images/ok.gif" border="0"/>';
  55. }
  56. return buff;
  57. }
  58. function Maintlist_opert(tr,data){
  59. return '<a class="btn btn-green" data-toggle="dialog" data-options={id:"Maintlist_edit",url:"__APP__/Home/Maintlist/edit/id/'+data.id+'",width:"450",height:"400",onClose:"Maintlist_sx"} data-mask="true" >查看</a>';
  60. }
  61. function Maintlist_sx(){
  62. $('#Maintlisttable').datagrid('refresh', {'filterFlag':true});
  63. }
  64. </script>