index.html 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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__/Maintrw/downdata?',$('#Maintrw_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('#Maintrwtable')}" id="Maintrw_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='Maintrwtable'>
  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:'Maintrw_opert',align:'center',quicksort:false}">操作</th>
  45. </tr>
  46. </thead>
  47. </table>
  48. </div>
  49. <script>
  50. mypage('#Maintrwtable',true,false,'__MODULE__/Maintrw/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 Maintrw_opert(tr,data){
  59. return '<a class="btn btn-green" data-toggle="dialog" data-options={id:"Maintrw_edit",url:"__APP__/Home/Maintrw/edit/id/'+data.id+'",width:"450",height:"400",onClose:"Maintrw_sx"} data-mask="true" >分配</a>'+
  60. '<a class="btn btn-red" onclick="Data_del(\'__MODULE__/Maintrw/deldata/id/\','+data.id+',\'#Maintrwtable\')" data-mask="true" >删除</a>';
  61. }
  62. function Maintrw_sx(){
  63. $('#Maintrwtable').datagrid('refresh', {'filterFlag':true});
  64. }
  65. </script>