| <!DOCTYPE HTML> | 
| <html xmlns:th="http://www.thymeleaf.org" xmlns:matrix="http://www.w3.org/1999/xhtml"> | 
| <head> | 
|     <meta charset="utf-8"> | 
|     <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> | 
|     <meta name="renderer" content="webkit|ie-comp|ie-stand"> | 
|     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | 
|     <meta name="viewport" | 
|           content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/> | 
|     <meta http-equiv="Cache-Control" content="no-siteapp"/> | 
|     <!-- 本框架基本脚本和样式 --> | 
|     <script type="text/javascript" | 
|             th:src="@{/js/plugin/jquery-2.1.4.min.js}"></script> | 
|     <script type="text/javascript" th:src="@{/js/systools/MBase.js}"></script> | 
|   | 
| </head> | 
| <body class=" container-fluid"> | 
| <div class="pd-10"> | 
|     <!-- 搜索框部分start --> | 
|     <div class="row form-head"> | 
|         <form class="form-inline" id="serchform"> | 
|             <div class="form-group mr-20"> | 
|                 <label >岗位编号</label> | 
|                 <input autocomplete="off"   name="postNo" type="text" class="form-control"> | 
|             </div> | 
|             <div class="form-group mr-20"> | 
|                 <label >岗位名称</label> | 
|                 <input autocomplete="off"   name="postType" type="text" class="form-control"> | 
|             </div> | 
|   | 
|             <div class="form-group"> | 
|                 <button onclick="myGrid.serchData(1)" type="button" | 
|                         class="btn btn-sm btn-info"> | 
|                     <i class="fa fa-search "></i> 搜索 | 
|                 </button> | 
|                 <button type="reset" class="btn btn-sm btn-info "> | 
|                     <i class="fa fa-refresh "></i> 重置 | 
|                 </button> | 
|             </div> | 
|         </form> | 
|     </div> | 
|     <div class="row mt-10"> | 
|         <div id="option-bar"> | 
|             <!-- 功能按钮部分 --> | 
|   | 
|   | 
|             <button matrix:btn="postType-add"  onclick="openAdd()" type="button" class="btn btn-info btn-sm"><i class="fa fa-plus" ></i>  新增</button> | 
|             <button matrix:btn="postType-edit"  onclick="openEdit()" type="button" class="btn btn-info btn-sm"><i class="fa fa-edit" ></i> 编辑</button> | 
|             <button matrix:btn="postType-dels"  onclick="myGrid.delItems()" type="button" class="btn btn-danger btn-sm"><i class="fa fa-trash" ></i>批量删除</button> | 
|   | 
|   | 
|             <span class=" alert-warning btn-sm" type="button" > | 
|                 <b>提示:</b> 系统的数据根据岗位的不同做数据隔离,【管理员】 岗位是系统的最高管理权限 | 
|             </span> | 
|         </div> | 
|         <!-- 数据表格部分 --> | 
|         <table id="mgrid"> | 
|             <thead> | 
|             <tr> | 
|                 <th data-checkbox="true"  ></th> | 
|                 <th data-formatter="MGrid.indexfn" data-align="center"  data-width="30px" >序号</th> | 
|                 <th data-field="postNo" data-sortable="true">岗位编号</th> | 
|                 <th data-field="postType" >岗位名称</th> | 
|                 <th data-field="remark" >备注</th> | 
|             </tr> | 
|             </thead> | 
|         </table> | 
|         <!-- 数据表格部分end --> | 
|     </div> | 
| </div> | 
|   | 
| <script type="text/javascript" th:src="@{/js/systools/MJsBase.js}"></script> | 
| <script type="text/javascript"> | 
|     var myGrid; | 
|     $(function(){ | 
|         myGrid=MGrid.initGrid({ | 
|             url:basePath+"/admin/postType/showList", | 
|             delUrl:basePath+"/admin/postType/del" | 
|         }); | 
|     }); | 
|   | 
|     //打开添加界面 | 
|         function openAdd() { | 
|             layer.open({ | 
|                 type : 2, | 
|                 title : "添加岗位", | 
|                 area : [ MUI.SIZE_L, '400px' ], | 
|                 content : [ basePath+'/admin/postType/editForm'] | 
|             }); | 
|         } | 
|   | 
|         //打开编辑界面 | 
|         function openEdit() { | 
|             var id=myGrid.getSelectItemId(); | 
|             layer.open({ | 
|                 type : 2, | 
|                 title : "编辑岗位", | 
|                 area : [ MUI.SIZE_L, '400px' ], | 
|                 maxmin : true, | 
|                 content : [ basePath+'/admin/postType/editForm?id=' + id] | 
|             }); | 
|         } | 
| </script> | 
|   | 
|   | 
|   | 
|   | 
| </body> | 
| </html> |