Browse Source

员工排序修改

wangxiaoming 7 years ago
parent
commit
841a463763

+ 1 - 0
watero-rst-service/src/main/java/com/iamberry/rst/service/pts/mapper/ptsEmployeeMapper.xml

@@ -79,6 +79,7 @@
                 AND employee_tel like CONCAT('%',#{employeeTel},'%')
             </if>
         </where>
+        ORDER BY employee_id DESC
     </select>
 
 

+ 8 - 6
watero-rst-web/src/main/webapp/WEB-INF/views/pts/employee/employee_list.ftl

@@ -10,6 +10,9 @@
     <link rel="Shortcut Icon" href="/favicon.ico" />
 <#include "/base/list_base.ftl">
     <title>员工列表</title>
+    <style>
+        .my-btn-search{border: 1px solid #32a3d8;padding: 1px 25px;height: 32px;background-color: #32a3d8;color: #fff;}
+    </style>
 </head>
 <body>
 <nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
@@ -20,18 +23,16 @@
 <div class="page-container">
     <div class="text-c">
         <form action="${path}/admin/employee/_employee_list" method="post">
+            <button type="button" style="cursor:pointer;" class="my-btn-search" onclick="toAddEmployee();">增加员工</button>
             <input type="text" class="input-text" style="width:150px" value="${employeeNo!}" placeholder="员工编号" id="employeeNo" name="employeeNo">
             <input type="text" class="input-text" style="width:150px" value="${employeeName!}" placeholder="员工姓名" id="employeeName" name="employeeName">
             <input type="text" class="input-text" style="width:150px" value="${employeeTel!}" placeholder="员工电话" id="employeeTel" name="employeeTel">
             <button type="submit" class="btn" style="background: #32a3d8;color: #fff;-webkit-transform:translateY(-5%);" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
         </form>
     </div>
-    <div class="cl pd-5 bk-gray mt-20">
-            <span class="l">
-                <button onClick="toAddEmployee()" class="btn radius" style="background: #58d2ea;color: #fff;" type="button"><i class="Hui-iconfont">&#xe604;</i>增加员工</button>
-            </span>
-    </div>
-    <table class="table table-border table-bordered table-hover">
+
+    <div class="mt-20">
+        <table class="table table-border table-bordered table-bg table-hover table-sort">
         <thead>
         <tr>
             <th scope="col" colspan="18">员工列表</th>
@@ -80,6 +81,7 @@
 
         </tbody>
     </table>
+    </div>
 </div>
 <tfoot>
 <#include "/base/page_util.ftl">