|  | @@ -0,0 +1,115 @@
 | 
	
		
			
				|  |  | +<%@ page contentType="text/html;charset=UTF-8" language="java" %>
 | 
	
		
			
				|  |  | +<html>
 | 
	
		
			
				|  |  | +<head>
 | 
	
		
			
				|  |  | +    <title>项目转换统计详情</title>
 | 
	
		
			
				|  |  | +    <jsp:include page="../../common/common-meta-include.jsp"></jsp:include>
 | 
	
		
			
				|  |  | +    <link rel="stylesheet" type="text/css" href="${WebSite.asset}/lib/layui-v2.5.5/css/layui.css?version=${version}" media="all"/>
 | 
	
		
			
				|  |  | +    <link rel="stylesheet" type="text/css" href="${WebSite.asset}/lib/layui-v2.5.5/css/public.css?version=${version}" media="all"/>
 | 
	
		
			
				|  |  | +</head>
 | 
	
		
			
				|  |  | +<body>
 | 
	
		
			
				|  |  | +    <div class="layuimini-container">
 | 
	
		
			
				|  |  | +    <div class="layuimini-main">
 | 
	
		
			
				|  |  | +        <div class="table_box" style="padding-top: 0;">
 | 
	
		
			
				|  |  | +            <div class="table_process">
 | 
	
		
			
				|  |  | +                <table id="meeting" lay-filter="meeting"></table>
 | 
	
		
			
				|  |  | +                <div class="pagination-box" id="pagination"></div>
 | 
	
		
			
				|  |  | +            </div>
 | 
	
		
			
				|  |  | +        </div>
 | 
	
		
			
				|  |  | +    </div>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    <jsp:include page="../../common/common-js-include.jsp"></jsp:include>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    <script type="text/javascript">
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        // 将传递的参数存储到 JavaScript 变量中
 | 
	
		
			
				|  |  | +        var projectDate = "${projectDate}";
 | 
	
		
			
				|  |  | +        var kind = "${kind}";
 | 
	
		
			
				|  |  | +        var title = "${title}";
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        App.namespace("App.projects.meeting.xhzhtjDetail");
 | 
	
		
			
				|  |  | +        (function ($, mod) {
 | 
	
		
			
				|  |  | +            mod = mod || {}; //对象声明
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            // ---------------变量声明--------------
 | 
	
		
			
				|  |  | +            var _table = layui.table,
 | 
	
		
			
				|  |  | +                pageNo = 1,
 | 
	
		
			
				|  |  | +                pageSize = 10,
 | 
	
		
			
				|  |  | +                _tableName = "meeting";
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            // ---------------私有方法定义---------------
 | 
	
		
			
				|  |  | +            var methods = {
 | 
	
		
			
				|  |  | +                init: function () {
 | 
	
		
			
				|  |  | +                    methods.getData();
 | 
	
		
			
				|  |  | +                },
 | 
	
		
			
				|  |  | +                getData: function () {
 | 
	
		
			
				|  |  | +                    var searchForm = {};
 | 
	
		
			
				|  |  | +                    searchForm.pageNo = pageNo;
 | 
	
		
			
				|  |  | +                    searchForm.pageSize = pageSize;
 | 
	
		
			
				|  |  | +                    searchForm.projectDate = projectDate; // 将项目日期加入查询参数
 | 
	
		
			
				|  |  | +                    searchForm.kind = kind; // 将类型加入查询参数
 | 
	
		
			
				|  |  | +                    searchForm.title = title; // 将说明加入查询参数
 | 
	
		
			
				|  |  | +                    //查询当前没有被纳入的
 | 
	
		
			
				|  |  | +                    App.postJson("/api/tzfx/getXmzhtjDetailData", searchForm, function (res) {
 | 
	
		
			
				|  |  | +                        methods.initTable(res.rows);
 | 
	
		
			
				|  |  | +                        methods.loadPage(res.total);
 | 
	
		
			
				|  |  | +                    });
 | 
	
		
			
				|  |  | +                },
 | 
	
		
			
				|  |  | +                initTable: function (data) {
 | 
	
		
			
				|  |  | +                    layui.table.render({
 | 
	
		
			
				|  |  | +                        elem: "#" + _tableName, // 指定原始表格元素选择器(推荐id选择器)
 | 
	
		
			
				|  |  | +                        even: true,
 | 
	
		
			
				|  |  | +                        defaultToolbar: [],
 | 
	
		
			
				|  |  | +                        cols: [[ // 设置表头
 | 
	
		
			
				|  |  | +                            {type: 'numbers', title: '序号', align: 'center', width: 80},
 | 
	
		
			
				|  |  | +                            {field: 'subName', title: '项目名称', minwidth: 80,},
 | 
	
		
			
				|  |  | +                            {
 | 
	
		
			
				|  |  | +                                field: 'kind',
 | 
	
		
			
				|  |  | +                                title: '类型',
 | 
	
		
			
				|  |  | +                                minWidth: 80,
 | 
	
		
			
				|  |  | +                                templet: function (row) {
 | 
	
		
			
				|  |  | +                                    // 判断 kind 的值,进行转换
 | 
	
		
			
				|  |  | +                                    return row.kind === '1' ? '正转' : (row.kind === '2' ? '逆转' : '未知');
 | 
	
		
			
				|  |  | +                                }
 | 
	
		
			
				|  |  | +                            },
 | 
	
		
			
				|  |  | +                            {field: 'title', title: '说明', minwidth: 80,},
 | 
	
		
			
				|  |  | +                            {field: 'createTime', title: '操作时间', minwidth: 80,},
 | 
	
		
			
				|  |  | +                            {field: 'subName', title: '操作人', minwidth: 80,}
 | 
	
		
			
				|  |  | +                        ]],
 | 
	
		
			
				|  |  | +                        limit: pageSize,
 | 
	
		
			
				|  |  | +                        data: data
 | 
	
		
			
				|  |  | +                    });
 | 
	
		
			
				|  |  | +                    layui.table.on('tool(' + _tableName + ')', function (obj) {
 | 
	
		
			
				|  |  | +                        var event = obj.event;
 | 
	
		
			
				|  |  | +                        methods[event].call(this, obj);
 | 
	
		
			
				|  |  | +                    });
 | 
	
		
			
				|  |  | +                },
 | 
	
		
			
				|  |  | +                loadPage: function (totalCount) {
 | 
	
		
			
				|  |  | +                    var self = this;
 | 
	
		
			
				|  |  | +                    layui.laypage.render({
 | 
	
		
			
				|  |  | +                        elem: 'pagination',
 | 
	
		
			
				|  |  | +                        count: totalCount,
 | 
	
		
			
				|  |  | +                        curr: pageNo,
 | 
	
		
			
				|  |  | +                        limit: pageSize,
 | 
	
		
			
				|  |  | +                        layout: ['count', 'prev', 'page', 'next', 'skip'],
 | 
	
		
			
				|  |  | +                        jump: function (obj, first) {
 | 
	
		
			
				|  |  | +                            //首次不执行
 | 
	
		
			
				|  |  | +                            if (!first) {
 | 
	
		
			
				|  |  | +                                pageNo = obj.curr;
 | 
	
		
			
				|  |  | +                                methods.getData();
 | 
	
		
			
				|  |  | +                            }
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  | +                    });
 | 
	
		
			
				|  |  | +                },
 | 
	
		
			
				|  |  | +            };
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            // ---------------初始化---------------
 | 
	
		
			
				|  |  | +            $(function () {
 | 
	
		
			
				|  |  | +                methods.init();
 | 
	
		
			
				|  |  | +            });
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        })(jQuery, App.projects.meeting.xhzhtjDetail)
 | 
	
		
			
				|  |  | +    </script>
 | 
	
		
			
				|  |  | +</div>
 | 
	
		
			
				|  |  | +</body>
 | 
	
		
			
				|  |  | +</html>
 |