修改样式
This commit is contained in:
parent
58527fad99
commit
3ed75cdd38
|
@ -143,6 +143,20 @@ public class SysLoginController extends BaseController
|
|||
}
|
||||
|
||||
|
||||
@GetMapping("/portal/downLoad")
|
||||
public String downLoad(HttpServletRequest request, HttpServletResponse response, ModelMap mmap)
|
||||
{
|
||||
|
||||
mmap.put("newType", "48");
|
||||
//友情链接
|
||||
NdNew ndNew = new NdNew();
|
||||
ndNew.setNewType("13");
|
||||
List<NdNew> yqljList = ndNewService.selectNdNewList(ndNew);
|
||||
mmap.put("yqljList", yqljList);
|
||||
return "portal/downList";
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("/portal/dataList")
|
||||
@ResponseBody
|
||||
public TableDataInfo dataList(NdNew ndNew)
|
||||
|
|
|
@ -7,9 +7,9 @@ ruoyi:
|
|||
# 版权年份
|
||||
copyrightYear: 2024
|
||||
# 实例演示开关
|
||||
demoEnabled: true
|
||||
demoEnabled: false
|
||||
# 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
|
||||
profile: D:/ruoyi/uploadPath
|
||||
profile: C:/ruoyi/uploadPath
|
||||
# 获取ip地址开关
|
||||
addressEnabled: false
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ body.signin {
|
|||
background-size:cover
|
||||
}
|
||||
.signinpanel {
|
||||
width:900px;
|
||||
/* width:1000px;*/
|
||||
margin:10% auto 0;
|
||||
color:rgba(255,255,255,.95)
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
html{height:100%}body.signin{height:auto;background:url(../img/login-background.png) no-repeat center fixed;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover}.signinpanel{width:900px;margin:10% auto 0;color:rgba(255,255,255,.95)}.signinpanel .logopanel{float:none;width:auto;padding:0;background:0}.signinpanel .signin-info ul{list-style:none;padding:0;margin:20px 0}.signinpanel .form-control{display:block;margin-top:15px}.signinpanel .uname{background:#fff url(../img/user.png) no-repeat 95% center;color:#333}.signinpanel .pword{background:#fff url(../img/locked.png) no-repeat 95% center;color:#333}.signinpanel .code{background:#fff no-repeat 95% center;color:#333;margin:0 0 15px 0}.signinpanel .btn{margin-top:15px}.signinpanel form{background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.3);-moz-box-shadow:0 3px 0 rgba(12,12,12,.03);-webkit-box-shadow:0 3px 0 rgba(12,12,12,.03);box-shadow:0 3px 0 rgba(12,12,12,.03);-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;padding:30px}.signup-footer{border-top:solid 1px rgba(255,255,255,.3);margin:20px 0;padding-top:15px}@media screen and (max-width:768px){.signinpanel,.signuppanel{margin:0 auto;width:380px!important;padding:20px}.signinpanel form{margin-top:20px}.signup-footer,.signuppanel .form-control{margin-bottom:10px}.signup-footer .pull-left,.signup-footer .pull-right{float:none!important;text-align:center}.signinpanel .signin-info ul{display:none}}@media screen and (max-width:320px){.signinpanel,.signuppanel{margin:0 20px;width:auto}}.checkbox-custom{position:relative;padding:0 15px 0 25px;margin-bottom:7px;display:inline-block}.checkbox-custom input[type="checkbox"]{opacity:0;position:absolute;cursor:pointer;z-index:2;margin:-6px 0 0 0;top:50%;left:3px}.checkbox-custom label:before{content:'';position:absolute;top:50%;left:0;margin-top:-9px;width:18px;height:17px;display:inline-block;border-radius:2px;border:1px solid #bbb;background:#fff}.checkbox-custom input[type="checkbox"]:checked+label:after{position:absolute;display:inline-block;font-family:'Glyphicons Halflings';content:"\e013";top:42%;left:3px;margin-top:-5px;font-size:11px;line-height:1;width:16px;height:16px;color:#333}.checkbox-custom label{cursor:pointer;line-height:1.2;font-weight:normal;margin-bottom:0;text-align:left}.form-control,.form-control:focus,.has-error .form-control:focus,.has-success .form-control:focus,.has-warning .form-control:focus,.navbar-collapse,.navbar-form,.navbar-form-custom .form-control:focus,.navbar-form-custom .form-control:hover,.open .btn.dropdown-toggle,.panel,.popover,.progress,.progress-bar{box-shadow:none}.form-control{border-radius:1px!important;padding:6px 12px!important;height:34px!important}.form-control:focus{border-color:#1ab394!important}body .layer-ext-moon-msg[type="dialog"]{min-width:100px!important}body .layer-ext-moon-msg{background-color:rgba(0,0,0,0.6);color:#fff;border:0}body .layer-ext-moon-msg .layui-layer-content{padding:12px 25px;text-align:center}
|
||||
html{height:100%}body.signin{height:auto;background:url(../img/login-background.png) no-repeat center fixed;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover}.signinpanel{margin:10% auto 0;color:rgba(255,255,255,.95)}.signinpanel .logopanel{float:none;width:auto;padding:0;background:0}.signinpanel .signin-info ul{list-style:none;padding:0;margin:20px 0}.signinpanel .form-control{display:block;margin-top:15px}.signinpanel .uname{background:#fff url(../img/user.png) no-repeat 95% center;color:#333}.signinpanel .pword{background:#fff url(../img/locked.png) no-repeat 95% center;color:#333}.signinpanel .code{background:#fff no-repeat 95% center;color:#333;margin:0 0 15px 0}.signinpanel .btn{margin-top:15px}.signinpanel form{background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.3);-moz-box-shadow:0 3px 0 rgba(12,12,12,.03);-webkit-box-shadow:0 3px 0 rgba(12,12,12,.03);box-shadow:0 3px 0 rgba(12,12,12,.03);-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;padding:30px}.signup-footer{border-top:solid 1px rgba(255,255,255,.3);margin:20px 0;padding-top:15px}@media screen and (max-width:768px){.signinpanel,.signuppanel{margin:0 auto;width:380px!important;padding:20px}.signinpanel form{margin-top:20px}.signup-footer,.signuppanel .form-control{margin-bottom:10px}.signup-footer .pull-left,.signup-footer .pull-right{float:none!important;text-align:center}.signinpanel .signin-info ul{display:none}}@media screen and (max-width:320px){.signinpanel,.signuppanel{margin:0 20px;width:auto}}.checkbox-custom{position:relative;padding:0 15px 0 25px;margin-bottom:7px;display:inline-block}.checkbox-custom input[type="checkbox"]{opacity:0;position:absolute;cursor:pointer;z-index:2;margin:-6px 0 0 0;top:50%;left:3px}.checkbox-custom label:before{content:'';position:absolute;top:50%;left:0;margin-top:-9px;width:18px;height:17px;display:inline-block;border-radius:2px;border:1px solid #bbb;background:#fff}.checkbox-custom input[type="checkbox"]:checked+label:after{position:absolute;display:inline-block;font-family:'Glyphicons Halflings';content:"\e013";top:42%;left:3px;margin-top:-5px;font-size:11px;line-height:1;width:16px;height:16px;color:#333}.checkbox-custom label{cursor:pointer;line-height:1.2;font-weight:normal;margin-bottom:0;text-align:left}.form-control,.form-control:focus,.has-error .form-control:focus,.has-success .form-control:focus,.has-warning .form-control:focus,.navbar-collapse,.navbar-form,.navbar-form-custom .form-control:focus,.navbar-form-custom .form-control:hover,.open .btn.dropdown-toggle,.panel,.popover,.progress,.progress-bar{box-shadow:none}.form-control{border-radius:1px!important;padding:6px 12px!important;height:34px!important}.form-control:focus{border-color:#1ab394!important}body .layer-ext-moon-msg[type="dialog"]{min-width:100px!important}body .layer-ext-moon-msg{background-color:rgba(0,0,0,0.6);color:#fff;border:0}body .layer-ext-moon-msg .layui-layer-content{padding:12px 25px;text-align:center}
|
|
@ -113,3 +113,4 @@ li{
|
|||
padding: 0 0 1.6rem;
|
||||
}
|
||||
} */
|
||||
|
||||
|
|
|
@ -164,3 +164,19 @@
|
|||
background-position: 0% 0%;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.con_down{
|
||||
width: 60rem;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
|
||||
.down_button{
|
||||
padding: 0.3rem 0.5rem;
|
||||
font-size: 13px;
|
||||
color: #fff;
|
||||
background: #062d7b;
|
||||
border-radius: 5px;
|
||||
margin-left: 30px;
|
||||
}
|
|
@ -23,7 +23,6 @@ function generPage(total, dom_page_class) {
|
|||
}
|
||||
|
||||
domStr += ` <span class="p_no"><a href="javascript:void(0);" onclick="pageChange(${totalCount},this)">尾页</a></span></span></div>`;
|
||||
console.log('domStr-->',domStr);
|
||||
document.querySelector('.' + dom_page_class).innerHTML = domStr
|
||||
}
|
||||
|
||||
|
|
|
@ -25,15 +25,15 @@
|
|||
<div class="signinpanel">
|
||||
<div class="row">
|
||||
<div class="col-sm-7">
|
||||
<div class="signin-info" style="text-align: center;">
|
||||
<div class="signin-info" style="text-align: right;padding-right: 50px;">
|
||||
<div class="logopanel m-b">
|
||||
<h1><img alt="[ 吉林省新农科长白山创新学院 ]" src="../static/ruoyi.png" th:src="@{/ruoyi.png}" style="max-width:500px;margin-top: -30px;"></h1>
|
||||
<h1><img alt="[ 吉林省新农科长白山创新学院 ]" src="../static/ruoyi.png" th:src="@{/ruoyi.png}" style="max-width:800px;margin-top: -100px;"></h1>
|
||||
</div>
|
||||
<!-- <div class="m-b"></div>-->
|
||||
<!-- <h4>欢迎使用 <strong>长白山创新学院</strong> 后台管理系统</h4>-->
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-5">
|
||||
<div class="col-sm-2 col-lg-2">
|
||||
<form id="signupForm" autocomplete="off">
|
||||
<h4 class="no-margins">登录:</h4>
|
||||
<input type="text" name="username" class="form-control uname" placeholder="用户名" />
|
||||
|
|
|
@ -12,25 +12,18 @@
|
|||
<div id="element" class="form-group">
|
||||
<label class="col-sm-3 control-label">栏目类型:</label>
|
||||
<div class="col-sm-4">
|
||||
<!-- <select class="form-control" name="firstType">-->
|
||||
<!-- <option value="1" selected>首页</option>-->
|
||||
<!-- </select>-->
|
||||
|
||||
<select class="form-control" name="firstType" id="firstType" th:onchange="handleFirst()">
|
||||
<option value="">请选择</option>
|
||||
<option th:value="${item.v}" th:each="item : ${data}">[[${item.n}]]</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<!-- <select class="form-control" name="newType">-->
|
||||
<!-- <option value="10" selected>新闻动态</option>-->
|
||||
<!-- </select>-->
|
||||
<select class="form-control" name="newType" id="newType">
|
||||
<select class="form-control" name="newType" id="newType" th:onchange="handleSecond()">
|
||||
<option value="">请选择</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="form-group" id="col1">
|
||||
<label class="col-sm-3 control-label">内容类型:</label>
|
||||
<div class="col-sm-8 radio">
|
||||
<div class="radio-box" th:each="dict : ${@dict.getType('news_content_type')}">
|
||||
|
@ -45,21 +38,12 @@
|
|||
<input name="title" class="form-control" required></input>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="form-group" >
|
||||
<label class="col-sm-3 control-label">来源或作者:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="sourceAuthor" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="form-group">-->
|
||||
<!-- <label class="col-sm-3 control-label">发布时间:</label>-->
|
||||
<!-- <div class="col-sm-8">-->
|
||||
<!-- <div class="input-group date">-->
|
||||
<!-- <input name="publishTime" class="form-control" placeholder="yyyy-MM-dd" type="text">-->
|
||||
<!-- <span class="input-group-addon"><i class="fa fa-calendar"></i></span>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<div id="contentDiv" class="form-group">
|
||||
<label class="col-sm-3 control-label">内容:</label>
|
||||
<div class="col-sm-8">
|
||||
|
@ -73,7 +57,7 @@
|
|||
<input name="linkUrl" type="url" class="form-control"></input>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="form-group" id="col3">
|
||||
<label class="col-sm-3 control-label">缩略图:</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="hidden" name="imagePath">
|
||||
|
@ -87,7 +71,7 @@
|
|||
<div class="col-sm-8">
|
||||
<input type="hidden" name="filePath">
|
||||
<div class="file-loading">
|
||||
<input class="form-control file-uploadb" id="filePath" name="file" type="file" accept="*">
|
||||
<input class="form-control file-uploadb" id="filePath" name="file" type="file" accept="*" multiple>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -142,6 +126,23 @@
|
|||
});
|
||||
}
|
||||
|
||||
function handleSecond(){
|
||||
var record = document.getElementById("newType").value;
|
||||
if(record == '48'){
|
||||
$("#col1").css("display","none");
|
||||
$("#col3").css("display","none");
|
||||
$("#contentDiv").css("display","none");
|
||||
$("#linkUrlDiv").css("display","none");
|
||||
|
||||
}else{
|
||||
$("#col1").css("display","block");
|
||||
$("#col3").css("display","block");
|
||||
$("#contentDiv").css("display","block");
|
||||
$("#linkUrlDiv").css("display","block");
|
||||
handleRadioChange();
|
||||
}
|
||||
}
|
||||
|
||||
$(function() {
|
||||
|
||||
$("input[name='publishTime']").datetimepicker({
|
||||
|
|
|
@ -10,39 +10,19 @@
|
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-new-edit" th:object="${ndNew}">
|
||||
<input name="id" th:field="*{id}" type="hidden">
|
||||
<!-- <div class="form-group">-->
|
||||
<!-- <label class="col-sm-3 control-label">状态:</label>-->
|
||||
<!-- <div class="col-sm-8">-->
|
||||
<!-- <div class="radio-box" th:each="dict : ${@dict.getType('sys_normal_disable')}">-->
|
||||
<!-- <input type="radio" th:id="${'delFlag_' + dict.dictCode}" name="delFlag" th:value="${dict.dictValue}" th:checked="${dict.default}">-->
|
||||
<!-- <label th:for="${'delFlag_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<div id="element" class="form-group">
|
||||
<label class="col-sm-3 control-label">栏目类型:</label>
|
||||
<div class="col-sm-4">
|
||||
<!-- <select class="first form-control" name="firstType" required>-->
|
||||
<!-- <option th:value="*{firstType}" selected>[[*{firstTypeStr}]]</option>-->
|
||||
<!-- </select>-->
|
||||
|
||||
<select class="form-control" name="firstType" id="firstType" th:onchange="handleFirst('')">
|
||||
<!-- <option th:value="*{firstType}" selected>[[*{firstTypeStr}]]</option>-->
|
||||
<option th:value="${item.v}" th:each="item : ${data}">[[${item.n}]]</option>
|
||||
</select>
|
||||
</div>
|
||||
<!-- </div>-->
|
||||
<!-- <div class="form-group">-->
|
||||
<div class="col-sm-4">
|
||||
<!-- <select class="second form-control" name="newType" required>-->
|
||||
<!-- <option th:value="*{newType}" selected>[[*{newTypeStr}]]</option>-->
|
||||
<!-- </select>-->
|
||||
<select class="form-control" name="newType" id="newType">
|
||||
<!-- <option th:value="*{newType}" selected>[[*{newTypeStr}]]</option>-->
|
||||
<select class="form-control" name="newType" id="newType" th:onchange="handleSecond('')">
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="form-group" id="col1">
|
||||
<label class="col-sm-3 control-label">内容类型:</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="radio-box" th:each="dict : ${@dict.getType('news_content_type')}">
|
||||
|
@ -85,7 +65,7 @@
|
|||
<textarea name="linkUrl" type="url" class="form-control">[[*{linkUrl}]]</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="form-group" id="col3">
|
||||
<label class="col-sm-3 control-label">缩略图:</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="hidden" name="imagePath" th:field="*{imagePath}">
|
||||
|
@ -103,24 +83,6 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="form-group">-->
|
||||
<!-- <label class="col-sm-3 control-label">摘要:</label>-->
|
||||
<!-- <div class="col-sm-8">-->
|
||||
<!-- <textarea name="abstracts" class="form-control">[[*{abstracts}]]</textarea>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="form-group">-->
|
||||
<!-- <label class="col-sm-3 control-label">点击率:</label>-->
|
||||
<!-- <div class="col-sm-8">-->
|
||||
<!-- <input name="clickRate" th:field="*{clickRate}" type="number" class="form-control">-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="form-group">-->
|
||||
<!-- <label class="col-sm-3 control-label">排序:</label>-->
|
||||
<!-- <div class="col-sm-8">-->
|
||||
<!-- <input name="sort" th:field="*{sort}" class="form-control" type="number">-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
|
@ -167,6 +129,26 @@
|
|||
});
|
||||
}
|
||||
|
||||
function handleSecond(newType){
|
||||
var record = document.getElementById("newType").value;
|
||||
if(newType!=''){
|
||||
record = newType;
|
||||
}
|
||||
if(record == '48'){
|
||||
$("#col1").css("display","none");
|
||||
$("#col3").css("display","none");
|
||||
$("#contentDiv").css("display","none");
|
||||
$("#linkUrlDiv").css("display","none");
|
||||
|
||||
}else{
|
||||
$("#col1").css("display","block");
|
||||
$("#col3").css("display","block");
|
||||
$("#contentDiv").css("display","block");
|
||||
$("#linkUrlDiv").css("display","block");
|
||||
handleRadioChange();
|
||||
}
|
||||
}
|
||||
|
||||
$(function() {
|
||||
var ndNew = [[${ndNew}]];
|
||||
// 直接返回获取
|
||||
|
@ -178,7 +160,7 @@
|
|||
// });
|
||||
document.getElementById("firstType").value =ndNew.firstType;
|
||||
handleFirst(ndNew.newType);
|
||||
|
||||
handleSecond(ndNew.newType)
|
||||
$('.summernote').each(function(i) {
|
||||
$('#' + this.id).summernote({
|
||||
lang: 'zh-CN',
|
||||
|
|
|
@ -0,0 +1,223 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title>吉林省新农科长白山创新学院</title>
|
||||
<!-- 避免IE使用兼容模式 -->
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<link href="../../static/portal/css/swiper.min.css" th:href="@{/portal/css/swiper.min.css}" rel="stylesheet" />
|
||||
<link href="../../static/portal/css/style.css" th:href="@{/portal/css/style.css}" rel="stylesheet"/>
|
||||
<link href="../../static/portal/css/index.css" th:href="@{/portal/css/index.css}" rel="stylesheet"/>
|
||||
<link href="../../static/portal/css/text.css" th:href="@{/portal/css/text.css}" rel="stylesheet" />
|
||||
<link href="../../static/portal/css/_sitegray_d.css" th:href="@{/portal/css/_sitegray_d.css}" rel="stylesheet" />
|
||||
<!-- <link href="https://fonts.googleapis.com/css?family=Noto+Sans+SC:100,300,400,500,700,900" rel="stylesheet" >-->
|
||||
|
||||
<script src="static/portal/js/jquer3y6.min.js" th:src="@{/portal/js/jquer3y6.min.js}"></script>
|
||||
<!-- [if lte IE 9]>
|
||||
<script src="../../static/portal/js/jquery_ie8.js" th:src="@{/portal/js/jquery_ie8.js}"></script>
|
||||
<![endif] -->
|
||||
<!-- <link rel="stylesheet" type="text/css" href="static/css/swiper.css" /> -->
|
||||
<script src="../../static/portal/js/_sitegray.js" th:src="@{/portal/js/_sitegray.js}"></script>
|
||||
<script src="../../static/portal/js/flexible.js" th:src="@{/portal/js/flexible.js}"></script>
|
||||
<script src="../../static/portal/js/detectZoom.js" th:src="@{/portal/js/detectZoom.js}"></script>
|
||||
<script src="../../static/portal/js/counter.js" th:src="@{/portal/js/counter.js}"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="swiper-container">
|
||||
<div class="main-wrapper">
|
||||
<div class="full_width homea">
|
||||
<div class="container">
|
||||
<th:block th:include="portal/headerAndFooter :: header" />
|
||||
</div>
|
||||
<div class="listacon portal_list">
|
||||
<div class="listaright">
|
||||
|
||||
<div class="crumbs">
|
||||
<img src="../../static/portal/images/shouye.png" th:src="@{/portal/images/shouye.png}" alt="" />
|
||||
<a href="/">首页 > </a>
|
||||
<a>下载专栏</a>
|
||||
</div>
|
||||
<div class="con">
|
||||
<script src="../../static/portal/js/centercutimg.js" th:src="@{/portal/js/centercutimg.js}"></script>
|
||||
<script src="../../static/portal/js/ajax.js" th:src="@{/portal/js/ajax.js}"></script>
|
||||
|
||||
<ul class="dataSource" style="min-height:600px">
|
||||
</ul>
|
||||
|
||||
<link href="../../static/portal/css/sys.css" th:href="@{/portal/css/sys.css}" rel="stylesheet"/>
|
||||
<div class="page_list">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<th:block th:include="portal/headerAndFooter :: footer" />
|
||||
</div>
|
||||
|
||||
<th:block th:include="portal/headerAndFooter :: search" />
|
||||
|
||||
<script src="../../static/js/public.js" th:src="@{/portal/js/public.js}"></script>
|
||||
<script th:src="@{/portal/js/page.js}"></script>
|
||||
<script th:inline="javascript">
|
||||
|
||||
|
||||
var newType = [[${newType}]]
|
||||
var url = "/portal/dataList";
|
||||
var div = document.getElementById("dataSource");
|
||||
var dataParam = {newType:newType}
|
||||
$.post(url, dataParam, function(result) {
|
||||
|
||||
let str = result.rows.reduce(function (prve, item) {
|
||||
// <a href="/portal/details?id=${item.id}" target="_blank" title="${item.title}" class="clearfix">
|
||||
var url = item.filePath;
|
||||
prve += `
|
||||
<li class="clearfix">
|
||||
<a title="${item.title}" class="clearfix">
|
||||
<div class="left txt">
|
||||
<div class="fnt_22 title">${item.title}<button class="down_button" onclick="download('${url}')">下载</button></div>`
|
||||
if(item.sourceAuthor){
|
||||
prve +=`<div class="des">${item.sourceAuthor}</div>`
|
||||
}else{
|
||||
prve +=`<div class="des">吉林省新农长白山创新学院</div>`
|
||||
}
|
||||
prve +=`</div>
|
||||
<div class="right time">
|
||||
<div class="ta">${item.publishTime}</div>
|
||||
<div>发布时间</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
`
|
||||
|
||||
// <div class="fnt_22 title">${item.title}</div>
|
||||
// <div class="des">发布人:${item.abstracts}</div>
|
||||
// <button class="down_button" onclick="download('${url}')">下载</button>
|
||||
return prve
|
||||
}, '')
|
||||
if(str){
|
||||
document.querySelector('.dataSource').innerHTML = str;
|
||||
}else{
|
||||
document.querySelector('.dataSource').innerHTML = `<div style="width:100%;margin-top:200px;font-size:18px;font-weight:blod;text-align:center;">暂无数据</div>`;
|
||||
}
|
||||
|
||||
//翻页
|
||||
if(result.total>0){
|
||||
generPage(result.total, 'page_list')
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
function downloadFiles(files) {
|
||||
files.forEach(url => {
|
||||
if(url!=""&&url!=undefined&&url!="undefined"){
|
||||
const a = document.createElement('a');
|
||||
a.href = url;
|
||||
a.download = url.split('/').pop(); // 假设URL的最后一个部分是文件名
|
||||
a.style.display = 'none';
|
||||
document.body.appendChild(a);
|
||||
a.click();
|
||||
document.body.removeChild(a);
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
// // 使用示例
|
||||
// const fileUrls = [
|
||||
// 'https://example.com/file1.pdf',
|
||||
// 'https://example.com/file2.jpg',
|
||||
// // ... 其他文件URL
|
||||
// ];
|
||||
// downloadFiles(fileUrls);
|
||||
|
||||
|
||||
function download(downPath){
|
||||
console.log(downPath);
|
||||
if(downPath){
|
||||
var downloadPath = downPath.split("|");
|
||||
downloadFiles(downloadPath)
|
||||
// console.log('--->',downloadPath);
|
||||
// for(var i = 0; i < downloadPath.length; i++){
|
||||
//// window.location.href = downloadPath[i]
|
||||
// console.log(i,downloadPath[i]);
|
||||
// var a = document.createElement("a");
|
||||
// a.href = downloadPath[i];
|
||||
// a.download = downloadPath[i];
|
||||
// a.click();
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
async function mainListChange(page) {
|
||||
var url = "/portal/dataList";
|
||||
var div = document.getElementById("dataSource");
|
||||
var dataParam = {newType:newType,pageNum: page, pageSize: 10}
|
||||
$.post(url, dataParam, function(result) {
|
||||
|
||||
let str = result.rows.reduce(function (prve, item) {
|
||||
var url = item.filePath;
|
||||
prve += `
|
||||
<li class="clearfix">
|
||||
<a title="${item.title}" class="clearfix">
|
||||
<div class="left txt">
|
||||
<div class="fnt_22 title">${item.title}<button class="down_button" onclick="download('${url}')">下载</button></div>`
|
||||
if(item.sourceAuthor){
|
||||
prve +=`<div class="des">${item.sourceAuthor}</div>`
|
||||
}else{
|
||||
prve +=`<div class="des">吉林省新农长白山创新学院</div>`
|
||||
}
|
||||
prve +=`</div>
|
||||
<div class="right time">
|
||||
<div class="ta">${item.publishTime}</div>
|
||||
<div>发布时间</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
`
|
||||
return prve
|
||||
}, '')
|
||||
document.querySelector('.dataSource').innerHTML = str;
|
||||
|
||||
//翻页
|
||||
generPage(result.total, 'page_list')
|
||||
});
|
||||
}
|
||||
//if($(window).width()<1024){
|
||||
//判断手机横竖屏状态:
|
||||
if (window.orientation == 180 || window.orientation == 0) {
|
||||
//alert("竖屏状态!")
|
||||
$(".stips").hide();
|
||||
}
|
||||
if (window.orientation == 90 || window.orientation == -90) {
|
||||
//alert("横屏状态!")
|
||||
$(".stips").css({
|
||||
display: "flex"
|
||||
});
|
||||
}
|
||||
|
||||
function hengshuping() {
|
||||
if (window.orientation == 180 || window.orientation == 0) {
|
||||
//alert("竖屏状态!")
|
||||
$(".stips").hide();
|
||||
}
|
||||
if (window.orientation == 90 || window.orientation == -90) {
|
||||
//alert("横屏状态!")
|
||||
$(".stips").css({
|
||||
display: "flex"
|
||||
});
|
||||
}
|
||||
}
|
||||
//}
|
||||
window.addEventListener(
|
||||
"onorientationchange" in window ? "orientationchange" : "resize",
|
||||
hengshuping,
|
||||
false
|
||||
);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -161,6 +161,9 @@
|
|||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
<li class="navsitem navi8">
|
||||
<a th:href="'/portal/downLoad'" target="_blank" title="下载专栏">下载专栏</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Binary file not shown.
|
@ -68,7 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="title != null and title != ''"> and a.title like concat('%', #{title}, '%')</if>
|
||||
<if test="params.beginPublishTime != null and params.beginPublishTime != '' and params.endPublishTime != null and params.endPublishTime != ''"> and a.publish_time between #{params.beginPublishTime} and #{params.endPublishTime}</if>
|
||||
</where>
|
||||
order by a.publish_time desc
|
||||
order by a.publish_time desc,a.create_time desc
|
||||
<if test="paramLimitno != null and paramLimitno != ''"> limit ${paramLimitno}</if>
|
||||
</select>
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="title != null and title != ''"> and a.title like concat('%', #{title}, '%')</if>
|
||||
<if test="params.beginPublishTime != null and params.beginPublishTime != '' and params.endPublishTime != null and params.endPublishTime != ''"> and a.publish_time between #{params.beginPublishTime} and #{params.endPublishTime}</if>
|
||||
</where>
|
||||
order by a.publish_time desc
|
||||
order by a.publish_time desc,a.create_time desc
|
||||
<if test="paramLimitno != null and paramLimitno != ''"> limit ${paramLimitno}</if>
|
||||
</select>
|
||||
|
||||
|
@ -158,7 +158,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</delete>
|
||||
|
||||
<select id="getNewsTypes" parameterType="Long" resultType="com.ruoyi.common.core.domain.CxSelect">
|
||||
select id as v, name as n
|
||||
select id as v, name as n,id,name
|
||||
from nd_new_type
|
||||
where parent_id = #{parentId}
|
||||
order by sort
|
||||
|
|
Loading…
Reference in New Issue