多单位版国产化地质资料管理系统
zhai
2025-12-18 3c6f6c1e3016e38146a4c46be6e7b625c35591f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
 
<!DOCTYPE HTML>
<html>
<head>
    <base href="<%=basePath%>">
 
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>导入日志信息</title>
    <!--[if !IE]><!-->
    <link href="static/plugins/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css">
    <!--<![endif]-->
    <!--[if gt IE 8]>
    <link href="static/plugins/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css">
    <![endif]-->
    <link href="static/plugins/jquery-easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="static/styles/initialize.css" type="text/css">
    <link rel="stylesheet" href="static/styles/common.css" type="text/css">
    <link rel="stylesheet" href="static/plugins/layer/skin/default/layer.css" type="text/css">
    <script type="text/javascript" src="static/plugins/jquery/jquery.min.js"></script>
    <script type="text/javascript" src="static/plugins/jquery-easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="static/plugins/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="static/plugins/slimScroll/jquery.slimscroll.min.js"></script>
    <script type="text/javascript" src="static/plugins/layer/layer.js"></script>
    <script src="static/plugins/jquery.redirect.js" type="text/javascript"></script>
    <script type="text/javascript" src="static/scripts/customResize.js"></script>
 
    <script type="text/javascript" src="static/plugins/spinjs/spin.js"></script>
    <script type="text/javascript" src="static/plugins/spinjs/jquery.spin.js"></script>
    <script type="text/javascript" src="static/plugins/jquery.blockUI.js"></script>
 
    <script type="text/javascript" src="static/wcp/scripts/wcp.js"></script>
    <script type="text/javascript" src="static/wcp/scripts/libs/wcp.layer.js"></script>
    <script type="text/javascript" src="static/wcp/scripts/libs/wcp.blockUI.js"></script>
    <script type="text/javascript" src="static/wcp/scripts/libs/wcp.spin.js"></script>
    <script type="text/javascript" src="static/wcp/scripts/libs/wcp.jquery.js"></script>
 
    <!--[if lt IE 9]>
    <script type="text/javascript" src="static/plugins/json2.js"></script>
    <![endif]-->
    <style>
        html, body {
            height: 100%;
            width: 100%;
            overflow: hidden;
        }
    </style>
</head>
<body>
<div class="pt-wrap margin-lr" style="height:100%;">
    <div class="pt-main-top clear">
        <div class="pt-nav">
            <span class="pt-title-icon"><i class=" fa fa-book"></i></span>
            <div class="pt-title">
                <div><h4>导入日志列表</h4></div>
            </div>
        </div>
 
    </div>
    <div>
 
        <div id="div_table">
            <table id="dg_log" style="width:100%;height:100%;"></table>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="static/scripts/ResizeScroll.js"></script>
<script>
    //定义页面全局变量
    var NowSelectedNodeId = 0;
    var _moduleId = '${moduleId}' ;
    var _viewId = '${viewId}' ;
 
    $(function () {
 
        //初始化表格
        $('#dg_log').datagrid({
            url: 'general/getImportLogList?moduleId='+_moduleId+'&viewId='+_viewId,
            fitColumns: true,
            striped: true,
            idField: "importLogId",
            rownumbers: true,
            pagination: true,
            checkOnSelect: false,
            selectOnCheck: false,
            singleSelect: true,
            columns: [[
                {field: 'ck', checkbox: true},
                // {field: 'scene', title: '场景', width: 150, align: 'center'},
                {field: 'dataSuccessCount', title: '导入成功', width: 80, align: 'center'},
                {field: 'dataErrorCount', title: '导入失败', width: 80, align: 'center'},
                {field: 'mountSuccessCount', title: '挂接成功', width: 80, align: 'center'},
                {field: 'mountErrorCount', title: '挂接失败', width: 80, align: 'center'},
                {field: 'stats', title: '状态', width: 150, align: 'center'
                , formatter: function (value, row, index) {
                       if(value == 1){
                           return "成功";
                       }else if(value == 0){
                           return "失败";
                       }else{
                           return value;
                       }
                    }
                },
                {field: 'operateName', title: '操作人', width: 100, align: 'center'},
                // {field: 'ipAddress', title: 'ip地址', width: 150, align: 'center'},
                {field: 'operateTime', title: '操作时间', width: 150, align: 'center'},
                {
                    field: 'importLogId', title: '操作', width: 100, align: 'center',
                    formatter: function (value, row, index) {
                        return ' <a onclick=\'showLog("' + value + '");\' class="pt-color-only"><i class="fa fa-eye" title="查看"></i></a>';
                    }
                }
            ]],
 
 
        });
 
 
 
        //绑定关键字检索输入框回车事件
        $("#btnKeySearch").click(function () {
            SearchKey();
        });
 
        //关键字检索按钮事件
        $('#txtKeySearch').bind('keypress', function (event) {
            if (event.keyCode == "13") {
                SearchKey();
            }
        });
 
        //高级查询按钮事件
        $("#search").click(function () {
            if ($("#div_search").is(':visible')) {
                $("#div_search").hide();
                computeHeight();
            } else {
                $("#div_search").show();
                computeHeight();
            }
 
        });
 
        //高级查询,查询按钮事件
        $("#searchSelect").click(function () {
            SearchKey();
        });
 
        new CustomResize({
            "id": "div_table",
            "fun": computeHeight
        });
    })
 
    function computeHeight() {
        var wh = $(window).height();
        var dsh = 0;
        if ($("#div_search").is(':visible')) {
            dsh = $("#div_search").height() + 6;
        }
 
        $("#div_table").height(wh - 86 - dsh);
        $("#dg_log").datagrid("resize");
    }
 
    //日志搜索方法
    function SearchKey() {
        var keyValue = $("#txtKeySearch").val();
 
        $('#dg_log').datagrid('load', {
            searchText: keyValue
 
        });
    }
 
    //日志查看
    function showLog(_importLogId) {
        var url = "management/log/index?parentTable=cnf_import_log&parentKey=" + _importLogId;
 
        top.layer.open({
            title : "导入日志明细",
            type : 2,
            area : [ "1200px", "600px" ],
            fixed : false,
            content : url,
            success : function(layero, index) {
                // var body = window.top.layer.getChildFrame('body', index);
                // var iframeWin = window.top[layero.find('iframe')[0]['name']]; //得到iframe页的窗口对象
 
                //将回调函数传给子页面
                //iframeWin.params.callBack = refreshData;
            }
        });
    }
    //刷新表格数据
    function refreshData() {
        $('#dg_log').datagrid('reload');
        //清除已经选择的数据
        $('#dg_log').datagrid('clearSelections');
        $('#dg_log').datagrid('clearChecked');
    }
 
</script>
</html>