<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" trimDirectiveWhitespaces="true" %>
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
<%
|
String path = request.getContextPath();
|
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
|
+ path + "/";
|
%>
|
<!DOCTYPE HTML>
|
<html>
|
<head>
|
<base href="<%=basePath%>">
|
<meta charset="utf-8">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<title>资料查询</title>
|
<link href="static/plugins/bootstrap-3.3.7/css/bootstrap.css" rel="stylesheet">
|
<link href="static/styles/css.css" rel="stylesheet"/>
|
<link href="static/plugins/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css">
|
<link href="static/plugins/jquery-easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css">
|
<link rel="stylesheet" href="static/styles/archivesHN.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/scripts/easyuiExtend.js"></script>
|
<script type="text/javascript" src="static/scripts/jquery-extend.js"></script>
|
|
<!-- 弹窗加载组件 -->
|
<script type="text/javascript" src="static/plugins/layer/layer.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/plugins/crypto-js/core.js"></script>
|
<script type="text/javascript" src="static/plugins/crypto-js/enc-base64.js"></script>
|
<!-- wcp组件 -->
|
<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>
|
<script type="text/javascript" src="static/scripts/ResizeScroll.js"></script>
|
|
|
<style type="text/css">
|
.pagination-info {
|
font-size: 14px
|
}
|
|
.pagination span {
|
font-size: 14px
|
}
|
|
.pagination .pagination-num {
|
font-size: 14px
|
}
|
|
li {
|
width: 280px;
|
white-space: nowrap;
|
text-overflow: ellipsis;
|
overflow: hidden;
|
}
|
|
.treecon li span {
|
margin: 0 10px 0 0;
|
}
|
|
.s-hover {
|
background: #eff5fa url(images/gdcams/d.gif) 26px center no-repeat !important;;
|
color: #4899eb !important;;
|
}
|
</style>
|
</head>
|
<body style="overflow:hidden">
|
<div class="jx">
|
<div class="searchnav">
|
<div>
|
<div class="form-inline">
|
<div class="form-group" style="width:310px;">
|
<select id="searchColumnName" class="form-control" style="width:80px;">
|
<option value="all" selected>所有</option>
|
<option value="archival_code">档号</option>
|
<option value="title">题名</option>
|
</select>
|
<input id="txtKeySearch" type="text" class="form-control" style="width:220px;"
|
placeholder="请输入关键字查询">
|
</div>
|
<button id="btnSearch" type="button" class="btn btn-primary btn-js" onclick="searchData(1)">检索
|
</button>
|
<button type="button" class="btn btn-primary btn-gjjs" id="btn-gjjs">高级检索</button>
|
<div class="gjjscon" style="display: none;">
|
<div class="form-group">
|
<label for="">形成时间:</label>
|
<input id="startDate" type="date" class="form-control" value="" style="width:160px;">-
|
<input id="endDate" type="date" class="form-control" value="" style="width:160px;">
|
</div>
|
<div class="form-group">
|
<label for="">行政区:</label>
|
<input id="txtRegion" type="text" class="form-control" value="" style="width:160px;">
|
<%-- <button id="btnSelectRegion" type="button" class="btn btn-js"--%>
|
<%-- style="margin:0 0 0px 0px;background:#CCCCCC"><i class="fa fa-search"></i></button>--%>
|
</div>
|
<div class="form-group">
|
<label for="">资料类别:</label>
|
<input id="txtDataClass" type="text" class="form-control" value="" style="width:160px;">
|
<%-- <button id="btnSelectDataClass" type="button" class="btn btn-js"--%>
|
<%-- style="margin:0 0 0px 0px;background:#CCCCCC"><i class="fa fa-search"></i></button>--%>
|
</div>
|
<%-- <div class="form-group">--%>
|
<%-- <label for="">工作程度:</label>--%>
|
<%-- <select id="selectDegreeWork" class="form-control" style="width:160px;">--%>
|
<%-- <option></option>--%>
|
<%-- <c:forEach var="degreeWorkParam" items="${degreeWorkParamList}" varStatus="staturs">--%>
|
<%-- <option value="${degreeWorkParam.paramValue}``````````">${degreeWorkParam.paramName}</option>--%>
|
<%-- </c:forEach>--%>
|
<%-- </select>--%>
|
<%-- </div>--%>
|
<%-- <div class="form-group">--%>
|
<%-- <label for="">矿产名称:</label>--%>
|
<%-- <input id="txtMineralSpecies" type="text" class="form-control" value="" style="width:160px;">--%>
|
<%-- <button id="btnSelectMineralSpecies" type="button" class="btn btn-js"--%>
|
<%-- style="margin:0 0 0px 0px;background:#CCCCCC"><i class="fa fa-search"></i></button>--%>
|
<%-- <button id="btnSelect" type="button" class="btn btn-primary btn-js" onclick="searchData(1)"--%>
|
<%-- style="margin:0 0 0px 0px">确定--%>
|
<%-- </button>--%>
|
<%-- </div>--%>
|
</div>
|
</div>
|
</div>
|
</div>
|
<div class="listmain clear">
|
<div class="leftlist">
|
<div class="title1">
|
<h4>检索分类</h4><span>CLASSIFICATION</span>
|
</div>
|
<div class="treecon" id="leftTree">
|
<div class="listtab">
|
<h3 class="listtitle">资料类别 </h3>
|
<div class="tabcon" style="height:auto; overflow: hidden;">
|
<ul id="ulDataClass">
|
</ul>
|
<h4 class="listtitle4">点击查看更多... <em class="list_open"></em></h4>
|
</div>
|
</div>
|
<div class="listtab">
|
<h3 class="listtitle" id="showTitle">形成单位单位</h3>
|
<div class="tabcon">
|
<ul id="ulCustodianUnit">
|
</ul>
|
<h4 class="listtitle4">点击查看更多... <em class="list_open"></em></h4>
|
</div>
|
</div>
|
<div class="listtab">
|
<h3 class="listtitle">形成年度</h3>
|
<div class="tabcon">
|
<ul id="ulFormationTime">
|
</ul>
|
<h4 class="listtitle4">点击查看更多... <em class="list_open"></em></h4>
|
</div>
|
</div>
|
</div>
|
</div>
|
<div class="rightlist">
|
<%-- <div class="title clear" style="height: 30px">--%>
|
<%-- <div class="tab-lt"><a href="javascript:showSearchList();"><img--%>
|
<%-- src="static/styles/images/gdcams/list-i.png" alt=""></a><span>|</span><a--%>
|
<%-- href="javascript:showSearchListTable();"><img src="static/styles/images/gdcams/list-i1.png"--%>
|
<%-- alt=""></a></div>--%>
|
<%-- </div>--%>
|
<%-- <p class="num">当前范围内,共找到<span id="spanCount">0</span>个搜索结果</p>--%>
|
<div class="resultcon" id="datalist">
|
</div>
|
<%-- <div class="resultcon-table" id="searchResultTable">--%>
|
<%-- <table cellpadding="0" cellspacing="0"--%>
|
<%-- style="width: 100%; border-collapse: collapse; table-layout:fixed">--%>
|
<%-- <thead>--%>
|
<%-- <tr>--%>
|
<%-- <th style="position: sticky; top: 0; width: 5%">序号</th>--%>
|
<%-- <th style="position: sticky; top: 0; width: 15%">档号</th>--%>
|
<%-- <th style="position: sticky; top: 0; width: 35%">题名</th>--%>
|
<%-- <th style="position: sticky; top: 0;width: 30%">关键词</th>--%>
|
<%-- <th style="position: sticky; top: 0;width: 10%">上传单位</th>--%>
|
<%-- <th style="position: sticky; top: 0;width: 15%"></th>--%>
|
<%-- </tr>--%>
|
<%-- </thead>--%>
|
<%-- <tbody id="searchResultTableRow">--%>
|
<%-- </tbody>--%>
|
<%-- </table>--%>
|
<%-- </div>--%>
|
</div>
|
<div id="divPageBar" style="height:35px"></div>
|
</div>
|
</div>
|
|
<script>
|
var selectedValue = '${selectedValue}';
|
var keyword = '${keyword}';
|
var keywordMap = new Object();
|
var scrollNum = 40;
|
var showType = "list";
|
$(document).ready(function () {
|
$("#btn-gjjs").click(function () {
|
if (scrollNum == 40) {
|
scrollNum = 200;
|
result();
|
} else {
|
scrollNum = 40;
|
result();
|
}
|
$(".gjjscon").toggle();
|
});
|
});
|
|
function initTabcon() {
|
// var liElements = $(".tabcon ul li");
|
// liElements.click(function () {
|
// if ($(this).hasClass("s-hover")) {
|
// $(this).removeClass("s-hover")
|
// searchData(1);
|
// } else {
|
// $(this).addClass("s-hover").siblings().removeClass("s-hover");
|
// $(".tabcon").not($(this).closest(".tabcon")).find("li").removeClass("s-hover");
|
// }
|
// });
|
}
|
|
function showTabcon() {
|
// var tabcon = $(".tabcon");
|
// tabcon.each(function (index, element) {
|
// var lis = $(element).find("li");
|
// lis.each(function (liIndex, li) {
|
// if (liIndex >= 2) {
|
// $(li).hide();
|
// }
|
// })
|
// var listtitle4 = $(element).find('.listtitle4')
|
// var em = $(listtitle4).children("em");
|
// $(listtitle4).text("点击查看更多...");
|
// $(listtitle4).append(em);
|
// $(listtitle4).children("em").removeClass("list_close");
|
// $(listtitle4).children("em").addClass("list_open");
|
// });
|
// $(".listtab .listtitle4").off('click');
|
// $(".listtab .listtitle4").click(function () {
|
// if ($(this).children("em").hasClass("list_close")) {
|
// var em = $(this).children("em");
|
// $(this).children("em").removeClass("list_close")
|
//
|
// var tabcon = $(this).closest(".tabcon");
|
// tabcon.each(function (index, element) {
|
// var lis = $(element).find("li");
|
// lis.each(function (liIndex, li) {
|
// if (liIndex >= 2) {
|
// $(li).hide();
|
// }
|
// })
|
// });
|
// $(this).text("点击查看更多...");
|
// $(this).append(em);
|
// $(this).children("em").addClass("list_open")
|
// } else {
|
// // var tabcon = $(this).next(".tabcon");
|
// var tabcon = $(this).closest(".tabcon");
|
// tabcon.each(function (index, element) {
|
// $(element).find("li").show();
|
// });
|
// var em = $(this).children("em");
|
// $(this).children("em").removeClass("list_open");
|
// $(this).text("收起");
|
// $(this).append(em);
|
// $(this).children("em").addClass("list_close");
|
// }
|
// });
|
}
|
|
function result() {
|
// debugger;
|
// if (showType == "list") {
|
// $("#searchResultTable").slimScroll({destroy: true});
|
// new ResizeScroll({
|
// "id": "#searchResult",
|
// "fun": function () {
|
// var wh = $(window).height();
|
// return wh - 300 - scrollNum - 30;
|
// }
|
// });
|
// } else if (showType == "listTable") {
|
// $("#searchResult").slimScroll({destroy: true});
|
// new ResizeScroll({
|
// "id": "#searchResultTable",
|
// "fun": function () {
|
// var wh = $(window).height();
|
// return wh - 300 - scrollNum - 30;
|
// }
|
// });
|
// }
|
}
|
|
var pageSize = 50;
|
<%--var province = '${province}';--%>
|
var province = 'test';
|
$(function () {
|
result();
|
new ResizeScroll({
|
"id": "#leftTree",
|
"fun": function () {
|
var wh = $(window).height();
|
return wh - 350;
|
}
|
});
|
|
$("#divPageBar").pagination({
|
pageSize: 50, //每页显示的记录条数,默认为10
|
beforePageText: '第', //页数文本框前显示的汉字
|
afterPageText: '页 共 {pages} 页',
|
displayMsg: '当前显示 {from} - {to} 条记录 共 {total} 条记录',
|
onSelectPage: function (number, size) {
|
pageNumber = number;
|
pageSize = size;
|
searchKeyword();
|
}
|
});
|
searchKeyword();
|
|
//关键字检索按钮事件
|
$('#txtKeySearch').bind('keypress', function (event) {
|
if (event.keyCode == "13") {
|
searchKeyword(1);
|
}
|
});
|
});
|
|
function assignDataClass(selectDataClass) {
|
$("txtDataClass").val(selectDataClass);
|
}
|
|
function assignRegion(selectRegion) {
|
$("#txtRegion").val(selectRegion);
|
}
|
|
//矿种选择后回调
|
function selectMineralCallBack(selectMineral) {
|
$("#txtMineralSpecies").val(selectMineral);
|
}
|
|
function search() {
|
if ($("#cb_resultSearch").is(":checked")) {
|
keyword += "," + $("#txtKeyword").val().replace(/(^\s*)|(\s*$)/g, "");
|
} else {
|
keyword = $("#txtKeyword").val().replace(/(^\s*)|(\s*$)/g, "");
|
}
|
searchKeyword();
|
}
|
|
//搜索数据
|
function searchKeyword(pageNumber) {
|
debugger;
|
if (pageNumber == null) {
|
pageNumber = 1;
|
}
|
// var keywordMapStr = JSON.stringify(keywordMap);
|
var keywordMapStr = JSON.stringify();
|
wcp.ui.setBusy("body", wcp.ajax({
|
url: "search/getSearchData",
|
contentType: "application/x-www-form-urlencoded",
|
data: {
|
selectedValue: selectedValue,
|
keyword: keyword,
|
keywordMapStr: keywordMapStr,
|
rows: pageSize,
|
page: pageNumber
|
}
|
}).done(function (result) {
|
count = result.length;
|
var html = " ";
|
if (result.length > 0) {
|
for (var i = 0; i < result.length; i++) {
|
html += '<div class="resultli">';
|
//项目编号 项目名称 项目概况
|
//形成人
|
var item = result[i];
|
html += '<div class="resultli">';
|
html += '<div class="rtitle clear"><h2><a href="javascript:;" onclick="browseDataDetail(\'' + item.ID + '\',\'' + moduleId + '\',\'' + item.TITLE + '\',\'' + row.ARCHIVAL_CODE + '\')">' + title + '</a></h2><i>发布日期:' + publishDate + '</i></div>';
|
html += '<p style=" max-width: 1000px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"><span class="c1">内容摘要</span>' + remark + '</p>';
|
html += '<p><span class="c2">关键词</span><em>' + keyWord + '</em></p>';
|
// html += '<p><span class="c3">形成单位</span>' + formingUnit + '</p>';
|
html += '<p><span class="c3">上传单位</span>' + createDeptName + '</p>';
|
}
|
}
|
html += '</tr>';
|
console.log(html);
|
$("#datalist").html(html);
|
$('#divPageBar').pagination('refresh', {
|
total: count,
|
pageNumber: pageNumber,
|
onSelectPage: function (pageNumber, PageSize) {
|
searchKeyword(pageNumber);
|
}
|
});
|
// addKeyword();
|
}));
|
}
|
|
function addCollect(moduleId, keyId) {
|
var url = "publicOperation/addCollect?moduleId=" + moduleId + "&keyId=" + keyId;
|
wcp.ajax({
|
url: url
|
}).done(function (result) {
|
wcp.notify.success('成功添加到我的收藏中!');
|
})
|
|
}
|
|
function viewInfo(moduleId, keyId, title) {
|
var url = "general/editFormData?moduleId=" + moduleId + "&keyId=" + keyId + "&viewIdentify=utilization";
|
top.layer.open({
|
title: title,
|
type: 2,
|
area: ["1000px", "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页的窗口对象
|
}
|
});
|
}
|
|
//浏览文件
|
function browseFile(moduleId, keyId) {
|
var url = "archivesBrowse/index?moduleId=" + moduleId + "&keyId=" + keyId;
|
window.open(url, "browseFile");
|
}
|
|
//我的收藏
|
function myCollect() {
|
var url = "general/list?viewId=1254296212836765698";
|
top.layer.open({
|
title: "我的收藏",
|
type: 2,
|
area: ["1000px", "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页的窗口对象
|
}
|
});
|
}
|
|
//我的利用暂存
|
function myUtilizationForm() {
|
var url = "archivesUtilizationForm";
|
top.layer.open({
|
title: "我的利用暂存",
|
type: 2,
|
area: ["1000px", "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页的窗口对象
|
}
|
});
|
}
|
|
//我的利用记录
|
function myUtilizationList() {
|
var url = "archivesUtilizationForm/myUtilizationFormIndex";
|
top.layer.open({
|
title: "我的利用记录",
|
type: 2,
|
area: ["1000px", "520px"],
|
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页的窗口对象
|
}
|
});
|
}
|
|
//浏览详细信息
|
function browseDataDetail(id, moduleId) {
|
var url = "gdcAmsSearchData/dataDetailIndex?id=" + id + "&moduleId=" + moduleId + "&province=" + province;
|
window.open(url);
|
}
|
|
//登录
|
function login() {
|
var url = "gdcAmsSearchData/loginIndex";
|
top.layer.open({
|
title: "登录",
|
type: 2,
|
area: ["500px", "320px"],
|
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页的窗口对象
|
if (iframeWin.params) {
|
iframeWin.params.parent = window;
|
iframeWin.params.callBack = refreshLoginInfo;
|
}
|
}
|
});
|
}
|
|
//刷新登录信息
|
function refreshLoginInfo(userName) {
|
$("#loginButton").hide();
|
$("#loginInfo").show();
|
$(".resultOpration").show();//搜索结果的按钮操作
|
|
}
|
|
//系统后台
|
function myDesk() {
|
window.location.href = "index";
|
}
|
|
//退出
|
function loginOut() {
|
layer.confirm("确定要退出登录吗?", {
|
icon: 3,
|
title: '提示'
|
}, function (index) {
|
wcp.ui.setBusy("body", wcp.ajax({
|
url: "newAccount/loginOutNoUrl"
|
}).done(function (result) {
|
$("#loginButton").show();
|
|
if ($("#loginInfo_user") != null) {
|
$("#loginInfo_user").hide();
|
$(".resultOpration_user").hide();
|
}
|
|
$("#loginInfo").hide();
|
$(".resultOpration").hide();//搜索结果的按钮操作
|
layer.close(index);
|
|
}));
|
});
|
}
|
|
function searchLogs(message) {
|
var message = JSON.stringify(message);
|
wcp.ui.setBusy("body", wcp.ajax({
|
url: "gdcAmsSearchData/searchLogs?moduleName=共享目录查询",
|
data: JSON.stringify(message),
|
}).done(function (result) {
|
}));
|
}
|
</script>
|
|
</body>
|
</html>
|