<!DOCTYPE html>
|
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:layout="http://www.w3.org/1999/xhtml"
|
xmlns:th="http://www.w3.org/1999/xhtml" layout:decorator="MasterPage/Layout">
|
<!-- layout文件路径-->
|
<head>
|
<meta charset="utf-8" />
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<link th:href="@{${pubzyWebRoot} + 'ext-4.2.1.883/resources/css/ext-all-neptune.css'}" rel="stylesheet" type="text/css" />
|
<link th:href="@{${pubzyWebRoot} + 'media/css/bootstrap-tree.css'}" rel="stylesheet" type="text/css" />
|
<link th:href="@{${pubzyWebRoot} + 'BootStrap4/expand/plugins/portlet/css/portlet.css'}" rel="stylesheet" />
|
<link th:href="@{${pubzyWebRoot} + 'media/css/select2_metro.css'}" type="text/css" rel="stylesheet" />
|
<link th:href="@{${pubzyWebRoot} + 'media/css/pagination.css'}" type="text/css" rel="stylesheet" />
|
<link rel="stylesheet" th:href="@{${pubzyWebRoot} + 'BootStrap4/assets/plugins/bootstrap-datepicker/old_datepaker/datepicker.css'}" />
|
<link th:href="@{${pubzyWebRoot} + 'zTree/css/metroStyle/metroStyle.css'}" rel="stylesheet" type="text/css" />
|
<script th:src="@{${pubzyWebRoot} + 'jqPaginator/jqpaginator.min.js'}"></script>
|
<script th:src="@{${pubzyWebRoot} + 'ext-4.2.1.883/ext-all.js'}"></script>
|
<script th:src="@{${pubzyWebRoot} + 'ext-4.2.1.883/locale/ext-lang-zh_CN.js'}"></script>
|
<script th:src="@{${pubzyWebRoot} + 'ext-4.2.1.883/PagingToolbar.js'}"></script>
|
<script src="/js/Extjs/ZYML/JcdtList.js"></script>
|
<script th:src="@{${pubzyWebRoot} + 'media/js/tabPages.js'}"></script>
|
<script th:src="@{${pubzyWebRoot} + 'media/js/winPro.js'}"></script>
|
<script th:src="@{${pubzyWebRoot} + 'echarts/echarts.min-3.0.js'}" type="text/javascript"></script>
|
<script th:src="@{${pubzyWebRoot} + 'media/js/select2.min.js'}" type="text/javascript"></script>
|
<script th:src="@{${pubzyWebRoot} + 'BootStrap4/assets/plugins/bootstrap-datepicker/old_datepaker/bootstrap-datepicker.js'}"></script>
|
<script th:src="@{${pubzyWebRoot} + 'BootStrap4/assets/plugins/bootstrap-datepicker/old_datepaker/bootstrap-datepicker.zh-CN.min.js'}"></script>
|
<script th:src="@{${pubzyWebRoot} + 'zTree/js/jquery.ztree.all.js'}"></script>
|
<script th:src="@{${pubzyWebRoot} + 'zTree/js/jquery.ztree.core.js'}"></script>
|
<script th:src="@{${pubzyWebRoot} + 'zTree/js/jquery.ztree.exedit.js'}"></script>
|
<script th:src="@{${pubzyWebRoot} + 'zTree/js/jquery.ztree.excheck.js'}"></script>
|
<style>
|
.my_chats {
|
margin: 0;
|
padding: 0;
|
margin-top: 0px;
|
width: 100%;
|
float: left;
|
}
|
|
.my_chats div.yuanjiao {
|
padding: 0.7%;
|
margin-top: 1%;
|
margin-left: 1%;
|
border-radius: 5px;
|
width: 22.21%;
|
height: 300px;
|
float: left;
|
background-color: white;
|
}
|
|
.my_chats div div.itemchar {
|
height: 260px;
|
padding: 0.2%;
|
width: 99%;
|
}
|
|
.my_chats div div.itemchar-title {
|
text-align: center;
|
font-size: 14px;
|
font-weight: bold;
|
width: 100%;
|
}
|
|
.itemchar-title span.unit {
|
/*position:absolute;
|
right:1%;
|
bottom:5px;*/
|
font-size: 12px;
|
font-weight: normal;
|
color: gray;
|
padding: 2px;
|
}
|
|
.mid_num {
|
text-align: center;
|
padding-top: 2px;
|
padding-bottom: 2px;
|
}
|
|
.mid_num span {
|
color: #D08061;
|
margin: 2px;
|
font-weight: bold;
|
}
|
|
.mid_unit {
|
color: #9BA7C4 !important;
|
margin: 2px;
|
font-weight: bold;
|
}
|
|
.my_row {
|
float: left;
|
width: 98%;
|
background-color: #EFF4FA;
|
padding-bottom: 1%;
|
}
|
|
.my_part {
|
width: 100%;
|
}
|
|
.my_part div.my_title {
|
border-bottom: 2px solid #E1E1E1;
|
text-align: right;
|
width: 100%;
|
height: 26px;
|
}
|
|
.my_part div.my_title div.my_lefttitle {
|
width: 4%;
|
border-bottom: 4px solid #61A0A8;
|
color: #61A0A8;
|
font-size: 13px;
|
font-weight: bold;
|
text-align: left;
|
float: left;
|
padding-left: 1%;
|
padding-bottom: 2px;
|
cursor: pointer;
|
min-width: 55px;
|
}
|
|
.my_part div.my_title div.gaishu {
|
width: 89.8%;
|
float: left;
|
text-align: left;
|
margin-top: 6px;
|
padding-left: 0.2%;
|
}
|
|
.my_part div.gaishu a.num {
|
font-size: 14px;
|
color: #FD7F52;
|
background-color: #87CEFA;
|
margin-left: 2px;
|
margin-right: 2px;
|
padding-left: 5px;
|
padding-right: 5px;
|
line-height: 16px;
|
font-weight: bold;
|
-webkit-border-radius: 3px;
|
-moz-border-radius: 3px;
|
border-radius: 3px
|
}
|
|
.my_part div.gaishu a.label {
|
font-size: 12px;
|
/*color:#B6A2DE ;*/
|
background-color: #87CEFA;
|
margin-left: 2px;
|
margin-right: 2px;
|
padding-left: 5px;
|
padding-right: 5px;
|
line-height: 16px;
|
font-weight: bold;
|
}
|
|
.my_part div.my_title div.my_updown {
|
margin: auto;
|
cursor: pointer;
|
float: right;
|
width: 3%;
|
}
|
|
.my_part div.my_body {
|
width: 100%;
|
}
|
|
.page-sidebar-fixed .page-sidebar {
|
position: fixed !important;
|
top: 93px;
|
}
|
|
.navbar .brand {
|
padding: 10px 20px 10px;
|
}
|
|
.thumbnail {
|
display: table-cell;
|
border: none;
|
box-shadow: none !important;
|
}
|
|
.thumbnail:hover, .thumbnail:focus {
|
box-shadow: none !important;
|
}
|
|
.Zyml_Box {
|
white-space: normal;
|
}
|
|
.Zyml_Box span {
|
display: inline-block;
|
margin-right: 9px;
|
margin-bottom: 3px;
|
font-size: 14px;
|
cursor: pointer;
|
}
|
|
.Zyml_Box span.selected {
|
background-color: #4ca9fe;
|
color: white;
|
}
|
|
.Select_Value {
|
background-color: #4ca9fe;
|
color: white;
|
}
|
|
.Select_Value a {
|
padding-left: 3px;
|
color: white;
|
cursor: pointer;
|
}
|
|
.NF_Box {
|
border: 1px solid #D8D8D8 !important;
|
}
|
|
input[type='text'].NF_Box:focus {
|
border: 1px solid #999999 !important;
|
}
|
|
.side-menu {
|
top: 93px !important;
|
position: fixed !important;
|
bottom: 0px !important;
|
margin-bottom: 0px !important;
|
padding-bottom: 0px !important;
|
}
|
|
#sidebar {
|
list-style-typt: none;
|
padding-left: 0;
|
}
|
|
#tab_1_2 label {
|
cursor: pointer;
|
display: inline-block;
|
/*margin-left: 10px;*/
|
}
|
|
.btn:hover, .btn:focus {
|
transition: none !important;
|
}
|
|
input[type="radio"] {
|
margin-bottom: 5px;
|
}
|
|
.jieguo {
|
font-size: 12px;
|
color: #0259FF;
|
text-decoration: none;
|
font-weight: bold;
|
line-height: 22px;
|
}
|
|
.jieguo a {
|
font-size: 12px;
|
color: #0259FF;
|
text-decoration: none;
|
font-weight: bold;
|
}
|
|
.jieguo a:hover {
|
font-size: 12px;
|
color: #0259FF;
|
text-decoration: none;
|
font-weight: bold;
|
}
|
|
.jieguo2 {
|
font-size: 12px;
|
color: #0259FF;
|
text-decoration: none;
|
font-weight: bold;
|
line-height: 22px;
|
padding-left: 25px;
|
}
|
|
.td {
|
border-bottom: 1px #666 dashed;
|
}
|
|
.xiangqing {
|
font-size: 12px;
|
color: #005CFB;
|
line-height: 18px;
|
text-decoration: none;
|
}
|
|
.xiangqing a {
|
font-size: 12px;
|
color: #005CFB;
|
line-height: 18px;
|
text-decoration: none;
|
}
|
|
.xiangqing a:hover {
|
font-size: 12px;
|
color: #005CFB;
|
line-height: 18px;
|
text-decoration: underline;
|
}
|
|
.jieshao {
|
font-size: 12px;
|
color: #000000;
|
line-height: 18px;
|
text-decoration: none;
|
}
|
|
.jieshao a {
|
font-size: 12px;
|
color: #000000;
|
line-height: 18px;
|
text-decoration: none;
|
}
|
|
.jieshao a:hover {
|
font-size: 12px;
|
color: #0000FF;
|
line-height: 18px;
|
text-decoration: none;
|
}
|
|
.control-label {
|
padding-top: 0 !important;
|
width: 160px;
|
float: left;
|
line-height: 30px;
|
padding-right: 1em;
|
}
|
|
.control-group {
|
margin-bottom: 1em;
|
}
|
|
.controls {
|
margin-left: 160px;
|
line-height: 30px;
|
}
|
|
.col-sm-3,
|
.col-sm-5,
|
.col-sm-6,
|
.col-sm-7,
|
.col-sm-10,
|
.col-sm-12,
|
.col-md-4,
|
.col-lg-3,
|
.col-xl-3 {
|
padding-left: 0;
|
padding-right: 0;
|
}
|
|
.row {
|
margin-left: 0;
|
margin-right: 0;
|
}
|
|
/*拼音首字母文本框高度*/
|
.select2-container .select2-choice {
|
height: 35px;
|
}
|
|
.tabbable-custom > .tab-content{
|
background-color: #fff;
|
border-left: 1px solid #ddd;
|
border-right: 1px solid #ddd;
|
border-bottom: 1px solid #ddd;
|
-webkit-border-radius: 0;
|
-moz-border-radius: 0;
|
border-radius: 0;
|
padding: 10px;
|
}
|
.querycondition {
|
margin: 6px 0px 6px 12px;
|
width: 98%;
|
}
|
.querycondition tr {
|
height: 30px;
|
}
|
.querycondition td{
|
vertical-align: baseline;
|
padding-left: 4px;
|
padding: 2px;
|
}
|
.querycondition tr td span {
|
display: inline-block;
|
margin-right: 9px;
|
font-size: 13px;
|
cursor: pointer;
|
}
|
.orderSelected {
|
color: #ff6600;
|
}
|
.querycondition span.selected {
|
background: #4ca9fe;
|
padding: 0px 6px;
|
border: solid 1px #4499ff;
|
color: #fff;
|
}
|
</style>
|
<script type="text/javascript" th:inline="javascript">
|
/*<![CDATA[*/
|
var ResourceTypeListJson = [[${ResourceTypeListJson}]];
|
var ResourceTypeList = eval(ResourceTypeListJson);
|
|
$(function () {
|
InintFaBuTime();
|
SelectStyle("basemaptype", "lx");
|
SelectStyle("securitylev", "qx");
|
SelectStyle("datasources", "fbdw");
|
SelectStyle("pubdate", "FaBuTime");
|
SelectStyleOrder("neworder", "px");
|
$("#block").load('JcdtDataList', formdata, function () {
|
var Page =Number(document.getElementById("curren").value);
|
var Count =Number(document.getElementById("total").value);
|
document.getElementById("ZiYuanCount").innerHTML=Count;
|
$('#Paginator').jqPaginator({
|
totalCounts: Count,
|
pageSize: 15,
|
currentPage: Page,
|
first: '<li class="first"><a href="javascript:void(0);">首页</a></li>',
|
prev: '<li class="prev"><a href="javascript:void(0);">上一页</a></li>',
|
next: '<li class="next"><a href="javascript:void(0);">下一页</a></li>',
|
last: '<li class="last"><a href="javascript:void(0);">末页</a></li>',
|
page: '<li class="page"><a href="javascript:void(0);">{{page}}</a></li>',
|
onPageChange: function (num) {
|
if(num!=Page){
|
changepage(num);
|
}
|
}
|
});
|
});
|
});
|
|
//选项卡切换事件
|
function f_unit_certifcate_def() {
|
this.onPage = function (action) {
|
var pageIndex = getUrlParam('pageIndex', action);
|
var url = 'JcdtDataList';
|
url += '?pageIndex=' + pageIndex;
|
$.ajax({
|
url: url,
|
success: function (result) {
|
$("#block").load(url, formdata, function () {
|
});
|
init();
|
},
|
error: function (result) {
|
alert(result.message);
|
}
|
});
|
};
|
this.onInit = function () {
|
init();
|
};
|
this.load = function () {
|
var url = 'JcdtDataList';
|
$("#div_ScanOriginal").load(url, formdata, function () {
|
f_u_certifcate.onInit();
|
});
|
};
|
|
function init() {
|
}
|
}
|
|
var f_u_certifcate = new f_unit_certifcate_def();
|
|
function LoadCharts() {
|
if ($("#tabBtn3").parent().hasClass("active"))
|
return;
|
else {
|
LoadChartTongJi();
|
}
|
}
|
|
|
|
|
function ShowZiYuanFaBu_ShiYongQingKuangChart(Legend, xAxis, Series) {
|
var option = {
|
tooltip: {
|
trigger: 'axis'
|
},
|
color: [
|
'#31C4CB', '#B6A1E2', '#59B1F0', '#FFB880', '#DA7980', '#8D98B4', '#E5CE0C', '#98B74F', '#D48265',
|
'#91C7AE', '#749F83', '#D8DEB8'
|
],
|
legend: {
|
top: 10,
|
right: 50,
|
textStyle: {
|
fontSize: 14
|
},
|
data: Legend
|
},
|
calculable: true,
|
grid: {
|
top: 80,
|
right: 60,
|
bottom: 50,
|
left: 60
|
},
|
xAxis: [
|
{
|
type: 'category',
|
boundaryGap: false,
|
data: xAxis
|
}
|
],
|
yAxis: [
|
{
|
type: 'value',
|
axisLine: {
|
color: '#78B9EF',
|
opacity: 0.5,
|
|
}
|
}
|
],
|
series: Series
|
};
|
return option;
|
}
|
|
|
|
|
var offsetH = 173;
|
|
$(function () {
|
//初始化发布人拼音查询框
|
initFaBuRenPinYin();
|
$(".date-picker").datepicker({format: 'yyyy-mm-dd', language: 'zh-CN'}); //初始化时间控件
|
$("#divSearch").keyup(function (e) {
|
if (e.keyCode == 13) {
|
Search('', '');
|
}
|
|
});
|
|
//初始化左侧目录树区域高度
|
$("#DivTree").height($(window).height() - offsetH);
|
//当文档窗口发生改变时 触发左侧目录树区域高度调整
|
$(window).resize(function () {
|
$("#DivTree").height($(window).height() - offsetH);
|
});
|
$("#dataViewMenu").unbind("mouseover").unbind("mouseup");
|
$("#sidebar").unbind("mouseover").unbind("mouseup");
|
$("#leftmenu").bind('click', function () {
|
qiehuan(this);
|
});
|
// var divgrid = document.getElementById("grid");
|
// var divblock = document.getElementById("block");
|
// if(displayType=="table"){
|
// divgrid.style.display = "";
|
// divblock.style.display = "none";
|
// }
|
// else{
|
// divblock.style.display = "";
|
// divgrid.style.display = "none";
|
// }
|
$("#leftmenu").click(function () {
|
var DivTreeDisPaly = $("#DivTree").css("display");
|
$("#leftmenu_top_toolbar").css("display", DivTreeDisPaly);
|
});
|
|
});
|
function changepage(num) {
|
var url ='JcdtDataList?page='+num;
|
$("#block").load(url, formdata, function () { //加载图文列表
|
var Page =Number(document.getElementById("curren").value);
|
var Count =Number(document.getElementById("total").value);
|
document.getElementById("ZiYuanCount").innerHTML=Count;
|
$('#Paginator').jqPaginator({
|
totalCounts: Count,
|
pageSize: 15,
|
currentPage: Page,
|
first: '<li class="first"><a href="javascript:void(0);">首页</a></li>',
|
prev: '<li class="prev"><a href="javascript:void(0);">上一页</a></li>',
|
next: '<li class="next"><a href="javascript:void(0);">下一页</a></li>',
|
last: '<li class="last"><a href="javascript:void(0);">末页</a></li>',
|
page: '<li class="page"><a href="javascript:void(0);">{{page}}</a></li>',
|
onPageChange: function (num) {
|
if(num!=Page){
|
changepage(num);
|
}
|
}
|
});
|
});
|
}
|
function InintFaBuTime() {
|
var id = "FaBuTime";
|
var firstItem =Number(document.getElementById("thisYear").value);
|
$("#SearchForm").find("#" + id).append('<span value="' + firstItem + '" style="cursor:pointer;">' + firstItem + '年</span>');
|
$("#SearchForm").find("#" + id).append('<span value="' + (firstItem - 1) + '" style="cursor:pointer;">' + (firstItem - 1) + '年</span>');
|
$("#SearchForm").find("#" + id).append('<span value="' + (firstItem - 7) + '-' + (firstItem - 2) + '" style="cursor:pointer;">' + (firstItem - 7) + '-' + (firstItem - 2) + '年</span>');
|
$("#SearchForm").find("#" + id).append('<span value="' + (firstItem - 12) + '-' + (firstItem - 7) + '" style="cursor:pointer;">' + (firstItem - 12) + '-' + (firstItem - 7) + '年</span>');
|
$("#SearchForm").find("#" + id).append('<span value="1949-' + (firstItem - 12) + '" style="cursor:pointer;">' + (firstItem - 12) + '年以前</span>');
|
}
|
//查询事件
|
function Search(ziYuanCode, treeType, IsSC) {
|
document.getElementById("title").value=document.getElementById("title1").value;
|
if (ziYuanCode != "") {
|
Clear();
|
$('#ZiYuanMuLuCode').val('');
|
if (treeType == "0" || treeType == "3") {
|
$('#ZiYuanMuLuCode').val(ziYuanCode);
|
}
|
else if (treeType == "1") {
|
if (ziYuanCode.indexOf("-") > -1) {
|
var dateodd = "1,3,5,7,8,10,12,";
|
var arr = ziYuanCode.split('-');
|
$('#FaBuShiJianBeg').val(ziYuanCode + "-01");
|
if (arr[0] % 4 == 0) {
|
if (arr[1] == 2) {
|
$('#FaBuShiJianEnd').val(ziYuanCode + "-29");
|
}
|
else if (dateodd.indexOf(arr[1] + ",") > -1) {
|
$('#FaBuShiJianEnd').val(ziYuanCode + "-31");
|
}
|
else {
|
$('#FaBuShiJianEnd').val(ziYuanCode + "-30");
|
}
|
}
|
else {
|
if (arr[1] == 2) {
|
$('#FaBuShiJianEnd').val(ziYuanCode + "-28");
|
}
|
else if (dateodd.indexOf(arr[1] + ",") > -1) {
|
$('#FaBuShiJianEnd').val(ziYuanCode + "-31");
|
}
|
else {
|
$('#FaBuShiJianEnd').val(ziYuanCode + "-30");
|
}
|
}
|
} else if (ziYuanCode == "0") {
|
$('#FaBuShiJianBeg').val("");
|
$('#FaBuShiJianEnd').val("");
|
}
|
else {
|
$('#FaBuShiJianBeg').val(ziYuanCode + "-01-01");
|
$('#FaBuShiJianEnd').val(ziYuanCode + "-12-31");
|
}
|
}
|
else if (treeType == "2") {
|
if (ziYuanCode == "0")
|
ziYuanCode = "000000";
|
$('#XZQHID').val(ziYuanCode);
|
}
|
else if (treeType == "4") {
|
$('#ZiYuanLeiXing').val(ziYuanCode);
|
}
|
}
|
$('#FaBuDanWeiRen').val($("#LOGINNAME").val());
|
Ext.getCmp('gridexample').dockedItems.items[1].store.currentPage = 1;
|
ZYMLZiYuanStore.load();
|
$("#block").load('JcdtDataList', formdata, function () {
|
var Page =Number(document.getElementById("curren").value);
|
var Count =Number(document.getElementById("total").value);
|
document.getElementById("ZiYuanCount").innerHTML=Count;
|
$('#Paginator').jqPaginator({
|
totalCounts: Count,
|
pageSize: 15,
|
currentPage: Page,
|
first: '<li class="first"><a href="javascript:void(0);">首页</a></li>',
|
prev: '<li class="prev"><a href="javascript:void(0);">上一页</a></li>',
|
next: '<li class="next"><a href="javascript:void(0);">下一页</a></li>',
|
last: '<li class="last"><a href="javascript:void(0);">末页</a></li>',
|
page: '<li class="page"><a href="javascript:void(0);">{{page}}</a></li>',
|
onPageChange: function (num) {
|
if(num!=Page){
|
changepage(num);
|
}
|
}
|
});
|
});
|
|
}
|
|
//查询区清除
|
function Clear() {
|
document.getElementById("SearchForm").reset();
|
$('#ZiYuanMuLuCode').val('');
|
$("#SearchForm").find("#lx").find("span:eq(0)").click();
|
$("#SearchForm").find("#px").find("span:eq(0)").click();
|
$("#SearchForm").find("#fbdw").find("span:eq(0)").click();
|
$("#SearchForm").find("#FaBuTime").find("span:eq(0)").click();
|
$("#SearchForm").find("#MuLu0").find("span:eq(0)").click();
|
$("#resourceclass").val("");
|
$('#ZiYuanMuLuTxt').attr("value", '@_ziYuanMC');
|
$('#ZiYuanMuLu').attr("value", '@_ziYuanMuLuID');
|
$('#FaBuDanWeiTxt').attr("value", '@_qh_name');
|
$('#FaBuDanWei').attr("value", '@_qhid');
|
$("#USERNAME").val("");
|
initFaBuRenPinYin();
|
}
|
|
//打开资源信息新增窗口
|
function AddZiYuan() {
|
var url = "AddZiYuanBasic";
|
winPro.openFullwin(url, "新增资源", "yes");
|
}
|
|
function zuobiao() {
|
var url = "~/HYGL/YongHai/YongHaiSearch";
|
winPro.openFullwin(url, "新增资源", "yes");
|
}
|
|
//打开查看资源信息窗口
|
function OpenZiYuan(id) {
|
var url = "ZiYuanSelect?resMainInfoId=" + id;
|
winPro.openFullwin(url, "查看资源", "yes");
|
}
|
|
var selectedClass = "selected"; //条件选中样式
|
var selectArea = "selectArea";
|
//所属目录选择事件
|
function SelectMuLuItem(field, area, id) {
|
$("#SearchForm").find("#" + id).find("span").each(function (cindex) {
|
$(this).click(function () {
|
if ($(this).attr("value").toString() != "") {
|
var level = $($(this).parent()).attr("level");
|
var value = $(this).attr("value");
|
var preLevel = parseInt(level) - 1;
|
//修改当前层样式
|
$("#SearchForm").find("#" + area + preLevel).find("span").removeClass(selectArea);
|
//修改上一层样式
|
$("#SearchForm").find("#" + area + "All div:lt(" + preLevel + ")").each(function (index) {
|
$(this).find("span[class=" + selectedClass + "]").each(function () {
|
$(this).addClass(selectArea);
|
$(this).removeClass(selectedClass);
|
});
|
});
|
//修改下一层样式
|
$("#SearchForm").find("#" + area + "All div:gt(" + preLevel + ")").each(function (index) {
|
$(this).find("span").each(function () {
|
$(this).removeClass(selectedClass);
|
$(this).removeClass(selectArea);
|
});
|
});
|
//若下一层非当前层级子级则重新加载
|
if (!$("#SearchForm").find("#" + area + level).attr("preLevel") || $("#SearchForm").find("#" + area + level).attr("preLevel") != value) {
|
SetMuLuItem(area, level, value);
|
SelectMuLuItem(field, area, area + level);
|
SelectStyle(field, area + level); //设置样式
|
ClearChidrenLevel(area, level);
|
}
|
else { //显示/隐藏下级层
|
var display = $("#SearchForm").find("#" + area + level).css("display").toString();
|
if (display == "block") {
|
$("#SearchForm").find("#" + area + "All div:gt(" + preLevel + ")").css("display", "none");
|
ClearChidrenLevel(area, level);
|
}
|
else {
|
$("#SearchForm").find("#" + area + "All div:lt(" + parseInt(level) + 1 + ")").css("display", "block");
|
}
|
}
|
}
|
else { //选择"不限"选项
|
$("#SearchForm").find("#" + area + "0").find("span:gt(0)").each(function () {
|
$(this).removeClass(selectedClass);
|
$(this).removeClass(selectArea);
|
});
|
ClearChidrenLevel(area, 0);
|
}
|
});
|
});
|
}
|
|
function SelectStyle(field, id) {
|
if(id!="FaBuTime"){
|
$("#SearchForm").find("#" + id).find("span").each(function (cindex) {
|
$(this).click(function () {
|
var option = $(this);
|
if (option.hasClass(selectedClass)) {
|
|
}
|
else {
|
$("#SearchForm").find("#" + field).val($(this).attr("value"));
|
option.siblings().removeClass(selectedClass);
|
option.addClass(selectedClass);
|
}
|
});
|
});
|
}else {
|
$("#SearchForm").find("#" + id).find("span").each(function (cindex) {
|
$(this).click(function () {
|
var option = $(this);
|
if (option.hasClass(selectedClass)) {
|
}
|
else {
|
var time = $(this).attr("value");
|
if(time.length=4){
|
$("#pubdateBegin").val(time+"-1-1");
|
$("#pubdatefinish").val(time+"-12-31");
|
}if (time.indexOf("-")>-1){
|
$("#pubdateBegin").val(time.split("-")[0]+"-1-1");
|
$("#pubdatefinish").val(time.split("-")[1]+"-12-31");
|
}
|
if(time==""){
|
$("#pubdateBegin").val("");
|
$("#pubdatefinish").val("");
|
}
|
option.siblings().removeClass(selectedClass);
|
option.addClass(selectedClass);
|
}
|
});
|
});
|
}
|
}
|
function SelectStyleOrder(field, id) {
|
$("#SearchForm").find("#" + id).find("span").each(function (cindex) {
|
$(this).click(function () {
|
var option = $(this);
|
if (option.hasClass("orderSelected")) {
|
|
}
|
else {
|
$("#SearchForm").find("#" + field).val($(this).attr("value"));
|
option.siblings().removeClass("orderSelected");
|
option.siblings()[0].childNodes[1].src="/image/gray_down.gif"
|
option.addClass("orderSelected");
|
option[0].childNodes[1].src="/image/yellow_down.gif"
|
Search('');
|
}
|
});
|
});
|
}
|
|
//获取下级数据项
|
function SetMuLuItem(area, level, nodeId) {
|
$.ajax({
|
url: 'GetMuLu',
|
type: 'Post',
|
data: { id: nodeId },
|
async: false,
|
success: function (data) {
|
var json = eval("(" + data + ")");
|
if (json.Count !=0) {
|
var id = "#" + area + level;
|
var preDiv = $("#SearchForm").find(id);
|
if (preDiv.length == 0)
|
{
|
var html = "<div id='" + area + level + "' level='" + (parseInt(level) + 1) + "' style='margin-top:3px; padding-left:39px;'></div>";
|
$("#SearchForm").find("#" + area + "All").append(html);
|
}
|
$("#SearchForm").find(id).html("");
|
for (var i = 0 ; i < json.list.length; i++)
|
$("#SearchForm").find(id).append("<span style='cursor:pointer;' value='" + json.list[i].ZIYUANMULUID + "'>" + json.list[i].ZIYUANMC + "</span>");
|
|
$("#SearchForm").find("#" + area + level).attr("preLevel", nodeId);
|
$("#SearchForm").find("#" + area + level).css("display", "block");
|
}
|
|
},
|
error: function (data) {
|
alert("error");
|
}
|
});
|
}
|
//清除下级层级数据
|
function ClearChidrenLevel(area, level) {
|
$("#SearchForm").find("#" + area + "All div:gt(" + level + ")").each(function () {
|
var obj = $(this);
|
obj.css("display", "none");
|
obj.html("");
|
obj.removeAttr("preLevel");
|
})
|
}
|
//浏览资源 数据列表与图文列表切换
|
function ChangeList() {
|
var divgrid = document.getElementById("grid");
|
var divblock = document.getElementById("block");
|
if (divgrid.style.display == "none") {
|
divgrid.style.display = "";
|
divblock.style.display = "none";
|
Ext.getCmp('gridexample').doLayout();
|
$.ajax({
|
url: '~/ZYML/ZiYuan/SetCookie',//TuiJianZiYuan
|
type: 'post',
|
data: {"Type": "table"},
|
success: function (data) {
|
}
|
});
|
}
|
else {
|
divblock.style.display = "";
|
divgrid.style.display = "none";
|
$.ajax({
|
url: '~/ZYML/ZiYuan/SetCookie',//TuiJianZiYuan
|
type: 'post',
|
data: {"Type": "image"},
|
success: function (data) {
|
}
|
});
|
}
|
}
|
|
//导出Excel
|
function ExportExcel() {
|
if (!confirm("确定导出?")) {
|
return;
|
}
|
Export();
|
}
|
|
//初始化发布人拼音查询框
|
function initFaBuRenPinYin() {
|
$("#LOGINNAME").select2({
|
placeholder: "输入拼音首字母查询",
|
allowClear: true,
|
minimumInputLength: 1,
|
escapeMarkup: function (markup) {
|
return markup;
|
},
|
formatResult: function (repo) {
|
if (repo.loading) return repo.text;
|
return repo.name;
|
},
|
formatSelection: function (repo) {
|
return repo.name || repo.text;
|
},
|
ajax: {
|
url: '~/ZYML/ZiYuan/GetUser',
|
dataType: 'json',
|
delay: 250,
|
data: function (params) {
|
return {
|
q: params
|
};
|
},
|
results: function (data, page) {
|
return {results: data};
|
},
|
cache: true
|
}
|
});
|
// //***************************发布人处理开始************************************
|
// //设置 搜索框宽度为 162px
|
$("#s2id_LOGINNAME").width(162);
|
// //隐藏节点ID改变
|
$("#LOGINNAME").change(function () {
|
if ($("#s2id_LOGINNAME > a > span").html() != "输入拼音首字母查询") {
|
$("#USERNAME").val($("#s2id_LOGINNAME > a > span").html());
|
$("#s2id_LOGINNAME").attr("title", $("#s2id_LOGINNAME > a > span").html());
|
}
|
});
|
//
|
// //查询提交前
|
$("#search").submit(function () {
|
if ($("#s2id_LOGINNAME > a > span").html() == "输入拼音首字母查询") {
|
$("#USERNAME").val("");
|
}
|
});
|
//
|
// //显示内容改变
|
$("#s2id_LOGINNAME").change(function () {
|
if ($("#s2id_LOGINNAME > a > span").html() != "输入拼音首字母查询") {
|
$("#USERNAME").val($("#s2id_LOGINNAME > a > span").html());
|
$("#s2id_LOGINNAME").attr("title", $("#s2id_LOGINNAME > a > span").html());
|
}
|
else if ($("#s2id_LOGINNAME> a > span").html() == "输入拼音首字母查询") {
|
$("#LOGINNAME").val("");
|
$("#USERNAME").val("");
|
}
|
});
|
|
}
|
|
function qiehuan(obj) {
|
if (document.getElementById("DivTree").style.display != "none") {
|
document.getElementById("DivTree").style.display = "none";
|
} else {
|
document.getElementById("DivTree").style.display = "block";
|
}
|
return;
|
}
|
|
//目录树类型更改
|
|
function InsertLiuLanLog(){
|
$.ajax({
|
url:'/res/ziYuanLiuLanInsert',
|
type:'post',
|
dataType:'text',
|
data:{},
|
success:function(data){
|
if(data=="1"){
|
alert('插入成功');
|
}
|
else{
|
alert('插入失败');
|
}
|
}
|
})
|
}
|
|
$(function () {
|
//getvalue();
|
})
|
|
|
function getvalue () {
|
$.ajax({
|
url:'/res/sys/field/queryListByKey/UnitType',
|
type:'GET',
|
dataType:'json',
|
timeout:5000,
|
cache:false,
|
success:function (result) {
|
var json = eval(result);
|
for (var i=0;i<json.length;i++){
|
$("#resourceclass").append("<option value='"+json[i].vcode+"'>"+json[i].vtext+"</option>");
|
}
|
}
|
})
|
}
|
/*]]>*/
|
</script>
|
</head>
|
<body>
|
<div layout:fragment="content">
|
<div class="content-page" style="min-height: 978px !important; margin-top: 8px;background-color: #fff;margin-left:0px;margin-left:10px">
|
<div class="container-fluid" style="padding-right: 0; padding-left: 0;">
|
<div class="row">
|
<div id="div_content" style="width: 100%;">
|
<div class="tabbable tabbable-custom" id="divTabsView">
|
<div class="tab-pane active" id="tabContent" style="overflow-y: auto;">
|
<div class="row">
|
<div class="col-sm-12">
|
<!--BEGIN TABS-->
|
<div class="tabbable tabbable-custom" style="padding-right: 20px;height: 100%;">
|
<div style="height: 99%;">
|
<div id="tab_1_2">
|
<div id="divSearch">
|
<form action="#" class="form-horizontal" id="SearchForm">
|
<input type="hidden" id="catlogid" value="" />
|
<input type="hidden" id="neworder" value="" />
|
<input type="hidden" id="securitylev" value="" />
|
<input type="hidden" id="datasources" value="" />
|
<input type="hidden" id="basemaptype" value="" />
|
<input type="hidden" id="title" value="" />
|
<div class="portlet box ltblue" style="margin-bottom: 5px !important;">
|
<div class="portlet-title">
|
<div class="caption">
|
<i class="icon-reorder"></i>资源查询
|
</div>
|
<div class="tools">
|
<a href="javascript:;" class="collapse"></a>
|
</div>
|
</div>
|
<div class="portlet-body SearchBox" style="padding: 5px;">
|
<div id="tabBase" class="row">
|
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3 col-xl-3 DivHeight" style="height:40px">
|
<div class="control-group">
|
<label style="text-align: center;padding-right:1.2em" class="control-label">关键字:</label>
|
<div class="controls input-icon">
|
<input type="text" id="title1" value="" class="form-control col-sm-12" />
|
</div>
|
</div>
|
</div>
|
</div>
|
<div class="row">
|
<table class="querycondition">
|
<tr>
|
<td style="width:5.5%;">底图类型:</td>
|
<td><div id="lx" style="display: inline-block"><span class="selected" value="">不限</span><span th:each="item,itemStat:${BaseMapTypeList}" th:value="${item.key}" th:text="${item.value}"></span></div></td>
|
<td style="width:5.5%;">发布时间:</td>
|
<td><span id="FaBuTime"><span class="selected" value="" style="cursor:pointer;">不限</span></span> <input type="text" id="pubdateBegin" value="" readonly="readonly" class="date-picker form-control" style="width:100px;border:1px solid silver;height:26px;padding:0px 3px;display: inline-block" />
|
至 <input type="text" id="pubdatefinish" value="" readonly="readonly" class="date-picker form-control" style="width:100px;border:1px solid silver;height:26px;padding:0px 3px;display: inline-block" /><input type="hidden" id="thisYear" th:value="${year}"/></td>
|
</tr>
|
</table>
|
</div>
|
<div class="row">
|
<table class="querycondition">
|
<tr>
|
<td style="width:5.5%;" class="qname">排 序:</td>
|
<td style="line-height:33px;">
|
<div id="px" style="display: inline-block">
|
<span id="orderDefault" value="" class="orderBy" style="cursor:pointer;">默认<img src="/image/gray_down.gif" /></span>
|
<span id="orderNew" value="1" class="orderBy" style="cursor:pointer;">最新<img src="/image/gray_down.gif" /></span>
|
</div>
|
</td>
|
</tr>
|
</table>
|
</div>
|
<div class="row">
|
<div class="col-sm-6" align="left">
|
<button type="button" class="btn btn-primary" onclick="AddZiYuan('');">
|
<i class="fa fa-plus"></i>发布
|
</button>
|
<span> 图 例 :
|
<span>
|
<img src="/image/right.gif" />有权限
|
</span>
|
|
<span>
|
<img src="/image/wrong.gif" />无权限
|
</span>
|
</span>
|
<span style="font-size:15px;margin-left:20px;">资源数量:
|
<span id="ZiYuanCount" style="color:red;font-weight:bold;font-size:16px;">0</span>
|
笔</span>
|
</div>
|
<div class="col-sm-6" align="right">
|
<button type="button" class="btn btn-primary" onclick="Search('');">
|
<i class="fa fa-search"></i>查询
|
</button>
|
<button type="button" class="btn btn-primary" onclick="Clear();">
|
<i class="fa fa-trash"></i>清除
|
</button>
|
</div>
|
</div>
|
|
</div>
|
</div>
|
</form>
|
</div>
|
<div id="grid" style="display: none"></div>
|
<div id="block" style="width: 100%;"></div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</body>
|
</html>
|