|  | @ -0,0 +1,135 @@
 | 
												
													
														
															|  | 
 |  | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="utf-8" %>
 | 
												
													
														
															|  | 
 |  | <%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
 | 
												
													
														
															|  | 
 |  | <script>
 | 
												
													
														
															|  | 
 |  |     (function ($, win) {
 | 
												
													
														
															|  | 
 |  |         $(function () {
 | 
												
													
														
															|  | 
 |  |             /* ************************** 变量定义 ******************************** */
 | 
												
													
														
															|  | 
 |  |             // 通用工具类库
 | 
												
													
														
															|  | 
 |  |             var Util = $.Util;
 | 
												
													
														
															|  | 
 |  |             var retrieve = null;
 | 
												
													
														
															|  | 
 |  |             var master = null;
 | 
												
													
														
															|  | 
 |  |             var isFirstPage = false;
 | 
												
													
														
															|  | 
 |  |             /* *************************** 函数定义 ******************************* */
 | 
												
													
														
															|  | 
 |  |             function pageInit() {
 | 
												
													
														
															|  | 
 |  |                 retrieve.init();
 | 
												
													
														
															|  | 
 |  |                 master.init();
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |             function reloadGrid(params) {
 | 
												
													
														
															|  | 
 |  |                 if (isFirstPage) {
 | 
												
													
														
															|  | 
 |  |                     this.grid.options.newPage = 1;
 | 
												
													
														
															|  | 
 |  |                 }
 | 
												
													
														
															|  | 
 |  |                 this.grid.setOptions({parms: params});
 | 
												
													
														
															|  | 
 |  |                 this.grid.loadData(true);
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |             /* *************************** 模块初始化 ***************************** */
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |             retrieve = {
 | 
												
													
														
															|  | 
 |  |                 $element: $('.m-retrieve-area'),
 | 
												
													
														
															|  | 
 |  |                 $searchBtn: $('#btn_search'),
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |                 $params: $("#inp_params"),//参数
 | 
												
													
														
															|  | 
 |  |                 $startDate: $("#inp_startDate"),
 | 
												
													
														
															|  | 
 |  |                 $endDate: $("#inp_endDate"),
 | 
												
													
														
															|  | 
 |  |                 init: function () {
 | 
												
													
														
															|  | 
 |  |                     this.$element.show();
 | 
												
													
														
															|  | 
 |  |                     this.$element.attrScan();
 | 
												
													
														
															|  | 
 |  |                     window.form = this.$element;
 | 
												
													
														
															|  | 
 |  |                     this.$params.ligerTextBox({width: 300});
 | 
												
													
														
															|  | 
 |  |                     this.$startDate.ligerDateEditor({
 | 
												
													
														
															|  | 
 |  |                         format: "yyyy-MM-dd",
 | 
												
													
														
															|  | 
 |  |                         showTime: false,
 | 
												
													
														
															|  | 
 |  |                         labelWidth: 100,
 | 
												
													
														
															|  | 
 |  |                         labelAlign: 'center',
 | 
												
													
														
															|  | 
 |  |                         cancelable: true
 | 
												
													
														
															|  | 
 |  |                     });
 | 
												
													
														
															|  | 
 |  |                     this.$endDate.ligerDateEditor({
 | 
												
													
														
															|  | 
 |  |                         format: "yyyy-MM-dd",
 | 
												
													
														
															|  | 
 |  |                         showTime: false,
 | 
												
													
														
															|  | 
 |  |                         labelWidth: 100,
 | 
												
													
														
															|  | 
 |  |                         labelAlign: 'center',
 | 
												
													
														
															|  | 
 |  |                         cancelable: true
 | 
												
													
														
															|  | 
 |  |                     });
 | 
												
													
														
															|  | 
 |  |                     this.bindEvents();
 | 
												
													
														
															|  | 
 |  |                 },
 | 
												
													
														
															|  | 
 |  |                 bindEvents: function () {
 | 
												
													
														
															|  | 
 |  |                     var self = this;
 | 
												
													
														
															|  | 
 |  |                     self.$searchBtn.click(function () {
 | 
												
													
														
															|  | 
 |  |                         master.grid.options.newPage = 1;
 | 
												
													
														
															|  | 
 |  |                         master.reloadGrid();
 | 
												
													
														
															|  | 
 |  |                     });
 | 
												
													
														
															|  | 
 |  |                 }
 | 
												
													
														
															|  | 
 |  |             };
 | 
												
													
														
															|  | 
 |  |             master = {
 | 
												
													
														
															|  | 
 |  |                 payLogInfoDialog: null,
 | 
												
													
														
															|  | 
 |  |                 grid: null,
 | 
												
													
														
															|  | 
 |  |                 init: function () {
 | 
												
													
														
															|  | 
 |  |                     this.grid = $("#div_paylog_list").ligerGrid($.LigerGridEx.config({
 | 
												
													
														
															|  | 
 |  |                         url: ctx + '/admin/paylog/list',
 | 
												
													
														
															|  | 
 |  |                         parms: {},
 | 
												
													
														
															|  | 
 |  |                         ajaxHeader: ajaxHeaderName,
 | 
												
													
														
															|  | 
 |  |                         ajaxHeaderValue: ajaxHeaderValue,
 | 
												
													
														
															|  | 
 |  |                         columns: [
 | 
												
													
														
															|  | 
 |  |                             {display: 'id', name: 'id', hide: true},
 | 
												
													
														
															|  | 
 |  |                             {
 | 
												
													
														
															|  | 
 |  |                                 display: '接口类型', name: 'type', width: '10%', align: "left",
 | 
												
													
														
															|  | 
 |  |                                 render: function (row) {
 | 
												
													
														
															|  | 
 |  |                                     if (row.type == 0) {
 | 
												
													
														
															|  | 
 |  |                                         return "家庭签约支付"
 | 
												
													
														
															|  | 
 |  |                                     }
 | 
												
													
														
															|  | 
 |  |                                     if (row.type == 1) {
 | 
												
													
														
															|  | 
 |  |                                         return "续方支付"
 | 
												
													
														
															|  | 
 |  |                                     }
 | 
												
													
														
															|  | 
 |  |                                 }
 | 
												
													
														
															|  | 
 |  |                             },
 | 
												
													
														
															|  | 
 |  |                             {display: '业务内容', name: 'content', width: '10%', align: "left"},
 | 
												
													
														
															|  | 
 |  |                             {display: '调用接口', name: 'api', width: '10%', align: "left"},
 | 
												
													
														
															|  | 
 |  |                             {display: '调用方式', name: 'method', width: '5%', align: "left"},
 | 
												
													
														
															|  | 
 |  |                             {display: '调用参数', name: 'params', width: '10%', align: "left"},
 | 
												
													
														
															|  | 
 |  |                             {display: '调用头部信息', name: 'header', width: '10%', align: "left"},
 | 
												
													
														
															|  | 
 |  |                             {display: '返回结果', name: 'response', width: '10%', align: "left"},
 | 
												
													
														
															|  | 
 |  |                             {display: '错误信息', name: 'error', width: '10%', align: "left"},
 | 
												
													
														
															|  | 
 |  |                             {display: '重试次数', name: 'retryTimes', width: '5%', align: "left"},
 | 
												
													
														
															|  | 
 |  |                             {
 | 
												
													
														
															|  | 
 |  |                                 display: '状态', name: 'status', width: '5%', align: "left",
 | 
												
													
														
															|  | 
 |  |                                 render: function (row) {
 | 
												
													
														
															|  | 
 |  |                                     if (row.status == 0) {
 | 
												
													
														
															|  | 
 |  |                                         return "失败"
 | 
												
													
														
															|  | 
 |  |                                     }
 | 
												
													
														
															|  | 
 |  |                                     if (row.status == 1) {
 | 
												
													
														
															|  | 
 |  |                                         return "成功"
 | 
												
													
														
															|  | 
 |  |                                     }
 | 
												
													
														
															|  | 
 |  |                                     if (row.status == 2) {
 | 
												
													
														
															|  | 
 |  |                                         return "已重试"
 | 
												
													
														
															|  | 
 |  |                                     }
 | 
												
													
														
															|  | 
 |  |                                 }
 | 
												
													
														
															|  | 
 |  |                             },
 | 
												
													
														
															|  | 
 |  |                             {display: '创建时间', name: 'createTime', width: '10%', align: "left"},
 | 
												
													
														
															|  | 
 |  |                         ],
 | 
												
													
														
															|  | 
 |  |                     }));
 | 
												
													
														
															|  | 
 |  |                     // 自适应宽度
 | 
												
													
														
															|  | 
 |  |                     this.grid.adjustToWidth();
 | 
												
													
														
															|  | 
 |  |                 },
 | 
												
													
														
															|  | 
 |  |                 reloadGrid: function (msg) {
 | 
												
													
														
															|  | 
 |  |                     retrieve.$element.attrScan();
 | 
												
													
														
															|  | 
 |  |                     var values = retrieve.$element.Fields.getValues();
 | 
												
													
														
															|  | 
 |  |                     reloadGrid.call(this, values);
 | 
												
													
														
															|  | 
 |  |                 },
 | 
												
													
														
															|  | 
 |  |             };
 | 
												
													
														
															|  | 
 |  |             /* ************************* Dialog页面回调接口 ************************** */
 | 
												
													
														
															|  | 
 |  |             win.reloadMasterGrid = function (msg) {
 | 
												
													
														
															|  | 
 |  |                 if (isNoEmpty(msg)) {
 | 
												
													
														
															|  | 
 |  |                     $.Notice.success(msg);
 | 
												
													
														
															|  | 
 |  |                 }
 | 
												
													
														
															|  | 
 |  |                 master.reloadGrid(msg);
 | 
												
													
														
															|  | 
 |  |             };
 | 
												
													
														
															|  | 
 |  |             win.closePayLogInfoDialog = function () {
 | 
												
													
														
															|  | 
 |  |                 master.payLogInfoDialog.close();
 | 
												
													
														
															|  | 
 |  |             };
 | 
												
													
														
															|  | 
 |  |             /* *************************** 页面初始化 **************************** */
 | 
												
													
														
															|  | 
 |  |             pageInit();
 | 
												
													
														
															|  | 
 |  |         });
 | 
												
													
														
															|  | 
 |  |     })(jQuery, window);
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  | </script>
 |