12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- </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__/Maintlist/downdata?',$('#Maintlist_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('#Maintlisttable')}" id="Maintlist_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='Maintlisttable'>
- <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:'Maintlist_opert',align:'center',quicksort:false}">操作</th>
- </tr>
- </thead>
- </table>
- </div>
- <script>
- mypage('#Maintlisttable',true,false,'__MODULE__/Maintlist/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 Maintlist_opert(tr,data){
- 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>';
- }
- function Maintlist_sx(){
- $('#Maintlisttable').datagrid('refresh', {'filterFlag':true});
- }
- </script>
|