修改bug

This commit is contained in:
yangjun 2024-06-04 13:42:12 +08:00
parent a90f416070
commit 3ba4329600
16 changed files with 138 additions and 117 deletions

View File

@ -2412,7 +2412,7 @@ html {
.homef .home-footer .fright .frightb {
border-top: .04rem solid #365faa;
height: 2.72rem;
padding: 0 10.25% 0 7.3%;
padding: 0 5.25% 0 3.3%;
line-height: 2.72rem
}
@ -3037,7 +3037,7 @@ li.A_li9:hover p {
.index-flash .list li {
position: relative;
height: 32.1rem;
height: 31.1rem;
}
.index-flash .list li .img {

View File

@ -29,14 +29,14 @@
<h1><img alt="[ 吉林省新农科长白山创新学院 ]" src="../static/ruoyi.png" th:src="@{/ruoyi.png}"></h1>
</div>
<div class="m-b"></div>
<h4>欢迎使用 <strong>后台管理系统</strong></h4>
<h4>欢迎使用 <strong>长白山创新学院</strong> 后台管理系统</h4>
</div>
</div>
<div class="col-sm-5">
<form id="signupForm" autocomplete="off">
<h4 class="no-margins">登录:</h4>
<input type="text" name="username" class="form-control uname" placeholder="用户名" value="admin" />
<input type="password" name="password" class="form-control pword" placeholder="密码" value="admin" />
<input type="text" name="username" class="form-control uname" placeholder="用户名" />
<input type="password" name="password" class="form-control pword" placeholder="密码" />
<div class="row m-t" th:if="${captchaEnabled==true}">
<div class="col-xs-6">
<input type="text" name="validateCode" class="form-control code" placeholder="验证码" maxlength="5" />
@ -47,20 +47,23 @@
</a>
</div>
</div>
<div class="checkbox-custom" th:if="${isRemembered}" th:classappend="${captchaEnabled==false} ? 'm-t'">
<input type="checkbox" id="rememberme" name="rememberme"> <label for="rememberme">记住我</label>
</div>
<!-- <div class="checkbox-custom" th:if="${isRemembered}" th:classappend="${captchaEnabled==false} ? 'm-t'">-->
<!-- <input type="checkbox" id="rememberme" name="rememberme"> <label for="rememberme">记住我</label>-->
<!-- </div>-->
<button class="btn btn-success btn-block" id="btnSubmit" data-loading="正在验证登录,请稍候...">登录</button>
</form>
</div>
</div>
<div class="signup-footer">
<div class="pull-left">
Copyright © 吉林省新农科长白山创新学院. <br>
<!-- <div class="signup-footer">-->
<!-- <div class="pull-center">-->
<!-- Copyright © 吉林省新农科长白山创新学院. <br>-->
<!-- </div>-->
<!-- </div>-->
</div>
</div>
</div>
<script th:inline="javascript"> var ctx = [[@{/}]]; var captchaType = [[${captchaType}]]; var captchaEnabled = [[${captchaEnabled}]];</script>
<script th:inline="javascript">
var ctx = [[@{/}]];
var captchaType = [[${captchaType}]];
var captchaEnabled = [[${captchaEnabled}]];</script>
<!--[if lte IE 8]><script>window.location.href=ctx+'html/ie.html';</script><![endif]-->
<!-- 全局js -->
<script src="../static/js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>

View File

@ -89,7 +89,7 @@
<div class="form-group">
<label class="col-sm-3 control-label">附件:</label>
<div class="col-sm-8">
<input type="text" name="filePath" th:field="*{filePath}">
<input type="hidden" name="filePath" th:field="*{filePath}">
<div class="file-loading">
<input class="form-control file-uploadb" id="filePath" name="file" type="file" accept="*" multiple>
</div>

View File

@ -227,8 +227,9 @@
</div>
<div class="frightb">
<div class="flex-left">
<div class="ll flex-v-center">友情链接:</div>
<!-- <div class="ll flex-v-center">友情链接</div>-->
<div class="rr">
<a th:href="'/portal/list?newType=13'">友情链接:</a>
<a th:each="item:${yqljList}" th:href="${item.linkUrl}" target="_blank"><span class="titline_w">[[${item.title}]]</span></a>
<!-- <a href="list.html" title="吉林农业大学"-->
<!-- onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 79045)" target="_blank"-->

View File

@ -68,7 +68,7 @@
</div>
<ul style="margin-top: .65rem;">
<li class="titlin_b" th:each="item : ${xwdtList}" >
<a th:href="${item.linkUrl}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="ellipsis-multiline">
<a th:href="${item.type=='2'}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="ellipsis-multiline">
<h4 class="titline_b">[[${item.title}]]</h4>
<p class="titline_line2" >
[[${item.abstracts}]]
@ -86,12 +86,12 @@
<div class="swiper-wrapper">
<div class="swiper-slide slide bg-mask" th:each="item : ${xwdtList}" >
<div class="pic">
<a th:href="${item.linkUrl}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="mark">
<a th:href="${item.type=='2'}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="mark">
<img th:src="${item.imagePath}" th:alt="${item.title}" style="max-width:875px;max-height:599px;" />
</a>
</div>
<p>
<a th:href="${item.linkUrl}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="texto">
<a th:href="${item.type=='2'}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="texto">
[[${item.title}]]
</a>
<span>发布时间:[[${#dates.format(item.publishTime, 'YYYY-MM-dd')}]]</span>
@ -150,7 +150,8 @@
<time><span>[[${#dates.format(item.publishTime, 'dd')}]]</span>[[${#dates.format(item.publishTime, 'YYYY-MM')}]]</time>
</div>
<div class="info flex-v-center">
<h4><a th:href="${item.linkUrl}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="texto">
<h4>
<a th:href="${item.type=='2'}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="texto">
<span class="titline_w">[[${item.title}]]</span></a>
</h4>
<p class="line2">
@ -174,7 +175,7 @@
<ul>
<li th:each="item : ${hdygList}">
<div class="img">
<a th:href="${item.linkUrl}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="jtfylist jtfyl1">
<a th:href="${item.type=='2'}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="jtfylist jtfyl1">
<img th:src="${item.imagePath}" th:alt="${item.title}" style="width: 100%" />
</a>
</div>

View File

@ -81,7 +81,6 @@
<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 = [[${threeCode}]]
@ -94,7 +93,7 @@
let str = result.rows.reduce(function (prve, item) {
// <a href="/portal/details?id=${item.id}" target="_blank" title="${item.title}" class="clearfix">
var url = "";
if(item.linkUrl){
if(item.type=='2'){
url = item.linkUrl;
}else{
url= '/portal/details?id='+item.id
@ -103,9 +102,14 @@
<li class="clearfix">
<a href="${url}" target="_blank" title="${item.title}" class="clearfix">
<div class="left txt">
<div class="fnt_22 title">${item.title}</div>
<div class="des">${item.abstracts}</div>
</div>
<div class="fnt_22 title">${item.title}</div>`
if(item.abstracts){
prve +=`<div class="des">${item.abstracts}</div>`
}else{
prve +=`<div class="des"> </div>`
}
prve +=`</div>
<div class="right time">
<div class="ta">${item.publishTime}</div>
<div>发布时间</div>
@ -193,5 +197,6 @@
false
);
</script>
<script th:src="@{/portal/js/page.js}"></script>
</body>
</html>

View File

@ -39,7 +39,7 @@
<ul class="dataSource" style="min-height:600px">
<li class="clearfix" th:each="item : ${list}">
<a th:href="${item.linkUrl}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="clearfix">
<a th:href="${item.type=='2'}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="clearfix">
<div class="left txt">
<div class="fnt_22 title">[[${item.title}]]</div>
<div class="des">[[${item.abstracts}]]</div>

View File

@ -2412,7 +2412,7 @@ html {
.homef .home-footer .fright .frightb {
border-top: .04rem solid #365faa;
height: 2.72rem;
padding: 0 10.25% 0 7.3%;
padding: 0 5.25% 0 3.3%;
line-height: 2.72rem
}
@ -3037,7 +3037,7 @@ li.A_li9:hover p {
.index-flash .list li {
position: relative;
height: 32.1rem;
height: 31.1rem;
}
.index-flash .list li .img {

View File

@ -29,14 +29,14 @@
<h1><img alt="[ 吉林省新农科长白山创新学院 ]" src="../static/ruoyi.png" th:src="@{/ruoyi.png}"></h1>
</div>
<div class="m-b"></div>
<h4>欢迎使用 <strong>后台管理系统</strong></h4>
<h4>欢迎使用 <strong>长白山创新学院</strong> 后台管理系统</h4>
</div>
</div>
<div class="col-sm-5">
<form id="signupForm" autocomplete="off">
<h4 class="no-margins">登录:</h4>
<input type="text" name="username" class="form-control uname" placeholder="用户名" value="admin" />
<input type="password" name="password" class="form-control pword" placeholder="密码" value="admin" />
<input type="text" name="username" class="form-control uname" placeholder="用户名" />
<input type="password" name="password" class="form-control pword" placeholder="密码" />
<div class="row m-t" th:if="${captchaEnabled==true}">
<div class="col-xs-6">
<input type="text" name="validateCode" class="form-control code" placeholder="验证码" maxlength="5" />
@ -47,20 +47,23 @@
</a>
</div>
</div>
<div class="checkbox-custom" th:if="${isRemembered}" th:classappend="${captchaEnabled==false} ? 'm-t'">
<input type="checkbox" id="rememberme" name="rememberme"> <label for="rememberme">记住我</label>
</div>
<!-- <div class="checkbox-custom" th:if="${isRemembered}" th:classappend="${captchaEnabled==false} ? 'm-t'">-->
<!-- <input type="checkbox" id="rememberme" name="rememberme"> <label for="rememberme">记住我</label>-->
<!-- </div>-->
<button class="btn btn-success btn-block" id="btnSubmit" data-loading="正在验证登录,请稍候...">登录</button>
</form>
</div>
</div>
<div class="signup-footer">
<div class="pull-left">
Copyright © 吉林省新农科长白山创新学院. <br>
<!-- <div class="signup-footer">-->
<!-- <div class="pull-center">-->
<!-- Copyright © 吉林省新农科长白山创新学院. <br>-->
<!-- </div>-->
<!-- </div>-->
</div>
</div>
</div>
<script th:inline="javascript"> var ctx = [[@{/}]]; var captchaType = [[${captchaType}]]; var captchaEnabled = [[${captchaEnabled}]];</script>
<script th:inline="javascript">
var ctx = [[@{/}]];
var captchaType = [[${captchaType}]];
var captchaEnabled = [[${captchaEnabled}]];</script>
<!--[if lte IE 8]><script>window.location.href=ctx+'html/ie.html';</script><![endif]-->
<!-- 全局js -->
<script src="../static/js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>

View File

@ -89,7 +89,7 @@
<div class="form-group">
<label class="col-sm-3 control-label">附件:</label>
<div class="col-sm-8">
<input type="text" name="filePath" th:field="*{filePath}">
<input type="hidden" name="filePath" th:field="*{filePath}">
<div class="file-loading">
<input class="form-control file-uploadb" id="filePath" name="file" type="file" accept="*" multiple>
</div>

View File

@ -227,8 +227,9 @@
</div>
<div class="frightb">
<div class="flex-left">
<div class="ll flex-v-center">友情链接:</div>
<!-- <div class="ll flex-v-center">友情链接</div>-->
<div class="rr">
<a th:href="'/portal/list?newType=13'">友情链接:</a>
<a th:each="item:${yqljList}" th:href="${item.linkUrl}" target="_blank"><span class="titline_w">[[${item.title}]]</span></a>
<!-- <a href="list.html" title="吉林农业大学"-->
<!-- onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 79045)" target="_blank"-->

View File

@ -68,7 +68,7 @@
</div>
<ul style="margin-top: .65rem;">
<li class="titlin_b" th:each="item : ${xwdtList}" >
<a th:href="${item.linkUrl}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="ellipsis-multiline">
<a th:href="${item.type=='2'}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="ellipsis-multiline">
<h4 class="titline_b">[[${item.title}]]</h4>
<p class="titline_line2" >
[[${item.abstracts}]]
@ -86,12 +86,12 @@
<div class="swiper-wrapper">
<div class="swiper-slide slide bg-mask" th:each="item : ${xwdtList}" >
<div class="pic">
<a th:href="${item.linkUrl}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="mark">
<a th:href="${item.type=='2'}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="mark">
<img th:src="${item.imagePath}" th:alt="${item.title}" style="max-width:875px;max-height:599px;" />
</a>
</div>
<p>
<a th:href="${item.linkUrl}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="texto">
<a th:href="${item.type=='2'}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="texto">
[[${item.title}]]
</a>
<span>发布时间:[[${#dates.format(item.publishTime, 'YYYY-MM-dd')}]]</span>
@ -150,7 +150,8 @@
<time><span>[[${#dates.format(item.publishTime, 'dd')}]]</span>[[${#dates.format(item.publishTime, 'YYYY-MM')}]]</time>
</div>
<div class="info flex-v-center">
<h4><a th:href="${item.linkUrl}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="texto">
<h4>
<a th:href="${item.type=='2'}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="texto">
<span class="titline_w">[[${item.title}]]</span></a>
</h4>
<p class="line2">
@ -174,7 +175,7 @@
<ul>
<li th:each="item : ${hdygList}">
<div class="img">
<a th:href="${item.linkUrl}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="jtfylist jtfyl1">
<a th:href="${item.type=='2'}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="jtfylist jtfyl1">
<img th:src="${item.imagePath}" th:alt="${item.title}" style="width: 100%" />
</a>
</div>

View File

@ -81,7 +81,6 @@
<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 = [[${threeCode}]]
@ -94,7 +93,7 @@
let str = result.rows.reduce(function (prve, item) {
// <a href="/portal/details?id=${item.id}" target="_blank" title="${item.title}" class="clearfix">
var url = "";
if(item.linkUrl){
if(item.type=='2'){
url = item.linkUrl;
}else{
url= '/portal/details?id='+item.id
@ -103,9 +102,14 @@
<li class="clearfix">
<a href="${url}" target="_blank" title="${item.title}" class="clearfix">
<div class="left txt">
<div class="fnt_22 title">${item.title}</div>
<div class="des">${item.abstracts}</div>
</div>
<div class="fnt_22 title">${item.title}</div>`
if(item.abstracts){
prve +=`<div class="des">${item.abstracts}</div>`
}else{
prve +=`<div class="des"> </div>`
}
prve +=`</div>
<div class="right time">
<div class="ta">${item.publishTime}</div>
<div>发布时间</div>
@ -193,5 +197,6 @@
false
);
</script>
<script th:src="@{/portal/js/page.js}"></script>
</body>
</html>

View File

@ -39,7 +39,7 @@
<ul class="dataSource" style="min-height:600px">
<li class="clearfix" th:each="item : ${list}">
<a th:href="${item.linkUrl}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="clearfix">
<a th:href="${item.type=='2'}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="clearfix">
<div class="left txt">
<div class="fnt_22 title">[[${item.title}]]</div>
<div class="des">[[${item.abstracts}]]</div>

View File

@ -684,7 +684,8 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils
if (isBlank(html)){
return "";
}
String regEx = "<.+?>";
// String regEx = "<.+?>";
String regEx = "<[^>]*>";
Pattern p = Pattern.compile(regEx);
Matcher m = p.matcher(html);
String s = m.replaceAll("");