1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- </html>
- <div class="bjui-pageHeader" data-layout-fixed="true">
- <div class="bjui-searchBar">
- <div class="btn-group">
- <button type="button" class="btn-green" >查询</button>
- <!-- showMoreSearch 记住显示状态data-name="custom2" -->
- <button type="button" class="btn-green" data-toggle="moresearch" title="更多查询条件"><i class="fa fa-angle-double-down"></i></button>
- </div>
- <span><a class="btn btn-orange" href="javascript:;" onclick="loadpage(this)" data-icon="undo"> 刷新</a></span>
- <!-- <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> -->
- <span style="float:right;margin-right:20px; <php>echo display(CONTROLLER_NAME.'/add');</php> ">
- </span>
-
- <form data-toggle="ajaxsearch" data-options="{searchDatagrid:$.CurrentNavtab.find('#Maintrwtable')}" id="Maintrw_form">
- <div class="bjui-moreSearch">
- <fieldset>
- <legend style="font-weight:normal;">搜索:</legend>
- <div style="margin:0; padding:1px 5px 5px;">
- <span>单位名称:</span>
- <input name="name" size="12">
- <span>维修人员:</span>
- <input name="phone" size="12">
- <div class="btn-group">
- <button type="submit" class="btn-green" onclick="formnone()" data-icon="search">查询!</button>
- <button type="reset" class="btn-orange" data-icon="times">重置</button>
- </div>
- </div>
- </fieldset>
- </div>
- </form>
- </div>
-
- </div>
- <div class="bjui-pageContent">
- <table id='Maintrwtable'>
- <thead>
- <tr>
- <th data-options="{name:'owner_code',width:150}">设备ID</th>
- <th data-options="{name:'type',width:80}">类型</th>
- <th data-options="{name:'comp_name',width:200}">项目地点</th>
- <th data-options="{name:'datetime',width:170}">上报时间</th>
- <th data-options="{name:'editor'}">上报人</th>
- <th data-options="{name:'content',width:200}">详细信息</th>
- <th data-options="{name:'worker'}">维修人</th>
- <th data-options="{name:'status',width:70}">任务状态</th>
- <th data-options="{render:'Maintrw_opert',align:'center',quicksort:false}">操作</th>
- </tr>
- </thead>
- </table>
- </div>
- <script>
- mypage('#Maintrwtable',true,false,'__MODULE__/Maintrw/index/list/1');//表id ,取值url
- function updatestatus (tr,data){
- var buff='<img src="__PUBLIC__/images/locked.gif" style="cursor: pointer;border:none;"/>';
- if(data.status==1){
- buff='<img src="__PUBLIC__/images/ok.gif" border="0"/>';
- }
- return buff;
-
- }
- function Maintrw_opert(tr,data){
- 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>'+
- '<a class="btn btn-red" onclick="Data_del(\'__MODULE__/Maintrw/deldata/id/\','+data.id+',\'#Maintrwtable\')" data-mask="true" >删除</a>';
- }
- function Maintrw_sx(){
- $('#Maintrwtable').datagrid('refresh', {'filterFlag':true});
- }
- </script>
|