添加网站功能

This commit is contained in:
yangjun 2024-06-04 08:40:23 +08:00
parent af21fc8ab9
commit a90f416070
39 changed files with 1835 additions and 1003 deletions

View File

@ -4,12 +4,16 @@
<file url="file://$PROJECT_DIR$/blxc-admin/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/blxc-admin/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/blxc-common/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/blxc-common/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/blxc-framework/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/blxc-framework/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/blxc-generator/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/blxc-generator/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/blxc-quartz/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/blxc-quartz/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/blxc-system/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/blxc-system/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/src/main/resources" charset="UTF-8" />
</component>
</project>

View File

@ -1,10 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RunConfigurationProducerService">
<option name="ignoredProducers">
<set>
<option value="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer" />
</set>
</option>
</component>
</project>

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

View File

@ -125,9 +125,18 @@ public class NdNewController extends BaseController
if(StringUtils.isNull(ndNew.getPublishTime())){
ndNew.setPublishTime(new Date());
}
// ndNew.setAbstracts(stripHtml(ndNew.getContent()));
return toAjax(ndNewService.insertNdNew(ndNew));
}
public static String stripHtml(String input) {
// 定义HTML标签的正则表达式
String htmlRegex = "<[^>]*>";
// 使用正则表达式去除HTML标签
String output = input.replaceAll(htmlRegex, "");
return output;
}
/**
* 修改新闻
*/
@ -149,6 +158,24 @@ public class NdNewController extends BaseController
return prefix + "/edit";
}
@GetMapping("/editGly/{id}")
public String editGly(@PathVariable("id") Long id, ModelMap mmap)
{
List<CxSelect> cxList = new ArrayList<CxSelect>();
List<CxSelect> firstItems = ndNewService.getNewsTypes(0L);
for(int i=0;i< firstItems.size();i++){
CxSelect child = firstItems.get(i);
List<CxSelect> secondItems = ndNewService.getNewsTypes(Long.valueOf(child.getV()));
child.setS(secondItems);
cxList.add(child);
}
mmap.put("data", JSON.toJSON(cxList));
NdNew ndNew = ndNewService.selectNdNewById(id);
mmap.put("ndNew", ndNew);
return prefix + "/editGly";
}
/**
* 修改保存新闻
*/
@ -170,6 +197,7 @@ public class NdNewController extends BaseController
if(StringUtils.isNull(ndNew.getPublishTime())){
ndNew.setPublishTime(new Date());
}
// ndNew.setAbstracts(stripHtml(ndNew.getContent()));
return toAjax(ndNewService.updateNdNew(ndNew));
}

View File

@ -80,7 +80,27 @@ public class NdNew extends BaseEntity
/** 删除标志0代表存在 1代表删除 */
private String delFlag;
public void setId(Long id)
private String filePath;
private String paramLimitno;
public String getFilePath() {
return filePath;
}
public void setFilePath(String filePath) {
this.filePath = filePath;
}
public String getParamLimitno() {
return paramLimitno;
}
public void setParamLimitno(String paramLimitno) {
this.paramLimitno = paramLimitno;
}
public void setId(Long id)
{
this.id = id;
}
@ -246,6 +266,7 @@ public class NdNew extends BaseEntity
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.append("filePath", getFilePath())
.toString();
}
}

View File

@ -2,6 +2,12 @@ package com.ruoyi.web.controller.system;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.portal.back.domain.NdNew;
import com.ruoyi.portal.back.domain.NdNewType;
import com.ruoyi.portal.back.service.INdNewService;
import com.ruoyi.portal.back.service.INdNewTypeService;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.UsernamePasswordToken;
@ -20,6 +26,10 @@ import com.ruoyi.common.utils.ServletUtils;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.framework.web.service.ConfigService;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 登录验证
*
@ -37,21 +47,147 @@ public class SysLoginController extends BaseController
@Autowired
private ConfigService configService;
@Autowired
private INdNewService ndNewService;
@Autowired
private INdNewTypeService ndNewTypeService;
@GetMapping("/")
public String index(HttpServletRequest request, HttpServletResponse response, ModelMap mmap)
{
//新闻动态 5条 newType = 10
NdNew ndNew = new NdNew();
ndNew.setNewType("10");
ndNew.setParamLimitno("5");
List<NdNew> xwdtList = ndNewService.selectNdNewList(ndNew);
//通知公告 6条
ndNew = new NdNew();
ndNew.setNewType("11");
ndNew.setParamLimitno("6");
List<NdNew> tztgList = ndNewService.selectNdNewList(ndNew);
//活动预告 5条
ndNew = new NdNew();
ndNew.setNewType("12");
ndNew.setParamLimitno("5");
List<NdNew> hdygList = ndNewService.selectNdNewList(ndNew);
//友情链接
ndNew = new NdNew();
ndNew.setNewType("13");
List<NdNew> yqljList = ndNewService.selectNdNewList(ndNew);
mmap.put("yqljList", yqljList);
mmap.put("xwdtList", xwdtList);
mmap.put("tztgList", tztgList);
mmap.put("hdygList", hdygList);
return "portal/index";
}
@GetMapping("/portal/list")
public String list(HttpServletRequest request, HttpServletResponse response, ModelMap mmap)
{
String newType = request.getParameter("newType");
String pageNo = request.getParameter("pageNo");
String pageSize = request.getParameter("pageSize");
System.out.println("newType=" + newType);
System.out.println("pageNo=" + pageNo);
System.out.println("pageSize=" + pageSize);
NdNewType oneType = ndNewTypeService.selectNdNewTypeById(Long.parseLong(newType));
NdNewType twoType = ndNewTypeService.selectNdNewTypeById(oneType.getParentId());
String twoCode = twoType.getId()+"";
String twoName = twoType.getName();
String threeCode = oneType.getId()+"";
String threeName = oneType.getName();
if(!StringUtils.equals("1",twoCode)){
mmap.put("twoName",twoName);
mmap.put("twoCode",twoCode);
}else{
mmap.put("twoName",twoName);
mmap.put("twoCode","-1");
}
mmap.put("threeName",threeName);
mmap.put("threeCode",threeCode);
NdNewType ndNewType = new NdNewType();
ndNewType.setParentId(Long.parseLong(twoCode));
List<NdNewType> list = ndNewTypeService.selectNdNewTypeList(ndNewType);
mmap.put("menuList",list);
//友情链接
NdNew ndNew = new NdNew();
ndNew.setNewType("13");
List<NdNew> yqljList = ndNewService.selectNdNewList(ndNew);
mmap.put("yqljList", yqljList);
return "portal/list";
}
@GetMapping("/portal/searchList")
public String searchList(NdNew ndNew,HttpServletRequest request, HttpServletResponse response, ModelMap mmap)
{
// NdNew ndNew = new NdNew();
ndNew.setTitle(request.getParameter("title"));
List<NdNew> list = ndNewService.selectNdNewList(ndNew);
mmap.put("list",list);
//友情链接
ndNew = new NdNew();
ndNew.setNewType("13");
List<NdNew> yqljList = ndNewService.selectNdNewList(ndNew);
mmap.put("yqljList", yqljList);
return "portal/searchList";
}
@PostMapping("/portal/dataList")
@ResponseBody
public TableDataInfo dataList(NdNew ndNew)
{
startPage();
List<NdNew> list = ndNewService.selectNdNewList(ndNew);
return getDataTable(list);
}
@GetMapping("/portal/details")
public String details(HttpServletRequest request, HttpServletResponse response, ModelMap mmap)
{
String id = request.getParameter("id");
NdNew ndNew = ndNewService.selectNdNewById(Long.parseLong(id));
ndNew.setClickRate(ndNew.getClickRate()+1);
ndNewService.updateNdNew(ndNew);
String newType = ndNew.getNewType();
NdNewType oneType = ndNewTypeService.selectNdNewTypeById(Long.parseLong(newType));
NdNewType twoType = ndNewTypeService.selectNdNewTypeById(oneType.getParentId());
String twoCode = twoType.getId()+"";
String twoName = twoType.getName();
String threeCode = oneType.getId()+"";
String threeName = oneType.getName();
if(!StringUtils.equals("1",twoCode)){
mmap.put("twoName",twoName);
mmap.put("twoCode",twoCode);
}else{
mmap.put("twoName","-1");
mmap.put("twoCode","-1");
}
mmap.put("threeName",threeName);
mmap.put("threeCode",threeCode);
mmap.put("info", ndNew);
//友情链接
NdNew ndNew2 = new NdNew();
ndNew2.setNewType("13");
List<NdNew> yqljList = ndNewService.selectNdNewList(ndNew2);
mmap.put("yqljList", yqljList);
return "portal/details";
}

View File

@ -6,7 +6,7 @@ spring:
druid:
# 主库数据源
master:
url: jdbc:mysql://localhost:3306/nd?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
url: jdbc:mysql://localhost:3306/nd_cbsy?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: root
# 从库数据源

View File

@ -0,0 +1,77 @@
var page = 1
var size = 15
var totalCount = 1
var values =1
function generPage(total, dom_page_class) {
totalCount = total % 10 == 0 ? Math.floor(total / 10) : Math.floor(total / 10) + 1
let domStr = `
<div class="pb_sys_common pb_sys_normal pb_sys_style1" style="margin-top: 10px; text-align: center; padding-bottom: 15px">
<span class="p_t">共${total}</span>
<span class="p_pages"><span class="p_no" ><a href="javascript:void(0);" onclick="pageChange(1,this)">首页</a></span>
`
for (let i = 1; i <= totalCount; i++) {
if(values==i){
domStr += `<span class="p_no_d " ><a href="javascript:void(0)" onclick="pageChange(${i },this)" style="color:white;">` + (i ) + `</a></span>`
}else{
domStr += `<span class="p_no " ><a href="javascript:void(0)" onclick="pageChange(${i },this)">` + (i ) + `</a></span>`
}
}
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
}
function pageChange(currentPage,e) {
// let jsijg = e.innerText
page = currentPage
values = page
mainListChange(page)
console.log(page)
// 去第一页
// if(page===1) {
// console.log('123123123')
// document.querySelector('.active')?.classList.remove('active')
// document.querySelector('.first').classList.add('active')
// }
// document.querySelector('.current').addEventListener('click',function (e) {
// if(e.target.tagName ==='DIV') {
// console.log('点击了按钮')
// document.querySelector('.active').classList.remove('active')
// e.target.classList.add('active')
// }
// })
// if(e.className === 'pageEnd') {
// const pages = document.querySelector('.current').children
// document.querySelector('.active').classList.remove('active')
// pages[1].classList.add('active')
// }
}
function page_go() {
let content = document.querySelector('#page_input').value
let reg = /^\d$/
if(reg.test(content)&&content>0&&content<=totalCount){
page = content
values = page
mainListChange()
}
}
function prePage() {
if (page != 1) page = page - 1
values = page
mainListChange()
}
function nextPage(count) {
if (page != count) page = page + 1
values = page
mainListChange()
}

View File

@ -43,13 +43,26 @@
<input name="sourceAuthor" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">发布时间:</label>
<!-- <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">
<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>
<input type="hidden" class="form-control" name="content">
<div class="summernote" id="content" style="height:300px;"></div>
</div>
</div>
<div id="linkUrlDiv" class="form-group">
<label class="col-sm-3 control-label">超链接:</label>
<div class="col-sm-8">
<input name="linkUrl" type="url" class="form-control"></input>
</div>
</div>
<div class="form-group">
@ -62,30 +75,26 @@
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">摘要</label>
<label class="col-sm-3 control-label">附件</label>
<div class="col-sm-8">
<textarea name="abstracts" class="form-control"></textarea>
</div>
</div>
<div id="contentDiv" class="form-group">
<label class="col-sm-3 control-label">内容:</label>
<div class="col-sm-8">
<input type="hidden" class="form-control" name="content">
<div class="summernote" id="content"></div>
</div>
</div>
<div id="linkUrlDiv" class="form-group">
<label class="col-sm-3 control-label">超链接:</label>
<div class="col-sm-8">
<textarea name="linkUrl" type="url" class="form-control"></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">点击率:</label>
<div class="col-sm-8">
<input name="clickRate" type="digits" class="form-control"></input>
<input type="hidden" name="filePath">
<div class="file-loading">
<input class="form-control file-uploadb" id="filePath" name="file" type="file" accept="*">
</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"></textarea>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="form-group">-->
<!-- <label class="col-sm-3 control-label">点击率:</label>-->
<!-- <div class="col-sm-8">-->
<!-- <input name="clickRate" type="digits" class="form-control"></input>-->
<!-- </div>-->
<!-- </div>-->
</form>
</div>
<th:block th:include="include :: footer" />
@ -130,10 +139,22 @@
$("input[name='" + event.currentTarget.id + "']").val('')
})
$(".file-uploadb").fileinput({
uploadUrl: ctx + 'common/upload',
maxFileCount: 10,
autoReplace: true
}).on('fileuploaded', function (event, data, previewId, index) {
var inputaaa = $("input[name='" + event.currentTarget.id + "']").val();
$("input[name='" + event.currentTarget.id + "']").val(inputaaa+"|"+data.response.url)
}).on('fileremoved', function (event, id, index) {
$("input[name='" + event.currentTarget.id + "']").val('')
})
$(function() {
$('.summernote').summernote({
lang: 'zh-CN',
dialogsInBody: true,
height: '300px',
callbacks: {
onChange: function(contents, $edittable) {
$("input[name='" + this.id + "']").val(contents);

View File

@ -10,15 +10,15 @@
<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 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">
@ -26,6 +26,8 @@
<option th:value="*{firstType}" selected>[[*{firstTypeStr}]]</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>
@ -53,30 +55,15 @@
<input name="sourceAuthor" th:field="*{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" th:value="${#dates.format(ndNew.publishTime, 'yyyy-MM-dd')}" 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 class="form-group">
<label class="col-sm-3 control-label">缩略图:</label>
<div class="col-sm-8">
<input type="hidden" name="imagePath" th:field="*{imagePath}">
<div class="file-loading">
<input class="form-control file-upload" id="imagePath" name="file" type="file" accept="image/*">
</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">-->
<!-- <div class="input-group date">-->
<!-- <input name="publishTime" th:value="${#dates.format(ndNew.publishTime, 'yyyy-MM-dd')}" 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">
@ -91,11 +78,35 @@
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">点击率</label>
<label class="col-sm-3 control-label">缩略图</label>
<div class="col-sm-8">
<input name="clickRate" th:field="*{clickRate}" type="number" class="form-control">
<input type="hidden" name="imagePath" th:field="*{imagePath}">
<div class="file-loading">
<input class="form-control file-upload" id="imagePath" name="file" type="file" accept="image/*">
</div>
</div>
</div>
<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}">
<div class="file-loading">
<input class="form-control file-uploadb" id="filePath" name="file" type="file" accept="*" multiple>
</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">-->
@ -152,11 +163,30 @@
$(this).fileinput('_initFileActions');
});
$(".file-uploadb").each(function (i) {
var val = $("input[name='" + this.id + "']").val()
$(this).fileinput({
'uploadUrl': ctx + 'common/upload',
initialPreviewAsData: true,
initialPreview: [val],
maxFileCount: 10,
autoReplace: true
}).on('fileuploaded', function (event, data, previewId, index) {
var inputaaa = $("input[name='" + event.currentTarget.id + "']").val();
$("input[name='" + event.currentTarget.id + "']").val(inputaaa+"|"+data.response.url)
}).on('fileremoved', function (event, id, index) {
$("input[name='" + event.currentTarget.id + "']").val('')
})
$(this).fileinput('_initFileActions');
});
$(function() {
$('.summernote').each(function(i) {
$('#' + this.id).summernote({
lang: 'zh-CN',
dialogsInBody: true,
height: '300px',
callbacks: {
onChange: function(contents, $edittable) {
$("input[name='" + this.id + "']").val(contents);

View File

@ -0,0 +1,217 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改栏目')" />
<th:block th:include="include :: datetimepicker-css" />
<th:block th:include="include :: bootstrap-fileinput-css"/>
<th:block th:include="include :: summernote-css" />
</head>
<body class="white-bg">
<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>
</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>
</div>
</div>
<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('news_content_type')}">
<input type="radio" th:id="${'type_' + dict.dictCode}" name="type" th:value="${dict.dictValue}" th:field="*{type}" th:onchange="'javascript:handleRadioChange()'">
<label th:for="${'type_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">标题:</label>
<div class="col-sm-8">
<input name="title" th:field="*{title}" class="form-control" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">来源或作者:</label>
<div class="col-sm-8">
<input name="sourceAuthor" th:field="*{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" th:value="${#dates.format(ndNew.publishTime, 'yyyy-MM-dd')}" 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">
<input type="hidden" class="form-control" th:field="*{content}">
<div class="summernote" id="content"></div>
</div>
</div>
<div id="linkUrlDiv" class="form-group">
<label class="col-sm-3 control-label">超链接:</label>
<div class="col-sm-8">
<textarea name="linkUrl" type="url" class="form-control">[[*{linkUrl}]]</textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">缩略图:</label>
<div class="col-sm-8">
<input type="hidden" name="imagePath" th:field="*{imagePath}">
<div class="file-loading">
<input class="form-control file-upload" id="imagePath" name="file" type="file" accept="image/*">
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<th:block th:include="include :: bootstrap-fileinput-js"/>
<th:block th:include="include :: summernote-js" />
<th:block th:include="include :: jquery-cxselect-js" />
<script th:inline="javascript">
var ndNew = [[${ndNew}]];
// 直接返回获取
var data = [[${data}]];
$('#element').cxSelect({
selects: ['first', 'second'],
jsonValue: 'v',
data: data
});
var prefix = ctx + "back/news/news";
$("#form-new-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-new-edit').serialize());
}
}
$("input[name='publishTime']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$(".file-upload").each(function (i) {
var val = $("input[name='" + this.id + "']").val()
$(this).fileinput({
'uploadUrl': ctx + 'common/upload',
initialPreviewAsData: true,
initialPreview: [val],
maxFileCount: 1,
autoReplace: true
}).on('fileuploaded', function (event, data, previewId, index) {
$("input[name='" + event.currentTarget.id + "']").val(data.response.url)
}).on('fileremoved', function (event, id, index) {
$("input[name='" + event.currentTarget.id + "']").val('')
})
$(this).fileinput('_initFileActions');
});
$(".file-uploadb").each(function (i) {
var val = $("input[name='" + this.id + "']").val()
$(this).fileinput({
'uploadUrl': ctx + 'common/upload',
initialPreviewAsData: true,
initialPreview: [val],
maxFileCount: 10,
autoReplace: true
}).on('fileuploaded', function (event, data, previewId, index) {
var inputaaa = $("input[name='" + event.currentTarget.id + "']").val();
$("input[name='" + event.currentTarget.id + "']").val(inputaaa+"|"+data.response.url)
}).on('fileremoved', function (event, id, index) {
$("input[name='" + event.currentTarget.id + "']").val('')
})
$(this).fileinput('_initFileActions');
});
$(function() {
$('.summernote').each(function(i) {
$('#' + this.id).summernote({
lang: 'zh-CN',
dialogsInBody: true,
height: '300px',
callbacks: {
onChange: function(contents, $edittable) {
$("input[name='" + this.id + "']").val(contents);
},
onImageUpload: function(files) {
var obj = this;
var data = new FormData();
data.append("file", files[0]);
$.ajax({
type: "post",
url: ctx + "common/upload",
data: data,
cache: false,
contentType: false,
processData: false,
dataType: 'json',
success: function(result) {
if (result.code == web_status.SUCCESS) {
$('#' + obj.id).summernote('insertImage', result.url);
} else {
$.modal.alertError(result.msg);
}
},
error: function(error) {
$.modal.alertWarning("图片上传失败。");
}
});
}
}
});
var content = $("input[name='" + this.id + "']").val();
$('#' + this.id).summernote('code', content);
})
});
function handleRadioChange() {
var radios = document.getElementsByName("type");
for (var i = 0; i < radios.length; i++) {
if (radios[i].checked) {
if(radios[i].value == 1){
$("#contentDiv").show();
$("#linkUrlDiv").hide();
}
if(radios[i].value == 2){
$("#contentDiv").hide();
$("#linkUrlDiv").show();
}
break;
}
}
}
handleRadioChange();
</script>
</body>
</html>

View File

@ -14,13 +14,13 @@
<label>栏目类型:</label>
<select class="first" name="firstType">
<option value="">所有</option>
<option value="1" selected>首页</option>
<!-- <option value="1" selected>首页</option>-->
</select>
</li>
<li>
<select class="second" name="newType">
<option value="">所有</option>
<option value="10" selected>新闻动态</option>
<!-- <option value="10" selected>新闻动态</option>-->
</select>
</li>
</ul>
@ -102,6 +102,7 @@
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
updateGlyUrl: prefix + "/editGly/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "新闻",
@ -146,18 +147,19 @@
return '<img src="' + value + '" height="100" />';
}
},
{
field: 'delFlag',
title: '状态',
formatter: function(value, row, index) {
return $.table.selectDictLabel(datas, value);
}
},
// {
// field: 'delFlag',
// title: '状态',
// formatter: function(value, row, index) {
// return $.table.selectDictLabel(datas, value);
// }
// },
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a href="javascript:void(0)" onclick="edit2(\'' + row.id + '\')">&nbsp;&nbsp;&nbsp;</a> ');
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
@ -166,6 +168,12 @@
};
$.table.init(options);
});
/* 用户管理-重置密码 */
function edit2(id) {
var url = prefix+'/editGly/' + id;
$.modal.open("修改", url, '900', '700');
}
</script>
</body>
</html>

View File

@ -34,28 +34,29 @@
<div class="detailcon portal_list">
<div class="crumbs">
<img src="../../static/portal/images/shouye.png" th:src="@{/portal/images/shouye.png}" alt="" />
<a href="index.html">首页</a>
>
<a href="#">书院新闻</a>
>
<a href="#">通知公告</a>
<a href="/">首页 > </a>
<a th:href="'/portal/list?newType='+${twoCode}" th:if="${twoName!='-1'}">[[${twoName}]] > </a>
<a th:href="'/portal/list?newType='+${threeCode}">[[${threeName}]]</a>
</div>
<div class="details_title">
<h2>学院召开新农科创新课程开发研讨会</h2>
<h2>[[${info.title}]]</h2>
<ul>
<li>日期:2024/03/12</li>
<li>编辑:吉林农大新农科长白山创新学院</li>
<li>点击率:65</li>
<li>日期:[[${#dates.format(info.publishTime, 'YYYY-MM-dd')}]]</li>
<li>编辑:[[${info.sourceAuthor}]]</li>
<li>点击率:[[${info.clickRate}]]</li>
</ul>
</div>
<div class="con deheligh">
<div class="clearfix">
<div style="text-indent:1.5rem;width:100%;float:left;">
<p>HELLO WORLD!</p>
<div style="text-indent:1.5rem;width:100%;float:left;" id="contentID">
</div>
</div>
</div>
<div class="con deheligh" style="margin-top: 40px;" id="filePathId">
</div>
</div>
</div>
</div>
@ -64,8 +65,7 @@
<th:block th:include="portal/headerAndFooter :: search" />
<script src="../../static/js/public.js" th:src="@{/portal/js/public.js}"></script>
<script type="text/javascript">
<script th:inline="javascript">
//if($(window).width()<1024){
//判断手机横竖屏状态:
if (window.orientation == 180 || window.orientation == 0) {
@ -98,6 +98,24 @@
false
);
var infoTTT = [[${info}]];
console.log(infoTTT);
document.getElementById("contentID").innerHTML =infoTTT.content;
var downloadtext = ``;
if(infoTTT.filePath){
var fileDown = infoTTT.filePath.split("|");
downloadtext = `<div style="line-height:30px"><div style="padding:15px;">附件:</div>`;
for(var i = 0; i < fileDown.length; i++){
var name = fileDown[i].substring(fileDown[i].lastIndexOf("/")+1,fileDown[i].length)
if(name){
downloadtext += `<div style="margin-left:30px;"><a href="javascript:void(0)" onclick="window.open('`+fileDown[i]+`','_blank')">`+(i)+`、`+name+`</a></div>`;
}
}
}
document.getElementById("filePathId").innerHTML = downloadtext;
</script>
<script src="../../static/js/public.js" th:src="@{/portal/js/public.js}"></script>
</body>
</html>

View File

@ -14,7 +14,7 @@
<a href="https://www.jlau.edu.cn/" title="吉林省新农科长白山创新学院">
<img class="logo-d" src="../../static/portal/images/logo2.png" th:src="@{/portal/images/logo2.png}"/>
</a>
<a href="#" class="zhongying" title="吉林省新农科长白山创新学院"><span>吉林省新农科长白山创新学院</span>
<a href="/" class="zhongying" title="吉林省新农科长白山创新学院"><span>吉林省新农科长白山创新学院</span>
<!-- <span>Changbai Mountain Innovation College of Emerging Agricultural Education, jilin Province</span> -->
</a>
</div>
@ -28,7 +28,7 @@
<div class="gzhewm">
<img src="../../static/portal/images/wxgzh.jpg" th:src="@{/portal/images/wxgzh.jpg}" alt="">
</div>
<a href="#" title="">
<a href="/" title="首页">
<img src="../../static/portal/images/shouye.png" th:src="@{/portal/images/shouye.png}" class="imgMargin imgleft"/>
</a>
</div>
@ -37,127 +37,127 @@
<ul class="homea-nav homea-nav-flex">
<li class="navsitem navi1">
<a href="list.html" title="学院概况">学院概况</a></a>
<a th:href="'/portal/list?newType=14'" target="_blank" title="学院概况">学院概况</a></a>
<div class="subnavs flex-v-center">
<ul class="flex-left">
<li>
<a href="list.html" title="学院简介">学院简介</a>
<a th:href="'/portal/list?newType=14'" target="_blank" title="学院简介">学院简介</a>
</li>
<li>
<a href="list.html" title="机构设置">机构设置</a>
<a th:href="'/portal/list?newType=15'" target="_blank" title="机构设置">机构设置</a>
</li>
<li>
<a href="list.html" title="管理制度">管理制度</a>
<a th:href="'/portal/list?newType=16'" target="_blank" title="管理制度">管理制度</a>
</li>
</ul>
</div>
</li>
<li class="navsitem navi2">
<a href="list.html" title="师资队伍">师资队伍</a>
<a th:href="'/portal/list?newType=17'" title="师资队伍">师资队伍</a>
<div class="subnavs flex-v-center">
<ul class="flex-left">
<li>
<a href="list.html" title="师资概况">师资概况</a>
<a th:href="'/portal/list?newType=17'" target="_blank" title="师资概况">师资概况</a>
</li>
<li>
<a href="list.html" title="创新人才培养教师">创新人才培养教师</a>
<a th:href="'/portal/list?newType=18'" target="_blank" title="创新人才培养教师">创新人才培养教师</a>
</li>
<li>
<a href="list.html" title="学育导师">学育导师</a>
<a th:href="'/portal/list?newType=19'" target="_blank" title="学育导师">学育导师</a>
</li>
<li>
<a href="list.html" title="驻院学者">驻院学者</a>
<a th:href="'/portal/list?newType=20'" target="_blank" title="驻院学者">驻院学者</a>
</li>
<li><a href="list.html" title="班主任">班主任</a></li>
<li><a href="list.html" title="督导队伍">督导队伍</a></li>
<li><a th:href="'/portal/list?newType=21'" target="_blank" title="班主任">班主任</a></li>
<li><a th:href="'/portal/list?newType=22'" target="_blank" title="督导队伍">督导队伍</a></li>
</ul>
</div>
</li>
<li class="navsitem navi3">
<a href="list.html" title="本科生教育">本科生教育</a>
<a th:href="'/portal/list?newType=23'" target="_blank" title="本科生教育">本科生教育</a>
<div class="subnavs flex-v-center">
<ul class="flex-left">
<li>
<a href="lista.html" title="卓越农林人才培养">卓越农林人才培养</a>
<a th:href="'/portal/list?newType=23'" target="_blank" title="卓越农林人才培养">卓越农林人才培养</a>
</li>
<li>
<a href="lista.html" title="订单式农科生培养">订单式农科生培养</a>
<a th:href="'/portal/list?newType=24'" target="_blank" title="订单式农科生培养">订单式农科生培养</a>
</li>
</ul>
</div>
</li>
<li class="navsitem navi4">
<a href="list.html" title="研究生教育">研究生教育</a>
<a th:href="'/portal/list?newType=25'" target="_blank" title="研究生教育">研究生教育</a>
<div class="subnavs flex-v-center">
<ul class="flex-left">
<li>
<a href="list.html" title="学位点简介">学位点简介</a>
<a th:href="'/portal/list?newType=25'" target="_blank" title="学位点简介">学位点简介</a>
</li>
<li>
<a href="list.html" title="培养方案">培养方案</a>
<a th:href="'/portal/list?newType=26'" target="_blank" title="培养方案">培养方案</a>
</li>
<li>
<a href="list.html" title="就业创业">就业创业</a>
<a th:href="'/portal/list?newType=27'" target="_blank" title="就业创业">就业创业</a>
</li>
<li>
<a href="list.html" title="导师队伍">导师队伍</a>
<a th:href="'/portal/list?newType=28'" target="_blank" title="导师队伍">导师队伍</a>
</li>
<li><a href="list.html" title="学术委员会">学术委员会</a></li>
<li><a th:href="'/portal/list?newType=29'" target="_blank" title="学术委员会">学术委员会</a></li>
</ul>
</div>
</li>
<li class="navsitem navi5">
<a href="list.html" title="学生竞赛">学生竞赛</a>
<a th:href="'/portal/list?newType=30'" target="_blank" title="学生竞赛">学生竞赛</a>
<div class="subnavs flex-v-center">
<ul class="flex-left">
<li>
<a href="list.html" title="竞赛简介">竞赛简介</a>
<a th:href="'/portal/list?newType=30'" target="_blank" title="竞赛简介">竞赛简介</a>
</li>
<li>
<a href="list.html" title="指导教师">指导教师</a>
<a th:href="'/portal/list?newType=31'" target="_blank" title="指导教师">指导教师</a>
</li>
<li><a href="list.html" title="成果展示">成果展示</a></li>
<li><a th:href="'/portal/list?newType=32'" target="_blank" title="成果展示">成果展示</a></li>
</ul>
</div>
</li>
<li class="navsitem navi6">
<a href="list.html" title="国际交流">国际交流</a>
<a th:href="'/portal/list?newType=33'" target="_blank" title="国际交流">国际交流</a>
<div class="subnavs flex-v-center">
<ul class="flex-left">
<li>
<a href="list.html" title="研学项目">研学项目</a>
<a th:href="'/portal/list?newType=33'" target="_blank" title="研学项目">研学项目</a>
</li>
<li><a href="list.html" title="国际课程">国际课程</a></li>
<li><a th:href="'/portal/list?newType=34'" target="_blank" title="国际课程">国际课程</a></li>
<li>
<a href="list.html" title="合作交流">合作交流</a>
<a th:href="'/portal/list?newType=35'" target="_blank" title="合作交流">合作交流</a>
</li>
<li>
<a href="list.html" title="国际会议">国际会议</a>
<a th:href="'/portal/list?newType=36'" target="_blank" title="国际会议">国际会议</a>
</li>
</ul>
</div>
</li>
<li class="navsitem navi7">
<a href="list.html" title="书院">书院</a>
<a th:href="'/portal/list?newType=37'" target="_blank" title="书院">书院</a>
<div class="subnavs flex-v-center">
<ul class="flex-left">
<li><a href="list.html" title="书院简介">书院简介</a></li>
<li><a href="list.html" title="书院架构">书院架构</a></li>
<li><a href="list.html" title="学术沙龙">学术沙龙</a></li>
<li><a href="list.html" title="学生组织">学生组织</a></li>
<li><a href="list.html" title="学生活动">学生活动</a></li>
<li><a th:href="'/portal/list?newType=37'" target="_blank" title="书院简介">书院简介</a></li>
<li><a th:href="'/portal/list?newType=38'" target="_blank" title="书院架构">书院架构</a></li>
<li><a th:href="'/portal/list?newType=39'" target="_blank" title="学术沙龙">学术沙龙</a></li>
<li><a th:href="'/portal/list?newType=40'" target="_blank" title="学生组织">学生组织</a></li>
<li><a th:href="'/portal/list?newType=41'" target="_blank" title="学生活动">学生活动</a></li>
</ul>
</div>
</li>
<li class="navsitem navi8">
<a href="list.html" title="通识教育中心">通识教育中心</a>
<a th:href="'/portal/list?newType=42'" target="_blank" title="通识教育中心">通识教育中心</a>
<div class="subnavs flex-v-center">
<ul class="flex-left">
<li><a href="list.html" title="中心简介">中心简介</a></li>
<li><a href="lista.html" title="组织架构">组织架构</a></li>
<li><a href="list.html" title="学科基础课程">学科基础课程</a></li>
<li><a href="list.html" title="通识课程">通识课程</a></li>
<li><a href="list.html" title="教师风采">教师风采</a></li>
<li><a th:href="'/portal/list?newType=42'" target="_blank" title="中心简介">中心简介</a></li>
<li><a th:href="'/portal/list?newType=43'" target="_blank" title="组织架构">组织架构</a></li>
<li><a th:href="'/portal/list?newType=44'" target="_blank" title="学科基础课程">学科基础课程</a></li>
<li><a th:href="'/portal/list?newType=45'" target="_blank" title="通识课程">通识课程</a></li>
<li><a th:href="'/portal/list?newType=46'" target="_blank" title="教师风采">教师风采</a></li>
</ul>
</div>
</li>
@ -229,27 +229,28 @@
<div class="flex-left">
<div class="ll flex-v-center">友情链接:</div>
<div class="rr">
<a href="list.html" title="吉林农业大学"
onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 79045)" target="_blank"
class="titlin_w"><span class="titline_w">吉林农业大学</span></a>
<a href="list.html" title="国际交流"
onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 62511)" target="_blank"
class="titlin_w"><span class="titline_w">国际交流</span></a>
<a href="list.html" title="信息公开"
onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 62512)" target="_blank"
class="titlin_w"><span class="titline_w">信息公开</span></a>
<a href="list.html" title="招生信息"
onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 62513)" target="_blank"
class="titlin_w"><span class="titline_w">招生信息</span></a>
<a href="list.html" title="校园网络"
onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 62514)" target="_blank"
class="titlin_w"><span class="titline_w">校园网络</span></a>
<a href="list.html" title="图书馆"
onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 62514)" target="_blank"
class="titlin_w"><span class="titline_w">图书馆</span></a>
<a href="list.html" title="采购招标"
onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 62514)" target="_blank"
class="titlin_w"><span class="titline_w">采购招标</span></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"-->
<!-- class="titlin_w"><span class="titline_w">吉林农业大学</span></a>-->
<!-- <a href="list.html" title="国际交流"-->
<!-- onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 62511)" target="_blank"-->
<!-- class="titlin_w"><span class="titline_w">国际交流</span></a>-->
<!-- <a href="list.html" title="信息公开"-->
<!-- onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 62512)" target="_blank"-->
<!-- class="titlin_w"><span class="titline_w">信息公开</span></a>-->
<!-- <a href="list.html" title="招生信息"-->
<!-- onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 62513)" target="_blank"-->
<!-- class="titlin_w"><span class="titline_w">招生信息</span></a>-->
<!-- <a href="list.html" title="校园网络"-->
<!-- onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 62514)" target="_blank"-->
<!-- class="titlin_w"><span class="titline_w">校园网络</span></a>-->
<!-- <a href="list.html" title="图书馆"-->
<!-- onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 62514)" target="_blank"-->
<!-- class="titlin_w"><span class="titline_w">图书馆</span></a>-->
<!-- <a href="list.html" title="采购招标"-->
<!-- onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 62514)" target="_blank"-->
<!-- class="titlin_w"><span class="titline_w">采购招标</span></a>-->
</div>
</div>
</div>
@ -268,37 +269,34 @@
alert("请输入你要检索的内容!");
return false;
}
if (window.toFF == 1) {
document.getElementById("lucenenewssearchkey1024873").value =
Simplized(keyword);
} else {
document.getElementById("lucenenewssearchkey1024873").value =
keyword;
}
var base64 = new Base64();
document.getElementById("lucenenewssearchkey1024873").value =
base64.encode(
document.getElementById("lucenenewssearchkey1024873").value
);
new VsbFormFunc().disableAutoEnable(
document.getElementById("showkeycode1024873")
);
// if (window.toFF == 1) {
// document.getElementById("lucenenewssearchkey1024873").value =
// Simplized(keyword);
// } else {
// document.getElementById("lucenenewssearchkey1024873").value =
// keyword;
// }
// var base64 = new Base64();
// document.getElementById("lucenenewssearchkey1024873").value =
// base64.encode(
// document.getElementById("lucenenewssearchkey1024873").value
// );
new VsbFormFunc().disableAutoEnable('title='+keyword);
return true;
}
</script>
<form action="ssjg.jsp?wbtreeid=1001" method="post" id="au30a" name="au30a"
<form action="/portal/searchList" method="get" id="au30a" name="au30a"
onsubmit="return _nl_ys_check()">
<input type="hidden" id="lucenenewssearchkey1024873" name="lucenenewssearchkey" value="" /><input
type="hidden" id="_lucenesearchtype1024873" name="_lucenesearchtype" value="1" /><input
type="hidden" id="searchScope1024873" name="searchScope" value="0" />
<!-- <input type="hidden" id="lucenenewssearchkey1024873" name="lucenenewssearchkey" value="" /><input-->
<!-- type="hidden" id="_lucenesearchtype1024873" name="_lucenesearchtype" value="1" /><input-->
<!-- type="hidden" id="searchScope1024873" name="searchScope" value="0" />-->
<div class="search_wrap clearfix">
<input name="showkeycode" id="showkeycode1024873" type="text" class="text" placeholder="输入关键词搜索"
autocomplete="off" />
<input name="title" id="showkeycode1024873" type="text" class="text" placeholder="输入关键词搜索" autocomplete="off" />
<input type="submit" class="btn" value="" />
</div>
</form>
<script src="../../static/portal/js/base64.js" th:src="@{/portal/js/base64.js}"></script>
<script src="../../static/portal/js/formfunc.js"th:src="@{/portal/js/formfunc.js}"></script>
<script src="../../static/portal/js/formfunc.js" th:src="@{/portal/js/formfunc.js}"></script>
<a href="javascript:;" class="cd-popup-close close_btn"></a>
</div>
</div>

View File

@ -34,7 +34,7 @@
<th:block th:include="portal/headerAndFooter :: header" />
<div class="oneping">
<a href="https://www.baidu.com/">
<a href="/login">
<div class="xiaoxun">
<!-- <img src="./static/images/xiaoxun.svg" alt=""> -->
<span class="xxleft">
@ -59,78 +59,23 @@
<div class="wp flex">
<div class="aleft" aos="fade-up">
<div class="ctit flex">
<!--<span><img src="static/picture/t1.png" alt="" /></span>-->
<div class="pattern-title flex">
<span class="syst flex"><i>新闻动态</i></span>
<div class="flex-v-center">
<a href="" class="syst pore"><em>More</em></a>
<a th:href="'/portal/list?newType=10'" target="_blank" class="syst pore"><em>More</em></a>
</div>
</div>
</div>
<ul style="margin-top: .65rem;">
<li class="titlin_b">
<a href="" target="_blank" title="校长杜锐出席长春市科技成果转化战略合作委员会第一次会议" class="ellipsis-multiline">
<h4 class="titline_b">关于2023年吉林农业大学公开招...</h4>
<p class="titline_line2">
2023年吉林农业大学公开招聘工作人员公告7号笔试成绩现已发布考生可登录报名系统http://www.jlrcksbm.com/)查询。
<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">
<h4 class="titline_b">[[${item.title}]]</h4>
<p class="titline_line2" >
[[${item.abstracts}]]
</p>
</a>
<time>
11-21 09:35
<br />
发布时间
</time>
</li>
<li class="titlin_b">
<a href="" target="_blank" title="吉林农业大学参加2023浙吉跨区域科技创新合作推进活动暨产学研对接活动" class="ellipsis-multiline">
<h4 class="titline_b">吉林农业大学参加2023浙吉跨</h4>
<p class="titline_line2">
区域科技创新合作推进活动暨产学研对接活动
</p>
</a>
<time>
11-22 09:07
<br />
发布时间
</time>
</li>
<li class="titlin_b">
<a href="" target="_blank" title="学校牵头举办的全国智慧家政行业产教融合研讨会在贵阳举行" class="ellipsis-multiline">
<h4 class="titline_b">学校牵头举办的全国智慧家政行业</h4>
<p class="titline_line2">
产教融合研讨会在贵阳举行
</p>
</a>
<time>
11-17 08:58
<br />
发布时间
</time>
</li>
<li class="titlin_b">
<a href="" target="_blank" title="吉林农业大学调研组到湖北和浙江" class="ellipsis-multiline">
<h4 class="titline_b">部分高校与企业开展智慧校园建设</h4>
<p class="titline_line2">
产教融合研讨会在贵阳举行
</p>
</a>
<time>
11-14 09:05
<br />
发布时间
</time>
</li>
<li class="titlin_b">
<a href="" target="_blank" title="吉林农业大学调研组到湖北和浙江" class="ellipsis-multiline">
<h4 class="titline_b">第十五届挑战杯大学生科技作品赛</h4>
<p class="titline_line2">
产教融合研讨会在贵阳举行
</p>
</a>
<time>
11-08 09:55
[[${#dates.format(item.publishTime, 'YYYY-MM-dd')}]]
<br />
发布时间
</time>
@ -139,33 +84,18 @@
</div>
<div class="swiper-container slidenews" aos="fade-up" aos-delay="100">
<div class="swiper-wrapper">
<div class="swiper-slide slide bg-mask">
<div class="swiper-slide slide bg-mask" th:each="item : ${xwdtList}" >
<div class="pic">
<a href="" target="_blank" title="校长杜锐出席长春市科技成果转化战略合作委员会第一次会议”"class="mark">
<img src="../../static/portal/picture/news01.jpg" th:src="@{/portal/picture/news01.jpg}" alt="" />
<a th:href="${item.linkUrl}?${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 href="" target="_blank" title="校长杜锐出席长春市科技成果转化战略合作委员会第一次会议”"
class="texto">校长杜锐出席长春市科技成果转化战略合作委员会第一次会议</a><span>发布时间09-01
10:44</span></p>
</div>
<div class="swiper-slide slide bg-mask">
<div class="pic">
<a href="" target="_blank" title="届农业大学开学典礼" class="mark">
<img src="../../static/portal/picture/news02.jpg" th:src="@{/portal/picture/news02.jpg}" alt="" />
<p>
<a th:href="${item.linkUrl}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="texto">
[[${item.title}]]
</a>
</div>
<p><a href="" target="_blank" title="2023届农业大学开学典礼"
class="texto">2023届农业大学开学典礼</a><span>发布时间08-28 09:22</span></p>
</div>
<div class="swiper-slide slide bg-mask">
<div class="pic">
<a href="" target="_blank" title="第十五届挑战杯大学生科技作品赛" class="mark">
<img src="../../static/portal/picture/news03.jpg" th:src="@{/portal/picture/news03.jpg}" alt="" /></a>
</div>
<p><a href="" target="_blank" title="第十五届挑战杯大学生科技作品赛"
class="texto">第十五届挑战杯大学生科技作品赛</a><span>发布时间08-07
09:55</span></p>
<span>发布时间:[[${#dates.format(item.publishTime, 'YYYY-MM-dd')}]]</span>
</p>
</div>
</div>
<div class="swiper-button-next slideb-next">
@ -211,87 +141,30 @@
<div class="ctit ctit1 flex">
<span class="syst flex"><i>通知</i><i>公告</i></span>
<div class="flex-v-center">
<a href="" class="syst pore"><em>More</em></a>
<a th:href="'/portal/list?newType=11'" target="_blank" class="syst pore"><em>More</em></a>
</div>
</div>
<ul class="tzgg">
<li class="titlin_w">
<li class="titlin_w" th:each="item : ${tztgList}">
<div class="time Avian">
<time><span>22</span>23-11</time>
<time><span>[[${#dates.format(item.publishTime, 'dd')}]]</span>[[${#dates.format(item.publishTime, 'YYYY-MM')}]]</time>
</div>
<div class="info flex-v-center">
<h4><a href="" target="_blank" title="关于2023年吉林农业大学公开招聘工作人员公告7号笔试成绩查询的通知"
class="texto"><span
class="titline_w">关于2023年吉林农业大学公开招聘工作人员公告7号笔试成绩查询的通知</span></a>
<h4><a th:href="${item.linkUrl}?${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">
2023年吉林农业大学公开招聘工作人员公告7号笔试成绩现已发布考生可登录报名系统http://www.jlrcksbm.com/)查询。
[[${item.abstracts}]]
</p>
</div>
</li>
<li class="titlin_w ">
<div class="time Avian">
<time><span>17</span>23-10</time>
</div>
<div class="info flex-v-center">
<h4><a href="" target="_blank" title="关于开展2023年校内十件大事评选的通知" class="texto"><span
class="titline_w">关于开展2023年校内十件大事评选的通知</span></a></h4>
<p class="line2">
为集中宣传展示2023年学校在各项事业发展中取得的突出成果学校决定即日起在全校范围内开展校内十件
</p>
</div>
</li>
<li class="titlin_w ">
<div class="time Avian">
<time><span>14</span>23-09</time>
</div>
<div class="info flex-v-center">
<h4><a href="" target="_blank" title="2023年吉林农业大学公开招聘高层次人才公告8号"
class="texto"><span class="titline_w">2023年吉林农业大学公开招聘高层次人才公告8号</span></a>
</h4>
<p class="line2">按照《事业单位人事管理条例》《关于创新优化人事管理政策支持高等学校高质量发展的意见》</p>
</div>
</li>
<li class="titlin_w ">
<div class="time Avian">
<time><span>12</span>23-09</time>
</div>
<div class="info flex-v-center">
<h4><a href="" target="_blank" title="2023年吉林农业大学公开招聘高层次人才公告8号"
class="texto"><span class="titline_w">2023年吉林农业大学公开招聘高层次人才公告8号</span></a>
</h4>
<p class="line2">按照《事业单位人事管理条例》《关于创新优化人事管理政策支持高等学校高质量发展的意见》</p>
</div>
</li>
<li class="titlin_w ">
<div class="time Avian">
<time><span>12</span>23-09</time>
</div>
<div class="info flex-v-center">
<h4><a href="" target="_blank" title="2023年吉林农业大学公开招聘高层次人才公告8号"
class="texto"><span class="titline_w">2023年吉林农业大学公开招聘高层次人才公告8号</span></a>
</h4>
<p class="line2">按照《事业单位人事管理条例》《关于创新优化人事管理政策支持高等学校高质量发展的意见》</p>
</div>
</li>
<li class="titlin_w ">
<div class="time Avian">
<time><span>12</span>23-09</time>
</div>
<div class="info flex-v-center">
<h4><a href="" target="_blank" title="2023年吉林农业大学公开招聘高层次人才公告8号"
class="texto"><span class="titline_w">2023年吉林农业大学公开招聘高层次人才公告8号</span></a>
</h4>
<p class="line2">按照《事业单位人事管理条例》《关于创新优化人事管理政策支持高等学校高质量发展的意见》</p>
</div>
</li>
</ul>
</div>
<div class="aright" aos="fade-up" aos-delay="100">
<div class="ctit ctit1 flex">
<span class="syst flex"><i>活动</i><i>预告</i></span>
<div class="flex-v-center">
<a href="" class="syst pore"><em>More</em></a>
<a th:href="'/portal/list?newType=12'" target="_blank" class="syst pore"><em>More</em></a>
</div>
</div>
<div class="lidehd ">
@ -299,53 +172,18 @@
<div class="wal2">
<div class="list">
<ul>
<li>
<li th:each="item : ${hdygList}">
<div class="img">
<a href="list.html" class="jtfylist jtfyl1"><img
src="../../static/portal/images/banenr3.png" th:src="@{/portal/images/banenr3.png}" alt=""
style="width: 100%" />
<a th:href="${item.linkUrl}?${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>
<div class="static-name">
<h3>智慧农业发展现状与趋势</h3>
<div class="static-speaker flex"><span>主讲人:马韫韬 教授</span><span>2024.4.25 13:30-17:00</div>
</div>
</li>
<li>
<div class="img">
<a href="list.html" class="jtfylist jtfyl2"><img
src="../../static/portal/images/banenr4.png" th:src="@{/portal/images/banenr4.png}" alt=""
style="width: 100%" /></a>
</div>
<div class="static-name">
<h3>谈谷论今谷物塑造的人类史</h3>
<div class="static-speaker flex"><span>主讲人:崔 凯 上海交通大学MBA课程教授</span><span>2024/3/29 8:00</div>
</div>
</li>
<li>
<div class="img">
<a href="list.html" class="jtfylist jtfyl2">
<img src="../../static/portal/images/banenr5.png" th:src="@{/portal/images/banenr5.png}" alt=""
style="width: 100%" /></a>
</div>
<div class="static-name">
<h3>掌握未来:2小时解锁AIGC在科研领域的应用</h3>
<div class="static-speaker flex"><span>主讲人:谢亚南</span><span>2024年5月10日9:00-11:00</div>
</div>
</li>
<li>
<div class="img">
<a href="list.html" class="jtfylist jtfyl2">
<img src="../../static/portal/images/banenr7.png" th:src="@{/portal/images/banenr7.png}" alt=""
style="width: 100%" /></a>
</div>
<div class="static-name">
<h3>从集约化到规模化一处于十字路口的荷兰奶牛养殖业</h3>
<div class="static-speaker flex"><span>主讲人JON DAANE(杨丹)</span><span>2024年4月10日</div>
<h3>[[${item.title}]]</h3>
<div class="static-speaker flex"><span>主讲人:[[${item.sourceAuthor}]]</span><span>[[${#dates.format(item.publishTime, 'YYYY-MM-dd')}]]</span></div>
</div>
</li>
</ul>
<!-- <div class="dots"></div> -->
</div>
</div>
@ -390,12 +228,12 @@
<span><img src="../../static/portal/picture/t2.png" th:src="@{/portal/picture/t2.png}" alt="" /></span>
<p class="desc">
<span style="letter-spacing: 0px; font-family: 幼圆; font-size: .86rem;">中西融汇、古今贯通、文理渗透</span>
<a class="syst pore" href=""><em>More</em></a>
<a class="syst pore" th:href="'/portal/list?newType=37'" target="_blank"><em>More</em></a>
</p>
</div>
<div class="item item2 flex">
<div class="hdtit">
<a class="alink" href=""></a>
<a class="alink" th:href="'/portal/list?newType=37'" target="_blank"></a>
<span class="syst">College profile</span>
<div style="margin-top: .6rem;"><img src="../../static/portal/picture/cbsy01.png" th:src="@{/portal/picture/cbsy01.png}" alt="" /></div>
</div>
@ -405,7 +243,7 @@
</div>
</div>
<div class="item item3 flex">
<a class="alink" href=""></a>
<a class="alink" th:href="'/portal/list?newType=39'" target="_blank"></a>
<div class="hdtit" style="margin-top: 1rem;">
<span class="syst">Academic salon</span>
<div style="margin-top: .6rem;"><img src="../../static/portal/picture/cbsy02.png" th:src="@{/portal/picture/cbsy02.png}" alt="" /></div>
@ -416,7 +254,7 @@
</div>
</div>
<div class="item item4 flex">
<a class="alink" href=""></a>
<a class="alink" th:href="'/portal/list?newType=41'" target="_blank"></a>
<div class="hdtit" style="margin-top: 1rem;">
<span class="syst">Student activity</span>
<div style="margin-top: .6rem;"><img src="../../static/portal/picture/cbsy03.png" th:src="@{/portal/picture/cbsy03.png}" alt="" /></div>

View File

@ -33,115 +33,43 @@
</div>
<div class="listacon portal_list">
<div class="main_left">
<p>卓越农林人才培养</p>
<p>[[${twoName}]]</p>
<ul>
<li class="active"><a href="#">·&nbsp;培养方案</a></li>
<li><a href="#">·&nbsp;管理制度</a></li>
<li><a href="#">·&nbsp;创新课程</a></li>
<li><a href="#">·&nbsp;科研实践</a></li>
<li th:class="${item.id+''==threeCode?'active':item.id}" th:each="item : ${menuList}" th:if="${item.id!=13}"><a th:href="'/portal/list?newType='+${item.id}">·&nbsp;[[${item.name}]]</a></li>
</ul>
</div>
<div class="listaright">
<div class="crumbs">
<img src="../../static/portal/images/shouye.png" th:src="@{/portal/images/shouye.png}" alt="" />
<a href="../index.htm" >首页</a>
>
<a href="lista.html">卓越农林人才培养</a>
>
<a href="details.html">培养方案</a>
<a href="/">首页 > </a>
<a th:href="'/portal/list?newType='+${twoCode}" th:if="${twoCode!='-1'}">[[${twoName}]] > </a>
<a th:href="'/portal/list?newType='+${threeCode}">[[${threeName}]]</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>
<li class="clearfix">
<a href="details.html" target="_blank" title="2023-2024秋 本科生第二次游泳集中测试通知" class="clearfix">
<div class="left txt">
<div class="fnt_22 title">20232024学年秋季学期SRT学生报名通知</div>
<div class="des">长白山书院10位同学作为学生代表参与了晚会致敬环节以诗朗诵的形式向前辈表达敬意抒发科研报国的志向。</div>
</div>
<div class="right time">
<div class="ta">01-03 11:39</div>
<div>发布时间</div>
</div>
</a>
</li>
<li class="clearfix">
<a href="details.html" target="_blank" title="2023-2024秋 本科生第二次游泳集中测试通知" class="clearfix">
<div class="left txt">
<div class="fnt_22 title">20232024学年秋季学期SRT学生报名通知</div>
<div class="des">长白山书院10位同学作为学生代表参与了晚会致敬环节以诗朗诵的形式向前辈表达敬意抒发科研报国的志向。</div>
</div>
<div class="right time">
<div class="ta">01-03 11:39</div>
<div>发布时间</div>
</div>
</a>
</li>
<li class="clearfix">
<a href="details.html" target="_blank" title="2023-2024秋 本科生第二次游泳集中测试通知" class="clearfix">
<div class="left txt">
<div class="fnt_22 title">20232024学年秋季学期SRT学生报名通知</div>
<div class="des">长白山书院10位同学作为学生代表参与了晚会致敬环节以诗朗诵的形式向前辈表达敬意抒发科研报国的志向。</div>
</div>
<div class="right time">
<div class="ta">01-03 11:39</div>
<div>发布时间</div>
</div>
</a>
</li>
<li class="clearfix">
<a href="details.html" target="_blank" title="2023-2024秋 本科生第二次游泳集中测试通知" class="clearfix">
<div class="left txt">
<div class="fnt_22 title">20232024学年秋季学期SRT学生报名通知</div>
<div class="des">长白山书院10位同学作为学生代表参与了晚会致敬环节以诗朗诵的形式向前辈表达敬意抒发科研报国的志向。</div>
</div>
<div class="right time">
<div class="ta">01-03 11:39</div>
<div>发布时间</div>
</div>
</a>
</li>
<li class="clearfix">
<a href="details.html" target="_blank" title="2023-2024秋 本科生第二次游泳集中测试通知" class="clearfix">
<div class="left txt">
<div class="fnt_22 title">20232024学年秋季学期SRT学生报名通知</div>
<div class="des">长白山书院10位同学作为学生代表参与了晚会致敬环节以诗朗诵的形式向前辈表达敬意抒发科研报国的志向。</div>
</div>
<div class="right time">
<div class="ta">01-03 11:39</div>
<div>发布时间</div>
</div>
</a>
</li>
<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="pb_sys_common pb_sys_normal pb_sys_style1"
style="margin-top: 10px; text-align: center; padding-bottom: 15px">
<span class="p_t">共25条</span>
<span class="p_pages"><span class="p_first_d p_fun_d">首页</span><span
class="p_prev_d p_fun_d">上页</span><span class="p_no_d">1</span><span class="p_no"><a
href="details.html">2</a></span><span class="p_no"><a href="details.html">3</a></span><span
class="p_no"><a href="details.html">4</a></span><span class="p_no"><a
href="details.html">5</a></span><span class="p_next p_fun"><a
href="details.html">下页</a></span><span class="p_last p_fun"><a
href="details.html">尾页</a></span></span>
<div class="page_list">
</div>
<!-- <script>-->
<!-- _showDynClickBatch(-->
<!-- [-->
<!-- "dynclicks_u9_2920",-->
<!-- "dynclicks_u9_2919",-->
<!-- "dynclicks_u9_2917",-->
<!-- "dynclicks_u9_2916",-->
<!-- "dynclicks_u9_2807",-->
<!-- ],-->
<!-- [2920, 2919, 2917, 2916, 2807],-->
<!-- "wbnews",-->
<!-- 1729783378-->
<!-- );-->
<!-- </script>-->
<!-- <div class="pb_sys_common pb_sys_normal pb_sys_style1" style="margin-top: 10px; text-align: center; padding-bottom: 15px">-->
<!-- <span class="p_t">共25条</span>-->
<!-- <span class="p_pages"><span class="p_first_d p_fun_d">首页</span><span-->
<!-- class="p_prev_d p_fun_d">上页</span><span class="p_no_d">1</span><span class="p_no"><a-->
<!-- href="details.html">2</a></span><span class="p_no"><a href="details.html">3</a></span><span-->
<!-- class="p_no"><a href="details.html">4</a></span><span class="p_no"><a-->
<!-- href="details.html">5</a></span><span class="p_next p_fun"><a-->
<!-- href="details.html">下页</a></span><span class="p_last p_fun"><a-->
<!-- href="details.html">尾页</a></span></span>-->
<!-- </div>-->
</div>
</div>
</div>
@ -153,7 +81,86 @@
<th:block th:include="portal/headerAndFooter :: search" />
<script src="../../static/js/public.js" th:src="@{/portal/js/public.js}"></script>
<script type="text/javascript">
<script th:src="@{/portal/js/page.js}"></script>
<script th:inline="javascript">
var newType = [[${threeCode}]]
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 = "";
if(item.linkUrl){
url = item.linkUrl;
}else{
url= '/portal/details?id='+item.id
}
prve += `
<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="right time">
<div class="ta">${item.publishTime}</div>
<div>发布时间</div>
</div>
</a>
</li>
`
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')
}
});
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) {
prve += `
<li class="clearfix">
<a href="/portal/details?id=${item.id}" target="_blank" title="2023-2024秋 本科生第二次游泳集中测试通知" class="clearfix">
<div class="left txt">
<div class="fnt_22 title">${item.title}</div>
<div class="des">${item.abstracts}</div>
</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) {

View File

@ -0,0 +1,102 @@
<!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="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">
<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">
<div class="left txt">
<div class="fnt_22 title">[[${item.title}]]</div>
<div class="des">[[${item.abstracts}]]</div>
</div>
<div class="right time">
<div class="ta">[[${#dates.format(item.publishTime, 'YYYY-MM-dd')}]]</div>
<div>发布时间</div>
</div>
</a>
</li>
</ul>
</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">
//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>

View File

@ -100,18 +100,18 @@
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-xs-2 control-label">岗位:</label>
<div class="col-xs-4">
<select id="post" class="form-control select2-multiple" multiple>
<option th:each="post:${posts}" th:value="${post.postId}" th:text="${post.postName}" th:disabled="${post.status == '1'}"></option>
</select>
</div>
</div>
</div>
</div>
<!-- <div class="row">-->
<!-- <div class="col-sm-12">-->
<!-- <div class="form-group">-->
<!-- <label class="col-xs-2 control-label">岗位:</label>-->
<!-- <div class="col-xs-4">-->
<!-- <select id="post" class="form-control select2-multiple" multiple>-->
<!-- <option th:each="post:${posts}" th:value="${post.postId}" th:text="${post.postName}" th:disabled="${post.status == '1'}"></option>-->
<!-- </select>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<div class="row">
<div class="col-sm-12">
<div class="form-group">

View File

@ -76,28 +76,28 @@
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">岗位:</label>
<div class="col-sm-8">
<select id="post" class="form-control select2-multiple" multiple>
<option th:each="post:${posts}" th:value="${post.postId}" th:text="${post.postName}" th:selected="${post.flag}" th:disabled="${post.status == '1'}"></option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">用户性别:</label>
<div class="col-sm-8">
<select name="sex" class="form-control m-b" th:with="type=${@dict.getType('sys_user_sex')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{sex}"></option>
</select>
</div>
</div>
</div>
</div>
<!-- <div class="row">-->
<!-- <div class="col-sm-6">-->
<!-- <div class="form-group">-->
<!-- <label class="col-sm-4 control-label">岗位:</label>-->
<!-- <div class="col-sm-8">-->
<!-- <select id="post" class="form-control select2-multiple" multiple>-->
<!-- <option th:each="post:${posts}" th:value="${post.postId}" th:text="${post.postName}" th:selected="${post.flag}" th:disabled="${post.status == '1'}"></option>-->
<!-- </select>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="col-sm-6">-->
<!-- <div class="form-group">-->
<!-- <label class="col-sm-4 control-label">用户性别:</label>-->
<!-- <div class="col-sm-8">-->
<!-- <select name="sex" class="form-control m-b" th:with="type=${@dict.getType('sys_user_sex')}">-->
<!-- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{sex}"></option>-->
<!-- </select>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<div class="row">
<div class="col-sm-12">
<div class="form-group">

View File

@ -6,7 +6,7 @@ spring:
druid:
# 主库数据源
master:
url: jdbc:mysql://localhost:3306/nd?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
url: jdbc:mysql://localhost:3306/nd_cbsy?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: root
# 从库数据源

View File

@ -0,0 +1,77 @@
var page = 1
var size = 15
var totalCount = 1
var values =1
function generPage(total, dom_page_class) {
totalCount = total % 10 == 0 ? Math.floor(total / 10) : Math.floor(total / 10) + 1
let domStr = `
<div class="pb_sys_common pb_sys_normal pb_sys_style1" style="margin-top: 10px; text-align: center; padding-bottom: 15px">
<span class="p_t">共${total}</span>
<span class="p_pages"><span class="p_no" ><a href="javascript:void(0);" onclick="pageChange(1,this)">首页</a></span>
`
for (let i = 1; i <= totalCount; i++) {
if(values==i){
domStr += `<span class="p_no_d " ><a href="javascript:void(0)" onclick="pageChange(${i },this)" style="color:white;">` + (i ) + `</a></span>`
}else{
domStr += `<span class="p_no " ><a href="javascript:void(0)" onclick="pageChange(${i },this)">` + (i ) + `</a></span>`
}
}
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
}
function pageChange(currentPage,e) {
// let jsijg = e.innerText
page = currentPage
values = page
mainListChange(page)
console.log(page)
// 去第一页
// if(page===1) {
// console.log('123123123')
// document.querySelector('.active')?.classList.remove('active')
// document.querySelector('.first').classList.add('active')
// }
// document.querySelector('.current').addEventListener('click',function (e) {
// if(e.target.tagName ==='DIV') {
// console.log('点击了按钮')
// document.querySelector('.active').classList.remove('active')
// e.target.classList.add('active')
// }
// })
// if(e.className === 'pageEnd') {
// const pages = document.querySelector('.current').children
// document.querySelector('.active').classList.remove('active')
// pages[1].classList.add('active')
// }
}
function page_go() {
let content = document.querySelector('#page_input').value
let reg = /^\d$/
if(reg.test(content)&&content>0&&content<=totalCount){
page = content
values = page
mainListChange()
}
}
function prePage() {
if (page != 1) page = page - 1
values = page
mainListChange()
}
function nextPage(count) {
if (page != count) page = page + 1
values = page
mainListChange()
}

View File

@ -43,13 +43,26 @@
<input name="sourceAuthor" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">发布时间:</label>
<!-- <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">
<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>
<input type="hidden" class="form-control" name="content">
<div class="summernote" id="content" style="height:300px;"></div>
</div>
</div>
<div id="linkUrlDiv" class="form-group">
<label class="col-sm-3 control-label">超链接:</label>
<div class="col-sm-8">
<input name="linkUrl" type="url" class="form-control"></input>
</div>
</div>
<div class="form-group">
@ -62,30 +75,26 @@
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">摘要</label>
<label class="col-sm-3 control-label">附件</label>
<div class="col-sm-8">
<textarea name="abstracts" class="form-control"></textarea>
</div>
</div>
<div id="contentDiv" class="form-group">
<label class="col-sm-3 control-label">内容:</label>
<div class="col-sm-8">
<input type="hidden" class="form-control" name="content">
<div class="summernote" id="content"></div>
</div>
</div>
<div id="linkUrlDiv" class="form-group">
<label class="col-sm-3 control-label">超链接:</label>
<div class="col-sm-8">
<textarea name="linkUrl" type="url" class="form-control"></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">点击率:</label>
<div class="col-sm-8">
<input name="clickRate" type="digits" class="form-control"></input>
<input type="hidden" name="filePath">
<div class="file-loading">
<input class="form-control file-uploadb" id="filePath" name="file" type="file" accept="*">
</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"></textarea>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="form-group">-->
<!-- <label class="col-sm-3 control-label">点击率:</label>-->
<!-- <div class="col-sm-8">-->
<!-- <input name="clickRate" type="digits" class="form-control"></input>-->
<!-- </div>-->
<!-- </div>-->
</form>
</div>
<th:block th:include="include :: footer" />
@ -130,10 +139,22 @@
$("input[name='" + event.currentTarget.id + "']").val('')
})
$(".file-uploadb").fileinput({
uploadUrl: ctx + 'common/upload',
maxFileCount: 10,
autoReplace: true
}).on('fileuploaded', function (event, data, previewId, index) {
var inputaaa = $("input[name='" + event.currentTarget.id + "']").val();
$("input[name='" + event.currentTarget.id + "']").val(inputaaa+"|"+data.response.url)
}).on('fileremoved', function (event, id, index) {
$("input[name='" + event.currentTarget.id + "']").val('')
})
$(function() {
$('.summernote').summernote({
lang: 'zh-CN',
dialogsInBody: true,
height: '300px',
callbacks: {
onChange: function(contents, $edittable) {
$("input[name='" + this.id + "']").val(contents);

View File

@ -10,15 +10,15 @@
<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 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">
@ -26,6 +26,8 @@
<option th:value="*{firstType}" selected>[[*{firstTypeStr}]]</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>
@ -53,30 +55,15 @@
<input name="sourceAuthor" th:field="*{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" th:value="${#dates.format(ndNew.publishTime, 'yyyy-MM-dd')}" 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 class="form-group">
<label class="col-sm-3 control-label">缩略图:</label>
<div class="col-sm-8">
<input type="hidden" name="imagePath" th:field="*{imagePath}">
<div class="file-loading">
<input class="form-control file-upload" id="imagePath" name="file" type="file" accept="image/*">
</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">-->
<!-- <div class="input-group date">-->
<!-- <input name="publishTime" th:value="${#dates.format(ndNew.publishTime, 'yyyy-MM-dd')}" 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">
@ -91,11 +78,35 @@
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">点击率</label>
<label class="col-sm-3 control-label">缩略图</label>
<div class="col-sm-8">
<input name="clickRate" th:field="*{clickRate}" type="number" class="form-control">
<input type="hidden" name="imagePath" th:field="*{imagePath}">
<div class="file-loading">
<input class="form-control file-upload" id="imagePath" name="file" type="file" accept="image/*">
</div>
</div>
</div>
<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}">
<div class="file-loading">
<input class="form-control file-uploadb" id="filePath" name="file" type="file" accept="*" multiple>
</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">-->
@ -152,11 +163,30 @@
$(this).fileinput('_initFileActions');
});
$(".file-uploadb").each(function (i) {
var val = $("input[name='" + this.id + "']").val()
$(this).fileinput({
'uploadUrl': ctx + 'common/upload',
initialPreviewAsData: true,
initialPreview: [val],
maxFileCount: 10,
autoReplace: true
}).on('fileuploaded', function (event, data, previewId, index) {
var inputaaa = $("input[name='" + event.currentTarget.id + "']").val();
$("input[name='" + event.currentTarget.id + "']").val(inputaaa+"|"+data.response.url)
}).on('fileremoved', function (event, id, index) {
$("input[name='" + event.currentTarget.id + "']").val('')
})
$(this).fileinput('_initFileActions');
});
$(function() {
$('.summernote').each(function(i) {
$('#' + this.id).summernote({
lang: 'zh-CN',
dialogsInBody: true,
height: '300px',
callbacks: {
onChange: function(contents, $edittable) {
$("input[name='" + this.id + "']").val(contents);

View File

@ -0,0 +1,217 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改栏目')" />
<th:block th:include="include :: datetimepicker-css" />
<th:block th:include="include :: bootstrap-fileinput-css"/>
<th:block th:include="include :: summernote-css" />
</head>
<body class="white-bg">
<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>
</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>
</div>
</div>
<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('news_content_type')}">
<input type="radio" th:id="${'type_' + dict.dictCode}" name="type" th:value="${dict.dictValue}" th:field="*{type}" th:onchange="'javascript:handleRadioChange()'">
<label th:for="${'type_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">标题:</label>
<div class="col-sm-8">
<input name="title" th:field="*{title}" class="form-control" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">来源或作者:</label>
<div class="col-sm-8">
<input name="sourceAuthor" th:field="*{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" th:value="${#dates.format(ndNew.publishTime, 'yyyy-MM-dd')}" 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">
<input type="hidden" class="form-control" th:field="*{content}">
<div class="summernote" id="content"></div>
</div>
</div>
<div id="linkUrlDiv" class="form-group">
<label class="col-sm-3 control-label">超链接:</label>
<div class="col-sm-8">
<textarea name="linkUrl" type="url" class="form-control">[[*{linkUrl}]]</textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">缩略图:</label>
<div class="col-sm-8">
<input type="hidden" name="imagePath" th:field="*{imagePath}">
<div class="file-loading">
<input class="form-control file-upload" id="imagePath" name="file" type="file" accept="image/*">
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<th:block th:include="include :: bootstrap-fileinput-js"/>
<th:block th:include="include :: summernote-js" />
<th:block th:include="include :: jquery-cxselect-js" />
<script th:inline="javascript">
var ndNew = [[${ndNew}]];
// 直接返回获取
var data = [[${data}]];
$('#element').cxSelect({
selects: ['first', 'second'],
jsonValue: 'v',
data: data
});
var prefix = ctx + "back/news/news";
$("#form-new-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-new-edit').serialize());
}
}
$("input[name='publishTime']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$(".file-upload").each(function (i) {
var val = $("input[name='" + this.id + "']").val()
$(this).fileinput({
'uploadUrl': ctx + 'common/upload',
initialPreviewAsData: true,
initialPreview: [val],
maxFileCount: 1,
autoReplace: true
}).on('fileuploaded', function (event, data, previewId, index) {
$("input[name='" + event.currentTarget.id + "']").val(data.response.url)
}).on('fileremoved', function (event, id, index) {
$("input[name='" + event.currentTarget.id + "']").val('')
})
$(this).fileinput('_initFileActions');
});
$(".file-uploadb").each(function (i) {
var val = $("input[name='" + this.id + "']").val()
$(this).fileinput({
'uploadUrl': ctx + 'common/upload',
initialPreviewAsData: true,
initialPreview: [val],
maxFileCount: 10,
autoReplace: true
}).on('fileuploaded', function (event, data, previewId, index) {
var inputaaa = $("input[name='" + event.currentTarget.id + "']").val();
$("input[name='" + event.currentTarget.id + "']").val(inputaaa+"|"+data.response.url)
}).on('fileremoved', function (event, id, index) {
$("input[name='" + event.currentTarget.id + "']").val('')
})
$(this).fileinput('_initFileActions');
});
$(function() {
$('.summernote').each(function(i) {
$('#' + this.id).summernote({
lang: 'zh-CN',
dialogsInBody: true,
height: '300px',
callbacks: {
onChange: function(contents, $edittable) {
$("input[name='" + this.id + "']").val(contents);
},
onImageUpload: function(files) {
var obj = this;
var data = new FormData();
data.append("file", files[0]);
$.ajax({
type: "post",
url: ctx + "common/upload",
data: data,
cache: false,
contentType: false,
processData: false,
dataType: 'json',
success: function(result) {
if (result.code == web_status.SUCCESS) {
$('#' + obj.id).summernote('insertImage', result.url);
} else {
$.modal.alertError(result.msg);
}
},
error: function(error) {
$.modal.alertWarning("图片上传失败。");
}
});
}
}
});
var content = $("input[name='" + this.id + "']").val();
$('#' + this.id).summernote('code', content);
})
});
function handleRadioChange() {
var radios = document.getElementsByName("type");
for (var i = 0; i < radios.length; i++) {
if (radios[i].checked) {
if(radios[i].value == 1){
$("#contentDiv").show();
$("#linkUrlDiv").hide();
}
if(radios[i].value == 2){
$("#contentDiv").hide();
$("#linkUrlDiv").show();
}
break;
}
}
}
handleRadioChange();
</script>
</body>
</html>

View File

@ -14,13 +14,13 @@
<label>栏目类型:</label>
<select class="first" name="firstType">
<option value="">所有</option>
<option value="1" selected>首页</option>
<!-- <option value="1" selected>首页</option>-->
</select>
</li>
<li>
<select class="second" name="newType">
<option value="">所有</option>
<option value="10" selected>新闻动态</option>
<!-- <option value="10" selected>新闻动态</option>-->
</select>
</li>
</ul>
@ -102,6 +102,7 @@
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
updateGlyUrl: prefix + "/editGly/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "新闻",
@ -146,18 +147,19 @@
return '<img src="' + value + '" height="100" />';
}
},
{
field: 'delFlag',
title: '状态',
formatter: function(value, row, index) {
return $.table.selectDictLabel(datas, value);
}
},
// {
// field: 'delFlag',
// title: '状态',
// formatter: function(value, row, index) {
// return $.table.selectDictLabel(datas, value);
// }
// },
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a href="javascript:void(0)" onclick="edit2(\'' + row.id + '\')">&nbsp;&nbsp;&nbsp;</a> ');
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
@ -166,6 +168,12 @@
};
$.table.init(options);
});
/* 用户管理-重置密码 */
function edit2(id) {
var url = prefix+'/editGly/' + id;
$.modal.open("修改", url, '900', '700');
}
</script>
</body>
</html>

View File

@ -34,28 +34,29 @@
<div class="detailcon portal_list">
<div class="crumbs">
<img src="../../static/portal/images/shouye.png" th:src="@{/portal/images/shouye.png}" alt="" />
<a href="index.html">首页</a>
>
<a href="#">书院新闻</a>
>
<a href="#">通知公告</a>
<a href="/">首页 > </a>
<a th:href="'/portal/list?newType='+${twoCode}" th:if="${twoName!='-1'}">[[${twoName}]] > </a>
<a th:href="'/portal/list?newType='+${threeCode}">[[${threeName}]]</a>
</div>
<div class="details_title">
<h2>学院召开新农科创新课程开发研讨会</h2>
<h2>[[${info.title}]]</h2>
<ul>
<li>日期:2024/03/12</li>
<li>编辑:吉林农大新农科长白山创新学院</li>
<li>点击率:65</li>
<li>日期:[[${#dates.format(info.publishTime, 'YYYY-MM-dd')}]]</li>
<li>编辑:[[${info.sourceAuthor}]]</li>
<li>点击率:[[${info.clickRate}]]</li>
</ul>
</div>
<div class="con deheligh">
<div class="clearfix">
<div style="text-indent:1.5rem;width:100%;float:left;">
<p>HELLO WORLD!</p>
<div style="text-indent:1.5rem;width:100%;float:left;" id="contentID">
</div>
</div>
</div>
<div class="con deheligh" style="margin-top: 40px;" id="filePathId">
</div>
</div>
</div>
</div>
@ -64,8 +65,7 @@
<th:block th:include="portal/headerAndFooter :: search" />
<script src="../../static/js/public.js" th:src="@{/portal/js/public.js}"></script>
<script type="text/javascript">
<script th:inline="javascript">
//if($(window).width()<1024){
//判断手机横竖屏状态:
if (window.orientation == 180 || window.orientation == 0) {
@ -98,6 +98,24 @@
false
);
var infoTTT = [[${info}]];
console.log(infoTTT);
document.getElementById("contentID").innerHTML =infoTTT.content;
var downloadtext = ``;
if(infoTTT.filePath){
var fileDown = infoTTT.filePath.split("|");
downloadtext = `<div style="line-height:30px"><div style="padding:15px;">附件:</div>`;
for(var i = 0; i < fileDown.length; i++){
var name = fileDown[i].substring(fileDown[i].lastIndexOf("/")+1,fileDown[i].length)
if(name){
downloadtext += `<div style="margin-left:30px;"><a href="javascript:void(0)" onclick="window.open('`+fileDown[i]+`','_blank')">`+(i)+`、`+name+`</a></div>`;
}
}
}
document.getElementById("filePathId").innerHTML = downloadtext;
</script>
<script src="../../static/js/public.js" th:src="@{/portal/js/public.js}"></script>
</body>
</html>

View File

@ -14,7 +14,7 @@
<a href="https://www.jlau.edu.cn/" title="吉林省新农科长白山创新学院">
<img class="logo-d" src="../../static/portal/images/logo2.png" th:src="@{/portal/images/logo2.png}"/>
</a>
<a href="#" class="zhongying" title="吉林省新农科长白山创新学院"><span>吉林省新农科长白山创新学院</span>
<a href="/" class="zhongying" title="吉林省新农科长白山创新学院"><span>吉林省新农科长白山创新学院</span>
<!-- <span>Changbai Mountain Innovation College of Emerging Agricultural Education, jilin Province</span> -->
</a>
</div>
@ -28,7 +28,7 @@
<div class="gzhewm">
<img src="../../static/portal/images/wxgzh.jpg" th:src="@{/portal/images/wxgzh.jpg}" alt="">
</div>
<a href="#" title="">
<a href="/" title="首页">
<img src="../../static/portal/images/shouye.png" th:src="@{/portal/images/shouye.png}" class="imgMargin imgleft"/>
</a>
</div>
@ -37,127 +37,127 @@
<ul class="homea-nav homea-nav-flex">
<li class="navsitem navi1">
<a href="list.html" title="学院概况">学院概况</a></a>
<a th:href="'/portal/list?newType=14'" target="_blank" title="学院概况">学院概况</a></a>
<div class="subnavs flex-v-center">
<ul class="flex-left">
<li>
<a href="list.html" title="学院简介">学院简介</a>
<a th:href="'/portal/list?newType=14'" target="_blank" title="学院简介">学院简介</a>
</li>
<li>
<a href="list.html" title="机构设置">机构设置</a>
<a th:href="'/portal/list?newType=15'" target="_blank" title="机构设置">机构设置</a>
</li>
<li>
<a href="list.html" title="管理制度">管理制度</a>
<a th:href="'/portal/list?newType=16'" target="_blank" title="管理制度">管理制度</a>
</li>
</ul>
</div>
</li>
<li class="navsitem navi2">
<a href="list.html" title="师资队伍">师资队伍</a>
<a th:href="'/portal/list?newType=17'" title="师资队伍">师资队伍</a>
<div class="subnavs flex-v-center">
<ul class="flex-left">
<li>
<a href="list.html" title="师资概况">师资概况</a>
<a th:href="'/portal/list?newType=17'" target="_blank" title="师资概况">师资概况</a>
</li>
<li>
<a href="list.html" title="创新人才培养教师">创新人才培养教师</a>
<a th:href="'/portal/list?newType=18'" target="_blank" title="创新人才培养教师">创新人才培养教师</a>
</li>
<li>
<a href="list.html" title="学育导师">学育导师</a>
<a th:href="'/portal/list?newType=19'" target="_blank" title="学育导师">学育导师</a>
</li>
<li>
<a href="list.html" title="驻院学者">驻院学者</a>
<a th:href="'/portal/list?newType=20'" target="_blank" title="驻院学者">驻院学者</a>
</li>
<li><a href="list.html" title="班主任">班主任</a></li>
<li><a href="list.html" title="督导队伍">督导队伍</a></li>
<li><a th:href="'/portal/list?newType=21'" target="_blank" title="班主任">班主任</a></li>
<li><a th:href="'/portal/list?newType=22'" target="_blank" title="督导队伍">督导队伍</a></li>
</ul>
</div>
</li>
<li class="navsitem navi3">
<a href="list.html" title="本科生教育">本科生教育</a>
<a th:href="'/portal/list?newType=23'" target="_blank" title="本科生教育">本科生教育</a>
<div class="subnavs flex-v-center">
<ul class="flex-left">
<li>
<a href="lista.html" title="卓越农林人才培养">卓越农林人才培养</a>
<a th:href="'/portal/list?newType=23'" target="_blank" title="卓越农林人才培养">卓越农林人才培养</a>
</li>
<li>
<a href="lista.html" title="订单式农科生培养">订单式农科生培养</a>
<a th:href="'/portal/list?newType=24'" target="_blank" title="订单式农科生培养">订单式农科生培养</a>
</li>
</ul>
</div>
</li>
<li class="navsitem navi4">
<a href="list.html" title="研究生教育">研究生教育</a>
<a th:href="'/portal/list?newType=25'" target="_blank" title="研究生教育">研究生教育</a>
<div class="subnavs flex-v-center">
<ul class="flex-left">
<li>
<a href="list.html" title="学位点简介">学位点简介</a>
<a th:href="'/portal/list?newType=25'" target="_blank" title="学位点简介">学位点简介</a>
</li>
<li>
<a href="list.html" title="培养方案">培养方案</a>
<a th:href="'/portal/list?newType=26'" target="_blank" title="培养方案">培养方案</a>
</li>
<li>
<a href="list.html" title="就业创业">就业创业</a>
<a th:href="'/portal/list?newType=27'" target="_blank" title="就业创业">就业创业</a>
</li>
<li>
<a href="list.html" title="导师队伍">导师队伍</a>
<a th:href="'/portal/list?newType=28'" target="_blank" title="导师队伍">导师队伍</a>
</li>
<li><a href="list.html" title="学术委员会">学术委员会</a></li>
<li><a th:href="'/portal/list?newType=29'" target="_blank" title="学术委员会">学术委员会</a></li>
</ul>
</div>
</li>
<li class="navsitem navi5">
<a href="list.html" title="学生竞赛">学生竞赛</a>
<a th:href="'/portal/list?newType=30'" target="_blank" title="学生竞赛">学生竞赛</a>
<div class="subnavs flex-v-center">
<ul class="flex-left">
<li>
<a href="list.html" title="竞赛简介">竞赛简介</a>
<a th:href="'/portal/list?newType=30'" target="_blank" title="竞赛简介">竞赛简介</a>
</li>
<li>
<a href="list.html" title="指导教师">指导教师</a>
<a th:href="'/portal/list?newType=31'" target="_blank" title="指导教师">指导教师</a>
</li>
<li><a href="list.html" title="成果展示">成果展示</a></li>
<li><a th:href="'/portal/list?newType=32'" target="_blank" title="成果展示">成果展示</a></li>
</ul>
</div>
</li>
<li class="navsitem navi6">
<a href="list.html" title="国际交流">国际交流</a>
<a th:href="'/portal/list?newType=33'" target="_blank" title="国际交流">国际交流</a>
<div class="subnavs flex-v-center">
<ul class="flex-left">
<li>
<a href="list.html" title="研学项目">研学项目</a>
<a th:href="'/portal/list?newType=33'" target="_blank" title="研学项目">研学项目</a>
</li>
<li><a href="list.html" title="国际课程">国际课程</a></li>
<li><a th:href="'/portal/list?newType=34'" target="_blank" title="国际课程">国际课程</a></li>
<li>
<a href="list.html" title="合作交流">合作交流</a>
<a th:href="'/portal/list?newType=35'" target="_blank" title="合作交流">合作交流</a>
</li>
<li>
<a href="list.html" title="国际会议">国际会议</a>
<a th:href="'/portal/list?newType=36'" target="_blank" title="国际会议">国际会议</a>
</li>
</ul>
</div>
</li>
<li class="navsitem navi7">
<a href="list.html" title="书院">书院</a>
<a th:href="'/portal/list?newType=37'" target="_blank" title="书院">书院</a>
<div class="subnavs flex-v-center">
<ul class="flex-left">
<li><a href="list.html" title="书院简介">书院简介</a></li>
<li><a href="list.html" title="书院架构">书院架构</a></li>
<li><a href="list.html" title="学术沙龙">学术沙龙</a></li>
<li><a href="list.html" title="学生组织">学生组织</a></li>
<li><a href="list.html" title="学生活动">学生活动</a></li>
<li><a th:href="'/portal/list?newType=37'" target="_blank" title="书院简介">书院简介</a></li>
<li><a th:href="'/portal/list?newType=38'" target="_blank" title="书院架构">书院架构</a></li>
<li><a th:href="'/portal/list?newType=39'" target="_blank" title="学术沙龙">学术沙龙</a></li>
<li><a th:href="'/portal/list?newType=40'" target="_blank" title="学生组织">学生组织</a></li>
<li><a th:href="'/portal/list?newType=41'" target="_blank" title="学生活动">学生活动</a></li>
</ul>
</div>
</li>
<li class="navsitem navi8">
<a href="list.html" title="通识教育中心">通识教育中心</a>
<a th:href="'/portal/list?newType=42'" target="_blank" title="通识教育中心">通识教育中心</a>
<div class="subnavs flex-v-center">
<ul class="flex-left">
<li><a href="list.html" title="中心简介">中心简介</a></li>
<li><a href="lista.html" title="组织架构">组织架构</a></li>
<li><a href="list.html" title="学科基础课程">学科基础课程</a></li>
<li><a href="list.html" title="通识课程">通识课程</a></li>
<li><a href="list.html" title="教师风采">教师风采</a></li>
<li><a th:href="'/portal/list?newType=42'" target="_blank" title="中心简介">中心简介</a></li>
<li><a th:href="'/portal/list?newType=43'" target="_blank" title="组织架构">组织架构</a></li>
<li><a th:href="'/portal/list?newType=44'" target="_blank" title="学科基础课程">学科基础课程</a></li>
<li><a th:href="'/portal/list?newType=45'" target="_blank" title="通识课程">通识课程</a></li>
<li><a th:href="'/portal/list?newType=46'" target="_blank" title="教师风采">教师风采</a></li>
</ul>
</div>
</li>
@ -229,27 +229,28 @@
<div class="flex-left">
<div class="ll flex-v-center">友情链接:</div>
<div class="rr">
<a href="list.html" title="吉林农业大学"
onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 79045)" target="_blank"
class="titlin_w"><span class="titline_w">吉林农业大学</span></a>
<a href="list.html" title="国际交流"
onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 62511)" target="_blank"
class="titlin_w"><span class="titline_w">国际交流</span></a>
<a href="list.html" title="信息公开"
onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 62512)" target="_blank"
class="titlin_w"><span class="titline_w">信息公开</span></a>
<a href="list.html" title="招生信息"
onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 62513)" target="_blank"
class="titlin_w"><span class="titline_w">招生信息</span></a>
<a href="list.html" title="校园网络"
onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 62514)" target="_blank"
class="titlin_w"><span class="titline_w">校园网络</span></a>
<a href="list.html" title="图书馆"
onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 62514)" target="_blank"
class="titlin_w"><span class="titline_w">图书馆</span></a>
<a href="list.html" title="采购招标"
onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 62514)" target="_blank"
class="titlin_w"><span class="titline_w">采购招标</span></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"-->
<!-- class="titlin_w"><span class="titline_w">吉林农业大学</span></a>-->
<!-- <a href="list.html" title="国际交流"-->
<!-- onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 62511)" target="_blank"-->
<!-- class="titlin_w"><span class="titline_w">国际交流</span></a>-->
<!-- <a href="list.html" title="信息公开"-->
<!-- onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 62512)" target="_blank"-->
<!-- class="titlin_w"><span class="titline_w">信息公开</span></a>-->
<!-- <a href="list.html" title="招生信息"-->
<!-- onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 62513)" target="_blank"-->
<!-- class="titlin_w"><span class="titline_w">招生信息</span></a>-->
<!-- <a href="list.html" title="校园网络"-->
<!-- onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 62514)" target="_blank"-->
<!-- class="titlin_w"><span class="titline_w">校园网络</span></a>-->
<!-- <a href="list.html" title="图书馆"-->
<!-- onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 62514)" target="_blank"-->
<!-- class="titlin_w"><span class="titline_w">图书馆</span></a>-->
<!-- <a href="list.html" title="采购招标"-->
<!-- onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 62514)" target="_blank"-->
<!-- class="titlin_w"><span class="titline_w">采购招标</span></a>-->
</div>
</div>
</div>
@ -268,37 +269,34 @@
alert("请输入你要检索的内容!");
return false;
}
if (window.toFF == 1) {
document.getElementById("lucenenewssearchkey1024873").value =
Simplized(keyword);
} else {
document.getElementById("lucenenewssearchkey1024873").value =
keyword;
}
var base64 = new Base64();
document.getElementById("lucenenewssearchkey1024873").value =
base64.encode(
document.getElementById("lucenenewssearchkey1024873").value
);
new VsbFormFunc().disableAutoEnable(
document.getElementById("showkeycode1024873")
);
// if (window.toFF == 1) {
// document.getElementById("lucenenewssearchkey1024873").value =
// Simplized(keyword);
// } else {
// document.getElementById("lucenenewssearchkey1024873").value =
// keyword;
// }
// var base64 = new Base64();
// document.getElementById("lucenenewssearchkey1024873").value =
// base64.encode(
// document.getElementById("lucenenewssearchkey1024873").value
// );
new VsbFormFunc().disableAutoEnable('title='+keyword);
return true;
}
</script>
<form action="ssjg.jsp?wbtreeid=1001" method="post" id="au30a" name="au30a"
<form action="/portal/searchList" method="get" id="au30a" name="au30a"
onsubmit="return _nl_ys_check()">
<input type="hidden" id="lucenenewssearchkey1024873" name="lucenenewssearchkey" value="" /><input
type="hidden" id="_lucenesearchtype1024873" name="_lucenesearchtype" value="1" /><input
type="hidden" id="searchScope1024873" name="searchScope" value="0" />
<!-- <input type="hidden" id="lucenenewssearchkey1024873" name="lucenenewssearchkey" value="" /><input-->
<!-- type="hidden" id="_lucenesearchtype1024873" name="_lucenesearchtype" value="1" /><input-->
<!-- type="hidden" id="searchScope1024873" name="searchScope" value="0" />-->
<div class="search_wrap clearfix">
<input name="showkeycode" id="showkeycode1024873" type="text" class="text" placeholder="输入关键词搜索"
autocomplete="off" />
<input name="title" id="showkeycode1024873" type="text" class="text" placeholder="输入关键词搜索" autocomplete="off" />
<input type="submit" class="btn" value="" />
</div>
</form>
<script src="../../static/portal/js/base64.js" th:src="@{/portal/js/base64.js}"></script>
<script src="../../static/portal/js/formfunc.js"th:src="@{/portal/js/formfunc.js}"></script>
<script src="../../static/portal/js/formfunc.js" th:src="@{/portal/js/formfunc.js}"></script>
<a href="javascript:;" class="cd-popup-close close_btn"></a>
</div>
</div>

View File

@ -34,7 +34,7 @@
<th:block th:include="portal/headerAndFooter :: header" />
<div class="oneping">
<a href="https://www.baidu.com/">
<a href="/login">
<div class="xiaoxun">
<!-- <img src="./static/images/xiaoxun.svg" alt=""> -->
<span class="xxleft">
@ -59,78 +59,23 @@
<div class="wp flex">
<div class="aleft" aos="fade-up">
<div class="ctit flex">
<!--<span><img src="static/picture/t1.png" alt="" /></span>-->
<div class="pattern-title flex">
<span class="syst flex"><i>新闻动态</i></span>
<div class="flex-v-center">
<a href="" class="syst pore"><em>More</em></a>
<a th:href="'/portal/list?newType=10'" target="_blank" class="syst pore"><em>More</em></a>
</div>
</div>
</div>
<ul style="margin-top: .65rem;">
<li class="titlin_b">
<a href="" target="_blank" title="校长杜锐出席长春市科技成果转化战略合作委员会第一次会议" class="ellipsis-multiline">
<h4 class="titline_b">关于2023年吉林农业大学公开招...</h4>
<p class="titline_line2">
2023年吉林农业大学公开招聘工作人员公告7号笔试成绩现已发布考生可登录报名系统http://www.jlrcksbm.com/)查询。
<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">
<h4 class="titline_b">[[${item.title}]]</h4>
<p class="titline_line2" >
[[${item.abstracts}]]
</p>
</a>
<time>
11-21 09:35
<br />
发布时间
</time>
</li>
<li class="titlin_b">
<a href="" target="_blank" title="吉林农业大学参加2023浙吉跨区域科技创新合作推进活动暨产学研对接活动" class="ellipsis-multiline">
<h4 class="titline_b">吉林农业大学参加2023浙吉跨</h4>
<p class="titline_line2">
区域科技创新合作推进活动暨产学研对接活动
</p>
</a>
<time>
11-22 09:07
<br />
发布时间
</time>
</li>
<li class="titlin_b">
<a href="" target="_blank" title="学校牵头举办的全国智慧家政行业产教融合研讨会在贵阳举行" class="ellipsis-multiline">
<h4 class="titline_b">学校牵头举办的全国智慧家政行业</h4>
<p class="titline_line2">
产教融合研讨会在贵阳举行
</p>
</a>
<time>
11-17 08:58
<br />
发布时间
</time>
</li>
<li class="titlin_b">
<a href="" target="_blank" title="吉林农业大学调研组到湖北和浙江" class="ellipsis-multiline">
<h4 class="titline_b">部分高校与企业开展智慧校园建设</h4>
<p class="titline_line2">
产教融合研讨会在贵阳举行
</p>
</a>
<time>
11-14 09:05
<br />
发布时间
</time>
</li>
<li class="titlin_b">
<a href="" target="_blank" title="吉林农业大学调研组到湖北和浙江" class="ellipsis-multiline">
<h4 class="titline_b">第十五届挑战杯大学生科技作品赛</h4>
<p class="titline_line2">
产教融合研讨会在贵阳举行
</p>
</a>
<time>
11-08 09:55
[[${#dates.format(item.publishTime, 'YYYY-MM-dd')}]]
<br />
发布时间
</time>
@ -139,33 +84,18 @@
</div>
<div class="swiper-container slidenews" aos="fade-up" aos-delay="100">
<div class="swiper-wrapper">
<div class="swiper-slide slide bg-mask">
<div class="swiper-slide slide bg-mask" th:each="item : ${xwdtList}" >
<div class="pic">
<a href="" target="_blank" title="校长杜锐出席长春市科技成果转化战略合作委员会第一次会议”"class="mark">
<img src="../../static/portal/picture/news01.jpg" th:src="@{/portal/picture/news01.jpg}" alt="" />
<a th:href="${item.linkUrl}?${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 href="" target="_blank" title="校长杜锐出席长春市科技成果转化战略合作委员会第一次会议”"
class="texto">校长杜锐出席长春市科技成果转化战略合作委员会第一次会议</a><span>发布时间09-01
10:44</span></p>
</div>
<div class="swiper-slide slide bg-mask">
<div class="pic">
<a href="" target="_blank" title="届农业大学开学典礼" class="mark">
<img src="../../static/portal/picture/news02.jpg" th:src="@{/portal/picture/news02.jpg}" alt="" />
<p>
<a th:href="${item.linkUrl}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="texto">
[[${item.title}]]
</a>
</div>
<p><a href="" target="_blank" title="2023届农业大学开学典礼"
class="texto">2023届农业大学开学典礼</a><span>发布时间08-28 09:22</span></p>
</div>
<div class="swiper-slide slide bg-mask">
<div class="pic">
<a href="" target="_blank" title="第十五届挑战杯大学生科技作品赛" class="mark">
<img src="../../static/portal/picture/news03.jpg" th:src="@{/portal/picture/news03.jpg}" alt="" /></a>
</div>
<p><a href="" target="_blank" title="第十五届挑战杯大学生科技作品赛"
class="texto">第十五届挑战杯大学生科技作品赛</a><span>发布时间08-07
09:55</span></p>
<span>发布时间:[[${#dates.format(item.publishTime, 'YYYY-MM-dd')}]]</span>
</p>
</div>
</div>
<div class="swiper-button-next slideb-next">
@ -211,87 +141,30 @@
<div class="ctit ctit1 flex">
<span class="syst flex"><i>通知</i><i>公告</i></span>
<div class="flex-v-center">
<a href="" class="syst pore"><em>More</em></a>
<a th:href="'/portal/list?newType=11'" target="_blank" class="syst pore"><em>More</em></a>
</div>
</div>
<ul class="tzgg">
<li class="titlin_w">
<li class="titlin_w" th:each="item : ${tztgList}">
<div class="time Avian">
<time><span>22</span>23-11</time>
<time><span>[[${#dates.format(item.publishTime, 'dd')}]]</span>[[${#dates.format(item.publishTime, 'YYYY-MM')}]]</time>
</div>
<div class="info flex-v-center">
<h4><a href="" target="_blank" title="关于2023年吉林农业大学公开招聘工作人员公告7号笔试成绩查询的通知"
class="texto"><span
class="titline_w">关于2023年吉林农业大学公开招聘工作人员公告7号笔试成绩查询的通知</span></a>
<h4><a th:href="${item.linkUrl}?${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">
2023年吉林农业大学公开招聘工作人员公告7号笔试成绩现已发布考生可登录报名系统http://www.jlrcksbm.com/)查询。
[[${item.abstracts}]]
</p>
</div>
</li>
<li class="titlin_w ">
<div class="time Avian">
<time><span>17</span>23-10</time>
</div>
<div class="info flex-v-center">
<h4><a href="" target="_blank" title="关于开展2023年校内十件大事评选的通知" class="texto"><span
class="titline_w">关于开展2023年校内十件大事评选的通知</span></a></h4>
<p class="line2">
为集中宣传展示2023年学校在各项事业发展中取得的突出成果学校决定即日起在全校范围内开展校内十件
</p>
</div>
</li>
<li class="titlin_w ">
<div class="time Avian">
<time><span>14</span>23-09</time>
</div>
<div class="info flex-v-center">
<h4><a href="" target="_blank" title="2023年吉林农业大学公开招聘高层次人才公告8号"
class="texto"><span class="titline_w">2023年吉林农业大学公开招聘高层次人才公告8号</span></a>
</h4>
<p class="line2">按照《事业单位人事管理条例》《关于创新优化人事管理政策支持高等学校高质量发展的意见》</p>
</div>
</li>
<li class="titlin_w ">
<div class="time Avian">
<time><span>12</span>23-09</time>
</div>
<div class="info flex-v-center">
<h4><a href="" target="_blank" title="2023年吉林农业大学公开招聘高层次人才公告8号"
class="texto"><span class="titline_w">2023年吉林农业大学公开招聘高层次人才公告8号</span></a>
</h4>
<p class="line2">按照《事业单位人事管理条例》《关于创新优化人事管理政策支持高等学校高质量发展的意见》</p>
</div>
</li>
<li class="titlin_w ">
<div class="time Avian">
<time><span>12</span>23-09</time>
</div>
<div class="info flex-v-center">
<h4><a href="" target="_blank" title="2023年吉林农业大学公开招聘高层次人才公告8号"
class="texto"><span class="titline_w">2023年吉林农业大学公开招聘高层次人才公告8号</span></a>
</h4>
<p class="line2">按照《事业单位人事管理条例》《关于创新优化人事管理政策支持高等学校高质量发展的意见》</p>
</div>
</li>
<li class="titlin_w ">
<div class="time Avian">
<time><span>12</span>23-09</time>
</div>
<div class="info flex-v-center">
<h4><a href="" target="_blank" title="2023年吉林农业大学公开招聘高层次人才公告8号"
class="texto"><span class="titline_w">2023年吉林农业大学公开招聘高层次人才公告8号</span></a>
</h4>
<p class="line2">按照《事业单位人事管理条例》《关于创新优化人事管理政策支持高等学校高质量发展的意见》</p>
</div>
</li>
</ul>
</div>
<div class="aright" aos="fade-up" aos-delay="100">
<div class="ctit ctit1 flex">
<span class="syst flex"><i>活动</i><i>预告</i></span>
<div class="flex-v-center">
<a href="" class="syst pore"><em>More</em></a>
<a th:href="'/portal/list?newType=12'" target="_blank" class="syst pore"><em>More</em></a>
</div>
</div>
<div class="lidehd ">
@ -299,53 +172,18 @@
<div class="wal2">
<div class="list">
<ul>
<li>
<li th:each="item : ${hdygList}">
<div class="img">
<a href="list.html" class="jtfylist jtfyl1"><img
src="../../static/portal/images/banenr3.png" th:src="@{/portal/images/banenr3.png}" alt=""
style="width: 100%" />
<a th:href="${item.linkUrl}?${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>
<div class="static-name">
<h3>智慧农业发展现状与趋势</h3>
<div class="static-speaker flex"><span>主讲人:马韫韬 教授</span><span>2024.4.25 13:30-17:00</div>
</div>
</li>
<li>
<div class="img">
<a href="list.html" class="jtfylist jtfyl2"><img
src="../../static/portal/images/banenr4.png" th:src="@{/portal/images/banenr4.png}" alt=""
style="width: 100%" /></a>
</div>
<div class="static-name">
<h3>谈谷论今谷物塑造的人类史</h3>
<div class="static-speaker flex"><span>主讲人:崔 凯 上海交通大学MBA课程教授</span><span>2024/3/29 8:00</div>
</div>
</li>
<li>
<div class="img">
<a href="list.html" class="jtfylist jtfyl2">
<img src="../../static/portal/images/banenr5.png" th:src="@{/portal/images/banenr5.png}" alt=""
style="width: 100%" /></a>
</div>
<div class="static-name">
<h3>掌握未来:2小时解锁AIGC在科研领域的应用</h3>
<div class="static-speaker flex"><span>主讲人:谢亚南</span><span>2024年5月10日9:00-11:00</div>
</div>
</li>
<li>
<div class="img">
<a href="list.html" class="jtfylist jtfyl2">
<img src="../../static/portal/images/banenr7.png" th:src="@{/portal/images/banenr7.png}" alt=""
style="width: 100%" /></a>
</div>
<div class="static-name">
<h3>从集约化到规模化一处于十字路口的荷兰奶牛养殖业</h3>
<div class="static-speaker flex"><span>主讲人JON DAANE(杨丹)</span><span>2024年4月10日</div>
<h3>[[${item.title}]]</h3>
<div class="static-speaker flex"><span>主讲人:[[${item.sourceAuthor}]]</span><span>[[${#dates.format(item.publishTime, 'YYYY-MM-dd')}]]</span></div>
</div>
</li>
</ul>
<!-- <div class="dots"></div> -->
</div>
</div>
@ -390,12 +228,12 @@
<span><img src="../../static/portal/picture/t2.png" th:src="@{/portal/picture/t2.png}" alt="" /></span>
<p class="desc">
<span style="letter-spacing: 0px; font-family: 幼圆; font-size: .86rem;">中西融汇、古今贯通、文理渗透</span>
<a class="syst pore" href=""><em>More</em></a>
<a class="syst pore" th:href="'/portal/list?newType=37'" target="_blank"><em>More</em></a>
</p>
</div>
<div class="item item2 flex">
<div class="hdtit">
<a class="alink" href=""></a>
<a class="alink" th:href="'/portal/list?newType=37'" target="_blank"></a>
<span class="syst">College profile</span>
<div style="margin-top: .6rem;"><img src="../../static/portal/picture/cbsy01.png" th:src="@{/portal/picture/cbsy01.png}" alt="" /></div>
</div>
@ -405,7 +243,7 @@
</div>
</div>
<div class="item item3 flex">
<a class="alink" href=""></a>
<a class="alink" th:href="'/portal/list?newType=39'" target="_blank"></a>
<div class="hdtit" style="margin-top: 1rem;">
<span class="syst">Academic salon</span>
<div style="margin-top: .6rem;"><img src="../../static/portal/picture/cbsy02.png" th:src="@{/portal/picture/cbsy02.png}" alt="" /></div>
@ -416,7 +254,7 @@
</div>
</div>
<div class="item item4 flex">
<a class="alink" href=""></a>
<a class="alink" th:href="'/portal/list?newType=41'" target="_blank"></a>
<div class="hdtit" style="margin-top: 1rem;">
<span class="syst">Student activity</span>
<div style="margin-top: .6rem;"><img src="../../static/portal/picture/cbsy03.png" th:src="@{/portal/picture/cbsy03.png}" alt="" /></div>

View File

@ -33,115 +33,43 @@
</div>
<div class="listacon portal_list">
<div class="main_left">
<p>卓越农林人才培养</p>
<p>[[${twoName}]]</p>
<ul>
<li class="active"><a href="#">·&nbsp;培养方案</a></li>
<li><a href="#">·&nbsp;管理制度</a></li>
<li><a href="#">·&nbsp;创新课程</a></li>
<li><a href="#">·&nbsp;科研实践</a></li>
<li th:class="${item.id+''==threeCode?'active':item.id}" th:each="item : ${menuList}" th:if="${item.id!=13}"><a th:href="'/portal/list?newType='+${item.id}">·&nbsp;[[${item.name}]]</a></li>
</ul>
</div>
<div class="listaright">
<div class="crumbs">
<img src="../../static/portal/images/shouye.png" th:src="@{/portal/images/shouye.png}" alt="" />
<a href="../index.htm" >首页</a>
>
<a href="lista.html">卓越农林人才培养</a>
>
<a href="details.html">培养方案</a>
<a href="/">首页 > </a>
<a th:href="'/portal/list?newType='+${twoCode}" th:if="${twoCode!='-1'}">[[${twoName}]] > </a>
<a th:href="'/portal/list?newType='+${threeCode}">[[${threeName}]]</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>
<li class="clearfix">
<a href="details.html" target="_blank" title="2023-2024秋 本科生第二次游泳集中测试通知" class="clearfix">
<div class="left txt">
<div class="fnt_22 title">20232024学年秋季学期SRT学生报名通知</div>
<div class="des">长白山书院10位同学作为学生代表参与了晚会致敬环节以诗朗诵的形式向前辈表达敬意抒发科研报国的志向。</div>
</div>
<div class="right time">
<div class="ta">01-03 11:39</div>
<div>发布时间</div>
</div>
</a>
</li>
<li class="clearfix">
<a href="details.html" target="_blank" title="2023-2024秋 本科生第二次游泳集中测试通知" class="clearfix">
<div class="left txt">
<div class="fnt_22 title">20232024学年秋季学期SRT学生报名通知</div>
<div class="des">长白山书院10位同学作为学生代表参与了晚会致敬环节以诗朗诵的形式向前辈表达敬意抒发科研报国的志向。</div>
</div>
<div class="right time">
<div class="ta">01-03 11:39</div>
<div>发布时间</div>
</div>
</a>
</li>
<li class="clearfix">
<a href="details.html" target="_blank" title="2023-2024秋 本科生第二次游泳集中测试通知" class="clearfix">
<div class="left txt">
<div class="fnt_22 title">20232024学年秋季学期SRT学生报名通知</div>
<div class="des">长白山书院10位同学作为学生代表参与了晚会致敬环节以诗朗诵的形式向前辈表达敬意抒发科研报国的志向。</div>
</div>
<div class="right time">
<div class="ta">01-03 11:39</div>
<div>发布时间</div>
</div>
</a>
</li>
<li class="clearfix">
<a href="details.html" target="_blank" title="2023-2024秋 本科生第二次游泳集中测试通知" class="clearfix">
<div class="left txt">
<div class="fnt_22 title">20232024学年秋季学期SRT学生报名通知</div>
<div class="des">长白山书院10位同学作为学生代表参与了晚会致敬环节以诗朗诵的形式向前辈表达敬意抒发科研报国的志向。</div>
</div>
<div class="right time">
<div class="ta">01-03 11:39</div>
<div>发布时间</div>
</div>
</a>
</li>
<li class="clearfix">
<a href="details.html" target="_blank" title="2023-2024秋 本科生第二次游泳集中测试通知" class="clearfix">
<div class="left txt">
<div class="fnt_22 title">20232024学年秋季学期SRT学生报名通知</div>
<div class="des">长白山书院10位同学作为学生代表参与了晚会致敬环节以诗朗诵的形式向前辈表达敬意抒发科研报国的志向。</div>
</div>
<div class="right time">
<div class="ta">01-03 11:39</div>
<div>发布时间</div>
</div>
</a>
</li>
<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="pb_sys_common pb_sys_normal pb_sys_style1"
style="margin-top: 10px; text-align: center; padding-bottom: 15px">
<span class="p_t">共25条</span>
<span class="p_pages"><span class="p_first_d p_fun_d">首页</span><span
class="p_prev_d p_fun_d">上页</span><span class="p_no_d">1</span><span class="p_no"><a
href="details.html">2</a></span><span class="p_no"><a href="details.html">3</a></span><span
class="p_no"><a href="details.html">4</a></span><span class="p_no"><a
href="details.html">5</a></span><span class="p_next p_fun"><a
href="details.html">下页</a></span><span class="p_last p_fun"><a
href="details.html">尾页</a></span></span>
<div class="page_list">
</div>
<!-- <script>-->
<!-- _showDynClickBatch(-->
<!-- [-->
<!-- "dynclicks_u9_2920",-->
<!-- "dynclicks_u9_2919",-->
<!-- "dynclicks_u9_2917",-->
<!-- "dynclicks_u9_2916",-->
<!-- "dynclicks_u9_2807",-->
<!-- ],-->
<!-- [2920, 2919, 2917, 2916, 2807],-->
<!-- "wbnews",-->
<!-- 1729783378-->
<!-- );-->
<!-- </script>-->
<!-- <div class="pb_sys_common pb_sys_normal pb_sys_style1" style="margin-top: 10px; text-align: center; padding-bottom: 15px">-->
<!-- <span class="p_t">共25条</span>-->
<!-- <span class="p_pages"><span class="p_first_d p_fun_d">首页</span><span-->
<!-- class="p_prev_d p_fun_d">上页</span><span class="p_no_d">1</span><span class="p_no"><a-->
<!-- href="details.html">2</a></span><span class="p_no"><a href="details.html">3</a></span><span-->
<!-- class="p_no"><a href="details.html">4</a></span><span class="p_no"><a-->
<!-- href="details.html">5</a></span><span class="p_next p_fun"><a-->
<!-- href="details.html">下页</a></span><span class="p_last p_fun"><a-->
<!-- href="details.html">尾页</a></span></span>-->
<!-- </div>-->
</div>
</div>
</div>
@ -153,7 +81,86 @@
<th:block th:include="portal/headerAndFooter :: search" />
<script src="../../static/js/public.js" th:src="@{/portal/js/public.js}"></script>
<script type="text/javascript">
<script th:src="@{/portal/js/page.js}"></script>
<script th:inline="javascript">
var newType = [[${threeCode}]]
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 = "";
if(item.linkUrl){
url = item.linkUrl;
}else{
url= '/portal/details?id='+item.id
}
prve += `
<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="right time">
<div class="ta">${item.publishTime}</div>
<div>发布时间</div>
</div>
</a>
</li>
`
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')
}
});
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) {
prve += `
<li class="clearfix">
<a href="/portal/details?id=${item.id}" target="_blank" title="2023-2024秋 本科生第二次游泳集中测试通知" class="clearfix">
<div class="left txt">
<div class="fnt_22 title">${item.title}</div>
<div class="des">${item.abstracts}</div>
</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) {

View File

@ -0,0 +1,102 @@
<!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="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">
<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">
<div class="left txt">
<div class="fnt_22 title">[[${item.title}]]</div>
<div class="des">[[${item.abstracts}]]</div>
</div>
<div class="right time">
<div class="ta">[[${#dates.format(item.publishTime, 'YYYY-MM-dd')}]]</div>
<div>发布时间</div>
</div>
</a>
</li>
</ul>
</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">
//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>

View File

@ -100,18 +100,18 @@
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-xs-2 control-label">岗位:</label>
<div class="col-xs-4">
<select id="post" class="form-control select2-multiple" multiple>
<option th:each="post:${posts}" th:value="${post.postId}" th:text="${post.postName}" th:disabled="${post.status == '1'}"></option>
</select>
</div>
</div>
</div>
</div>
<!-- <div class="row">-->
<!-- <div class="col-sm-12">-->
<!-- <div class="form-group">-->
<!-- <label class="col-xs-2 control-label">岗位:</label>-->
<!-- <div class="col-xs-4">-->
<!-- <select id="post" class="form-control select2-multiple" multiple>-->
<!-- <option th:each="post:${posts}" th:value="${post.postId}" th:text="${post.postName}" th:disabled="${post.status == '1'}"></option>-->
<!-- </select>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<div class="row">
<div class="col-sm-12">
<div class="form-group">

View File

@ -76,28 +76,28 @@
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">岗位:</label>
<div class="col-sm-8">
<select id="post" class="form-control select2-multiple" multiple>
<option th:each="post:${posts}" th:value="${post.postId}" th:text="${post.postName}" th:selected="${post.flag}" th:disabled="${post.status == '1'}"></option>
</select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">用户性别:</label>
<div class="col-sm-8">
<select name="sex" class="form-control m-b" th:with="type=${@dict.getType('sys_user_sex')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{sex}"></option>
</select>
</div>
</div>
</div>
</div>
<!-- <div class="row">-->
<!-- <div class="col-sm-6">-->
<!-- <div class="form-group">-->
<!-- <label class="col-sm-4 control-label">岗位:</label>-->
<!-- <div class="col-sm-8">-->
<!-- <select id="post" class="form-control select2-multiple" multiple>-->
<!-- <option th:each="post:${posts}" th:value="${post.postId}" th:text="${post.postName}" th:selected="${post.flag}" th:disabled="${post.status == '1'}"></option>-->
<!-- </select>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="col-sm-6">-->
<!-- <div class="form-group">-->
<!-- <label class="col-sm-4 control-label">用户性别:</label>-->
<!-- <div class="col-sm-8">-->
<!-- <select name="sex" class="form-control m-b" th:with="type=${@dict.getType('sys_user_sex')}">-->
<!-- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{sex}"></option>-->
<!-- </select>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<div class="row">
<div class="col-sm-12">
<div class="form-group">

View File

@ -291,6 +291,7 @@ public class ShiroConfig
filterChainDefinitionMap.put("/js/**", "anon");
filterChainDefinitionMap.put("/ruoyi/**", "anon");
filterChainDefinitionMap.put("/portal/**", "anon");
filterChainDefinitionMap.put("/profile/upload/**", "anon");
filterChainDefinitionMap.put("/static/**", "anon");
filterChainDefinitionMap.put("/", "anon");
filterChainDefinitionMap.put("/captcha/captchaImage**", "anon");

View File

@ -26,6 +26,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="filePath" column="file_path" />
</resultMap>
<sql id="selectNdNewVo">
@ -50,7 +51,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.create_time,
a.update_by,
a.update_time,
a.remark
a.remark,
a.file_path
from nd_new a
inner join nd_new_type b on a.new_type = b.id
inner join nd_new_type c on b.parent_id = c.id
@ -66,6 +68,8 @@ 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
<if test="paramLimitno != null and paramLimitno != ''"> limit ${paramLimitno}</if>
</select>
<select id="selectNdNewById" parameterType="Long" resultMap="NdNewResult">
@ -93,6 +97,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
<if test="filePath != null">file_path,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="newType != null">#{newType},</if>
@ -112,6 +117,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
<if test="filePath != null">#{filePath},</if>
</trim>
</insert>
@ -135,6 +141,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="filePath != null">file_path = #{filePath},</if>
</trim>
where id = #{id}
</update>

View File

@ -26,6 +26,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="filePath" column="file_path" />
</resultMap>
<sql id="selectNdNewVo">
@ -50,7 +51,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.create_time,
a.update_by,
a.update_time,
a.remark
a.remark,
a.file_path
from nd_new a
inner join nd_new_type b on a.new_type = b.id
inner join nd_new_type c on b.parent_id = c.id
@ -66,6 +68,8 @@ 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
<if test="paramLimitno != null and paramLimitno != ''"> limit ${paramLimitno}</if>
</select>
<select id="selectNdNewById" parameterType="Long" resultMap="NdNewResult">
@ -93,6 +97,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
<if test="filePath != null">file_path,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="newType != null">#{newType},</if>
@ -112,6 +117,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
<if test="filePath != null">#{filePath},</if>
</trim>
</insert>
@ -135,6 +141,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="filePath != null">file_path = #{filePath},</if>
</trim>
where id = #{id}
</update>