123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <%@taglib prefix="p" uri="http://www.test.com/jsp/permission" %>
- <!doctype html>
- <html>
- <head>
- <%@ include file="../../common/head.jsp"%>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <link href="../res/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet" />
- <script src="../res/js/plugins/bootstrap-table/bootstrap-table.js"></script>
- <script src="../res/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
- <script src="../res/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
- <script>
-
-
- $(function(){
- $('#btnSearch').click(function () {
- $('#tab_user').bootstrapTable('refresh');
- });
-
- $('#clearHref').click(function () {
- $('#myform')[0].reset();
- });
-
-
- //btmAssign
- $('#btmAssign').click(function () {
- var data = getSelectedRow("tab_user");
- if(null == data){
- layer.alert('请选择推荐人员', {icon: 6});
- return;
- }
-
- $.ajax({
- type: 'POST',
- url: 'assignActionTj.cs',
- data: {"userId" : data.id,"orderId":"${orderId}"},
- success: function(data) {
- layer.confirm(data.msg, {
- btn: ['确定'] //可以无限个按钮
- }, function(index, layero){
- var index = parent.layer.getFrameIndex(window.name);
- parent.location.reload();
- parent.layer.close(index);
- });
- },
- dataType:"json"
- });
- });
- });
-
- function queryParams(params){
- var page = params.offset / params.limit + 1;
- var dataObj = new Object();
- //alert($("#search").val());
- dataObj.name=$("#name").val();
- return { page:page,
- pageSize:params.limit,
- search:JSON.stringify(dataObj),
- sort:params.sort,
- order:params.order,
- };
- }
- </script>
- </head>
- <body class="gray-bg">
- <div class="wrapper wrapper-content animated fadeInUp">
- <div class="row row-lg">
- <div class="col-sm-12">
- <form class="form-inline" id="myform">
- <div class="form-group col-sm-3"></div>
- <button type="button" id="btmAssign" class="btn btn-w-m btn-danger">指定推荐人</button>
- </form>
-
-
-
- <table id="tab_user"
- data-toggle="table"
- data-url="mgmUserListTj.cs?customerId=${customerId}"
- data-method="get"
- data-click-to-select="true"
- data-pagination="true"
- data-data-type="json"
- data-show-refresh="false"
- data-show-columns="false"
- data-show-toggle="false"
- data-search-on-enter-key="true"
- data-toolbar="#def_toolbar"
- data-side-pagination="server"
- data-query-params="queryParams"
- data-mobile-responsive="true"
- >
- <thead>
- <tr>
- <th data-radio="true" data-click-to-select="true"></th>
- <th data-field="id" data-visible="false">id</th>
- <th data-field="name">姓名</th>
- <th data-field="dept_name">部门</th>
- <th data-field="phone">电话</th>
- <th data-field="post">职务</th>
- </tr>
- </thead>
- </table>
- </div>
- </div>
- </div>
- </body>
- </html>
|