1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <%@ 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 test(value,row,index){
- // return '<a href="#">' + row['id'] + '</a>';
- return '<a href="#">编辑 </a>|<a href="#">删除</a>';
- }
-
- function format_action(value,row,index){
- var orderId;
- var type=0;
- //订单编号为空
- if(row.orderId!=null){
- orderId=row.orderId
- type=1;
- }else{
- orderId=row.id;
- type=0;
- }
- var id=row.order
- var returnhtml = '<a href="javascript:show('+orderId+','+type+');">查看详情 </a>';
- return returnhtml;
- }
-
- function show(id,type){
- $.openDlg({
- url:'transfer.cs?action=view&id=' +id+'&type='+type,
- title:'查看详情',
- width:'95%',
- height:'95%',
- });
- }
- </script>
- </head>
- <body class="gray-bg">
- <div class="wrapper wrapper-content animated fadeInUp">
- <!-- <div class="ibox " style=""> -->
- <!-- <div class="ibox-content"> -->
- <div class="row row-lg">
- <div class="col-sm-12">
- <table id="tab_user"
- data-toggle="table"
- data-url="list2.cs"
- data-method="get"
- data-click-to-select="true"
- data-pagination="true"
- data-data-type="json"
- data-show-refresh="true"
- data-show-columns="true"
- data-show-toggle="true"
- 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-checkbox="true" data-click-to-select="true"></th>
- <th data-field="id">id</th>
- <th data-field="orderId">订单编号</th>
- <th data-field="name">客户姓名</th>
- <th data-field="phone">联系电话</th>
- <th data-field="attributionArea">地区</th>
- <th data-field="recommendName">推介人</th>
- <th data-field="createDate" data-formatter="format_time">首次推介时间</th>
- <th data-field="amount">成交总额</th>
- <th data-formatter="format_action">操作</th>
- </tr>
- </thead>
- </table>
-
- </div>
-
- </div>
-
- <!-- </div> -->
- <!-- </div> -->
- </div>
-
- </body>
- </html>
|