1
This commit is contained in:
parent
642fc11b36
commit
741525393a
@ -22,16 +22,44 @@ import org.springframework.web.servlet.ModelAndView;
|
|||||||
public class TopMenuBaseController {
|
public class TopMenuBaseController {
|
||||||
|
|
||||||
|
|
||||||
@ApiOperation(value = "个人门户", notes = "个人门户")
|
@ApiOperation(value = "信息发布系统", notes = "信息发布系统")
|
||||||
@GetMapping("ownmenu")
|
@GetMapping("news")
|
||||||
public ModelAndView archiveMenu(){
|
public ModelAndView newsMenu(){
|
||||||
return new ModelAndView("index/ownmenu");
|
return new ModelAndView("news/index/index");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ApiOperation(value = "管理中心", notes = "管理中心")
|
@ApiOperation(value = "志愿者系统", notes = "志愿者系统")
|
||||||
@GetMapping("configmenu")
|
@GetMapping("volunteer")
|
||||||
public ModelAndView mailMenu(){
|
public ModelAndView volunteerMenu(){
|
||||||
|
return new ModelAndView("index/configmenu");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ApiOperation(value = "活动系统", notes = "活动系统")
|
||||||
|
@GetMapping("culturalactivity")
|
||||||
|
public ModelAndView culturalactivityMenu(){
|
||||||
|
return new ModelAndView("index/configmenu");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ApiOperation(value = "展览系统", notes = "展览系统")
|
||||||
|
@GetMapping("show")
|
||||||
|
public ModelAndView showMenu(){
|
||||||
|
return new ModelAndView("index/configmenu");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ApiOperation(value = "场馆系统", notes = "场馆系统")
|
||||||
|
@GetMapping("venuebooking")
|
||||||
|
public ModelAndView venuebookingMenu(){
|
||||||
|
return new ModelAndView("index/configmenu");
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "非遗数据库", notes = "非遗数据库")
|
||||||
|
@GetMapping("library")
|
||||||
|
public ModelAndView libraryMenu(){
|
||||||
return new ModelAndView("index/configmenu");
|
return new ModelAndView("index/configmenu");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -57,6 +85,11 @@ public class TopMenuBaseController {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@ import ink.wgink.exceptions.RemoveException;
|
|||||||
import ink.wgink.exceptions.SearchException;
|
import ink.wgink.exceptions.SearchException;
|
||||||
import ink.wgink.interfaces.consts.ISystemConstant;
|
import ink.wgink.interfaces.consts.ISystemConstant;
|
||||||
import ink.wgink.pojo.ListPage;
|
import ink.wgink.pojo.ListPage;
|
||||||
|
import ink.wgink.pojo.bos.UserInfoBO;
|
||||||
import ink.wgink.pojo.dtos.CurrentUserIdInfoDTO;
|
import ink.wgink.pojo.dtos.CurrentUserIdInfoDTO;
|
||||||
import ink.wgink.pojo.result.ErrorResult;
|
import ink.wgink.pojo.result.ErrorResult;
|
||||||
import ink.wgink.pojo.result.SuccessResult;
|
import ink.wgink.pojo.result.SuccessResult;
|
||||||
@ -138,5 +139,13 @@ public class ShowTemplateController extends DefaultBaseController {
|
|||||||
return showTemplateService.countShowTemplate(params);
|
return showTemplateService.countShowTemplate(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "当前用户id信息", notes = "当前用户id信息接口")
|
||||||
|
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||||
|
@GetMapping("getcurrentuseridinfo")
|
||||||
|
public UserInfoBO getCurrentUserIdInfo() {
|
||||||
|
return securityComponent.getCurrentUser();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
@ -11,6 +11,7 @@ import ink.wgink.exceptions.RemoveException;
|
|||||||
import ink.wgink.exceptions.SearchException;
|
import ink.wgink.exceptions.SearchException;
|
||||||
import ink.wgink.interfaces.consts.ISystemConstant;
|
import ink.wgink.interfaces.consts.ISystemConstant;
|
||||||
import ink.wgink.pojo.ListPage;
|
import ink.wgink.pojo.ListPage;
|
||||||
|
import ink.wgink.pojo.bos.UserInfoBO;
|
||||||
import ink.wgink.pojo.dtos.CurrentUserIdInfoDTO;
|
import ink.wgink.pojo.dtos.CurrentUserIdInfoDTO;
|
||||||
import ink.wgink.pojo.result.ErrorResult;
|
import ink.wgink.pojo.result.ErrorResult;
|
||||||
import ink.wgink.pojo.result.SuccessResult;
|
import ink.wgink.pojo.result.SuccessResult;
|
||||||
@ -122,4 +123,12 @@ public class VolunteerServiceController extends DefaultBaseController {
|
|||||||
return volunteerServiceService.joinservice(params);
|
return volunteerServiceService.joinservice(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "当前用户id信息", notes = "当前用户id信息接口")
|
||||||
|
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||||
|
@GetMapping("getcurrentuseridinfo")
|
||||||
|
public UserInfoBO getCurrentUserIdInfo() {
|
||||||
|
return securityComponent.getCurrentUser();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
@ -100,3 +100,10 @@ logging:
|
|||||||
org.springframework.data.mongodb: info
|
org.springframework.data.mongodb: info
|
||||||
org.springframework.boot.autoconfigure.security.servlet: debug
|
org.springframework.boot.autoconfigure.security.servlet: debug
|
||||||
ink.wgink: debug
|
ink.wgink: debug
|
||||||
|
|
||||||
|
|
||||||
|
# 新闻系统-智慧网闸配置
|
||||||
|
net-management:
|
||||||
|
config-path: D:\\net_manager_libs\\
|
||||||
|
so-path: D:\\net_manager_libs\\
|
||||||
|
|
||||||
|
@ -169,8 +169,8 @@
|
|||||||
t1.library_open_date,
|
t1.library_open_date,
|
||||||
t1.library_number,
|
t1.library_number,
|
||||||
t1.library_cover,
|
t1.library_cover,
|
||||||
t3.dictionary_name AS libraryTypeValue,
|
t3.data_name AS libraryTypeValue,
|
||||||
t4.dictionary_name AS libraryOpenDateValue
|
t4.data_name AS libraryOpenDateValue
|
||||||
FROM
|
FROM
|
||||||
gen_intangible_library t1
|
gen_intangible_library t1
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
@ -178,13 +178,13 @@
|
|||||||
ON
|
ON
|
||||||
t1.library_directories_id = t2.intangible_directories_id
|
t1.library_directories_id = t2.intangible_directories_id
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
data_dictionary t3
|
data_data t3
|
||||||
ON
|
ON
|
||||||
t1.library_type = t3.dictionary_id
|
t1.library_type = t3.data_id
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
data_dictionary t4
|
data_data t4
|
||||||
ON
|
ON
|
||||||
t4.dictionary_id = t1.library_open_date
|
t4.data_id = t1.library_open_date
|
||||||
WHERE
|
WHERE
|
||||||
t1.is_delete = 0
|
t1.is_delete = 0
|
||||||
<if test="intangibleLibraryId != null and intangibleLibraryId != ''">
|
<if test="intangibleLibraryId != null and intangibleLibraryId != ''">
|
||||||
@ -214,8 +214,8 @@
|
|||||||
t1.library_open_date,
|
t1.library_open_date,
|
||||||
t1.library_number,
|
t1.library_number,
|
||||||
t2.directories_name AS directories_name,
|
t2.directories_name AS directories_name,
|
||||||
t4.dictionary_name AS libraryOpenDateValue,
|
t4.data_name AS libraryOpenDateValue,
|
||||||
t5.dictionary_name AS libraryTypeValue
|
t5.data_name AS libraryTypeValue
|
||||||
FROM
|
FROM
|
||||||
gen_intangible_library t1
|
gen_intangible_library t1
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
@ -223,13 +223,13 @@
|
|||||||
ON
|
ON
|
||||||
t1.library_directories_id = t2.intangible_directories_id
|
t1.library_directories_id = t2.intangible_directories_id
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
data_dictionary t4
|
data_data t4
|
||||||
ON
|
ON
|
||||||
t4.dictionary_id = t1.library_open_date
|
t4.data_id = t1.library_open_date
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
data_dictionary t5
|
data_data t5
|
||||||
ON
|
ON
|
||||||
t5.dictionary_id = t1.library_type
|
t5.data_id = t1.library_type
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
data_area t6
|
data_area t6
|
||||||
ON
|
ON
|
||||||
|
@ -136,9 +136,9 @@
|
|||||||
t1.library_person_birthday,
|
t1.library_person_birthday,
|
||||||
t1.library_person_nation,
|
t1.library_person_nation,
|
||||||
t1.library_person_number,
|
t1.library_person_number,
|
||||||
GROUP_CONCAT(DISTINCT dt1.dictionary_name) library_person_nation_dictionary_name,
|
GROUP_CONCAT(DISTINCT dt1.data_name) library_person_nation_dictionary_name,
|
||||||
t1.library_person_sex,
|
t1.library_person_sex,
|
||||||
GROUP_CONCAT(DISTINCT dt2.dictionary_name) library_person_sex_dictionary_name,
|
GROUP_CONCAT(DISTINCT dt2.data_name) library_person_sex_dictionary_name,
|
||||||
t1.library_person_address,
|
t1.library_person_address,
|
||||||
t1.library_person_identity,
|
t1.library_person_identity,
|
||||||
t1.intangible_library_person_id
|
t1.intangible_library_person_id
|
||||||
@ -151,15 +151,15 @@
|
|||||||
AND
|
AND
|
||||||
jt1.is_delete = 0
|
jt1.is_delete = 0
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
data_dictionary dt1
|
data_data dt1
|
||||||
ON
|
ON
|
||||||
FIND_IN_SET(dt1.dictionary_id, t1.library_person_nation)
|
FIND_IN_SET(dt1.data_id, t1.library_person_nation)
|
||||||
AND
|
AND
|
||||||
dt1.is_delete = 0
|
dt1.is_delete = 0
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
data_dictionary dt2
|
data_data dt2
|
||||||
ON
|
ON
|
||||||
FIND_IN_SET(dt2.dictionary_id, t1.library_person_sex)
|
FIND_IN_SET(dt2.data_id, t1.library_person_sex)
|
||||||
AND
|
AND
|
||||||
dt2.is_delete = 0
|
dt2.is_delete = 0
|
||||||
WHERE
|
WHERE
|
||||||
|
@ -165,13 +165,13 @@
|
|||||||
t1.facilities,
|
t1.facilities,
|
||||||
t1.venues_project_id,
|
t1.venues_project_id,
|
||||||
t2.venue_name,
|
t2.venue_name,
|
||||||
t3.dictionary_name projectCategoryName,
|
t3.data_name projectCategoryName,
|
||||||
GROUP_CONCAT(t4.dictionary_name) facilitiesNames
|
GROUP_CONCAT(t4.data_name) facilitiesNames
|
||||||
FROM
|
FROM
|
||||||
gen_venues_project t1
|
gen_venues_project t1
|
||||||
LEFT JOIN gen_venues_info t2 ON t2.venues_info_id = t1.venue_id
|
LEFT JOIN gen_venues_info t2 ON t2.venues_info_id = t1.venue_id
|
||||||
LEFT JOIN data_dictionary t3 ON t3.dictionary_id = t1.project_category
|
LEFT JOIN data_data t3 ON t3.data_id = t1.project_category
|
||||||
LEFT JOIN data_dictionary t4 ON FIND_IN_SET(t4.dictionary_id,t1.facilities)
|
LEFT JOIN data_data t4 ON FIND_IN_SET(t4.data_id,t1.facilities)
|
||||||
WHERE
|
WHERE
|
||||||
t1.is_delete = 0
|
t1.is_delete = 0
|
||||||
<if test="venuesInfoId != null and venuesInfoId != ''">
|
<if test="venuesInfoId != null and venuesInfoId != ''">
|
||||||
@ -217,10 +217,10 @@
|
|||||||
t1.project_category,
|
t1.project_category,
|
||||||
t1.business_hours,
|
t1.business_hours,
|
||||||
t1.project_description,
|
t1.project_description,
|
||||||
GROUP_CONCAT(t2.dictionary_name) facilities
|
GROUP_CONCAT(t2.data_name) facilities
|
||||||
FROM
|
FROM
|
||||||
gen_venues_project t1
|
gen_venues_project t1
|
||||||
LEFT JOIN data_dictionary t2 ON FIND_IN_SET(t2.dictionary_id,t1.facilities)
|
LEFT JOIN data_data t2 ON FIND_IN_SET(t2.data_id,t1.facilities)
|
||||||
WHERE
|
WHERE
|
||||||
t1.is_delete = 0
|
t1.is_delete = 0
|
||||||
AND t1.venues_project_id = #{venuesProjectId}
|
AND t1.venues_project_id = #{venuesProjectId}
|
||||||
@ -236,10 +236,10 @@
|
|||||||
SELECT
|
SELECT
|
||||||
t1.venues_project_id,
|
t1.venues_project_id,
|
||||||
t1.project_category,
|
t1.project_category,
|
||||||
t2.dictionary_name projectName
|
t2.data_name projectName
|
||||||
FROM
|
FROM
|
||||||
gen_venues_project t1
|
gen_venues_project t1
|
||||||
LEFT JOIN data_dictionary t2 ON t1.project_category = t2.dictionary_id
|
LEFT JOIN data_data t2 ON t1.project_category = t2.data_id
|
||||||
WHERE
|
WHERE
|
||||||
t1.is_delete = 0
|
t1.is_delete = 0
|
||||||
<if test="venuesInfoId != null and venuesInfoId != ''">
|
<if test="venuesInfoId != null and venuesInfoId != ''">
|
||||||
@ -256,11 +256,11 @@
|
|||||||
t2.dictionary_name project_name,
|
t2.dictionary_name project_name,
|
||||||
t1.business_hours,
|
t1.business_hours,
|
||||||
t1.project_description,
|
t1.project_description,
|
||||||
GROUP_CONCAT(t3.dictionary_name) facilities
|
GROUP_CONCAT(t3.data_name) facilities
|
||||||
FROM
|
FROM
|
||||||
gen_venues_project t1
|
gen_venues_project t1
|
||||||
LEFT JOIN data_dictionary t2 ON t1.project_category = t2.dictionary_id
|
LEFT JOIN data_data t2 ON t1.project_category = t2.data_id
|
||||||
LEFT JOIN data_dictionary t3 ON FIND_IN_SET(t3.dictionary_id,t1.facilities)
|
LEFT JOIN data_data t3 ON FIND_IN_SET(t3.data_id,t1.facilities)
|
||||||
WHERE
|
WHERE
|
||||||
t1.is_delete = 0
|
t1.is_delete = 0
|
||||||
<if test="venuesInfoId != null and venuesInfoId != ''">
|
<if test="venuesInfoId != null and venuesInfoId != ''">
|
||||||
|
@ -172,12 +172,12 @@
|
|||||||
promise,
|
promise,
|
||||||
remark,
|
remark,
|
||||||
t1.user_id,
|
t1.user_id,
|
||||||
dict1.dictionary_name service_type_name,
|
dict1.data_name service_type_name,
|
||||||
dict2.dictionary_name occupation_name
|
dict2.data_name occupation_name
|
||||||
FROM
|
FROM
|
||||||
gen_volunteer t1
|
gen_volunteer t1
|
||||||
LEFT JOIN data_dictionary dict1 ON t1.service_type = dict1.dictionary_id
|
LEFT JOIN data_data dict1 ON t1.service_type = dict1.data_id
|
||||||
LEFT JOIN data_dictionary dict2 ON t1.occupation = dict2.dictionary_id
|
LEFT JOIN data_data dict2 ON t1.occupation = dict2.data_id
|
||||||
WHERE
|
WHERE
|
||||||
t1.is_delete = 0
|
t1.is_delete = 0
|
||||||
<if test="volunteerId != null and volunteerId != ''">
|
<if test="volunteerId != null and volunteerId != ''">
|
||||||
@ -206,14 +206,14 @@
|
|||||||
cv,
|
cv,
|
||||||
promise,
|
promise,
|
||||||
remark,
|
remark,
|
||||||
t2.dictionary_name AS service_type,
|
t2.data_name AS service_type,
|
||||||
t3.dictionary_name AS service_county,
|
t3.data_name AS service_county,
|
||||||
t4.dictionary_name AS service_city
|
t4.data_name AS service_city
|
||||||
FROM
|
FROM
|
||||||
gen_volunteer t1
|
gen_volunteer t1
|
||||||
LEFT JOIN data_dictionary t2 ON t1.service_type = t2.dictionary_id
|
LEFT JOIN data_data t2 ON t1.service_type = t2.data_id
|
||||||
LEFT JOIN data_dictionary t3 ON t1.service_county = t3.dictionary_id
|
LEFT JOIN data_data t3 ON t1.service_county = t3.data_id
|
||||||
LEFT JOIN data_dictionary t4 ON t1.service_city = t4.dictionary_id
|
LEFT JOIN data_data t4 ON t1.service_city = t4.data_id
|
||||||
WHERE
|
WHERE
|
||||||
t1.is_delete = 0
|
t1.is_delete = 0
|
||||||
<if test="keywords != null and keywords != ''">
|
<if test="keywords != null and keywords != ''">
|
||||||
|
2
src/main/resources/static/assets/js/vendor/sortable/Sortable.min.js
vendored
Normal file
2
src/main/resources/static/assets/js/vendor/sortable/Sortable.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
4
src/main/resources/static/assets/js/vendor/sortable/jquery.min.js
vendored
Normal file
4
src/main/resources/static/assets/js/vendor/sortable/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
69
src/main/resources/static/assets/js/vendor/sortable/moduleSet.js
vendored
Normal file
69
src/main/resources/static/assets/js/vendor/sortable/moduleSet.js
vendored
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
$.fn.moduleSet = function(opt){
|
||||||
|
var setting = {
|
||||||
|
button:[
|
||||||
|
{text:'编辑',callback:function(){},iconfont:''},
|
||||||
|
{text:'美化',callback:function(){},iconfont:''},
|
||||||
|
{text:'删除',callback:function(){},iconfont:''},
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|
||||||
|
var options = $.extend({},setting,opt);
|
||||||
|
var M = {};
|
||||||
|
|
||||||
|
var _this = this;
|
||||||
|
|
||||||
|
// 初始化
|
||||||
|
M.init = function(){
|
||||||
|
$(_this).css('position','relative');
|
||||||
|
M.createStyle();
|
||||||
|
M.createElem(function(){
|
||||||
|
M.initShowModule();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 显示方法
|
||||||
|
M.initShowModule = function(){
|
||||||
|
$(_this).mouseenter(function(){
|
||||||
|
$(_this).find('.panel-module-box').fadeIn(200);
|
||||||
|
}).mouseleave(function(){
|
||||||
|
$(_this).find('.panel-module-box').fadeOut(100);
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 创建样式
|
||||||
|
M.createStyle = function(){
|
||||||
|
|
||||||
|
if($('#panel-style').length > 0) return;
|
||||||
|
var style = '<style id="panel-style">.panel-module-box{display:none;}.panel-module-mask{ position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; top: 0; background: ' + options.background + '; opacity: .7; border: 2px dashed #fff; cursor: move; } .panel-module-handle{ position: absolute; left:0; top:0; z-index: 2; } .handle-btn{ cursor: pointer; padding:7px 20px; border:1px solid #eee; background-color: #fff; border-right:0; } .handle-btn:hover{ background-color: #f1f3f5; } .handle-btn:last-child{ border-right:1px solid #eee; }</style>';
|
||||||
|
|
||||||
|
$($('head')[0]).append(style);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// 创建elem
|
||||||
|
M.createElem = function(callback){
|
||||||
|
if($(_this).find('.panel-module-handle').length > 0) return;
|
||||||
|
|
||||||
|
var btnGroup = '';
|
||||||
|
for(var i = 0; i < options.button.length; i++){
|
||||||
|
btnGroup += '<button class="handle-btn" value="' + options.button[i].value +'"><i class="fa fa-lg ' + options.button[i].iconfont + '"></i>'+options.button[i].text+'</button>';
|
||||||
|
// 绑定事件
|
||||||
|
M.createEvent(i);
|
||||||
|
|
||||||
|
}
|
||||||
|
var elem = '<div class="panel-module-box"><div class="panel-module-mask"></div><div class="panel-module-handle">'+btnGroup+'</div></div>';
|
||||||
|
$(_this).append(elem);
|
||||||
|
// 创建后回调
|
||||||
|
callback && typeof(callback) == 'function' && callback(this);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// 创建事件
|
||||||
|
M.createEvent = function(index){
|
||||||
|
$(_this).delegate('button:eq('+index+')','click',function(){
|
||||||
|
!!options.button[index].callback && typeof(options.button[index].callback) == 'function' && options.button[index].callback(this);
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
M.init();
|
||||||
|
}
|
9404
src/main/resources/static/assets/js/vendor/wangEditor/jquery-1.7.2.js
vendored
Normal file
9404
src/main/resources/static/assets/js/vendor/wangEditor/jquery-1.7.2.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
@ -6,15 +6,15 @@
|
|||||||
<meta name="renderer" content="webkit">
|
<meta name="renderer" content="webkit">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
||||||
<link rel="stylesheet" href="assets/template/bootstrap.css" />
|
<link rel="stylesheet" href="assets/js/vendor/template/bootstrap.css" />
|
||||||
<!-- 代码编辑器 -->
|
<!-- 代码编辑器 -->
|
||||||
<script src="assets/template/jquery.min.js"></script>
|
<script src="assets/js/vendor/template/jquery.min.js"></script>
|
||||||
<script src="assets/template/jstorage.min.js"></script>
|
<script src="assets/js/vendor/template/jstorage.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
var codetype="php";
|
var codetype="php";
|
||||||
var unid="59396e99ae344";
|
var unid="59396e99ae344";
|
||||||
</script>
|
</script>
|
||||||
<script src="assets/template/runcode.js"></script>
|
<script src="assets/js/vendor/template/runcode.js"></script>
|
||||||
<style type="text/css" media="screen">
|
<style type="text/css" media="screen">
|
||||||
#editor {
|
#editor {
|
||||||
//position: absolute;
|
//position: absolute;
|
||||||
@ -62,7 +62,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- /.main-container -->
|
<!-- /.main-container -->
|
||||||
<!-- 页面底部js¨ -->
|
<!-- 页面底部js¨ -->
|
||||||
<script src="assets/template/ace.js" type="text/javascript" charset="utf-8"></script>
|
<script src="assets/js/vendor/template/ace.js" type="text/javascript" charset="utf-8"></script>
|
||||||
<!--提示框-->
|
<!--提示框-->
|
||||||
<script src="assets/layuiadmin/layui/layui.js"></script>
|
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
@ -6,15 +6,15 @@
|
|||||||
<meta name="renderer" content="webkit">
|
<meta name="renderer" content="webkit">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
||||||
<link rel="stylesheet" href="assets/template/bootstrap.css" />
|
<link rel="stylesheet" href="assets/js/vendor/template/bootstrap.css" />
|
||||||
<!-- 代码编辑器 -->
|
<!-- 代码编辑器 -->
|
||||||
<script src="assets/template/jquery.min.js"></script>
|
<script src="assets/js/vendor/template/jquery.min.js"></script>
|
||||||
<script src="assets/template/jstorage.min.js"></script>
|
<script src="assets/js/vendor/template/jstorage.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
var codetype="php";
|
var codetype="php";
|
||||||
var unid="59396e99ae344";
|
var unid="59396e99ae344";
|
||||||
</script>
|
</script>
|
||||||
<script src="assets/template/runcode.js"></script>
|
<script src="assets/js/vendor/template/runcode.js"></script>
|
||||||
<style type="text/css" media="screen">
|
<style type="text/css" media="screen">
|
||||||
#editor {
|
#editor {
|
||||||
//position: absolute;
|
//position: absolute;
|
||||||
@ -62,7 +62,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- /.main-container -->
|
<!-- /.main-container -->
|
||||||
<!-- 页面底部js¨ -->
|
<!-- 页面底部js¨ -->
|
||||||
<script src="assets/template/ace.js" type="text/javascript" charset="utf-8"></script>
|
<script src="assets/js/vendor/template/ace.js" type="text/javascript" charset="utf-8"></script>
|
||||||
<!--提示框-->
|
<!--提示框-->
|
||||||
<script src="assets/layuiadmin/layui/layui.js"></script>
|
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
@ -6,15 +6,15 @@
|
|||||||
<meta name="renderer" content="webkit">
|
<meta name="renderer" content="webkit">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
||||||
<link rel="stylesheet" href="assets/template/bootstrap.css" />
|
<link rel="stylesheet" href="assets/js/vendor/template/bootstrap.css" />
|
||||||
<!-- 代码编辑器 -->
|
<!-- 代码编辑器 -->
|
||||||
<script src="assets/template/jquery.min.js"></script>
|
<script src="assets/js/vendor/template/jquery.min.js"></script>
|
||||||
<script src="assets/template/jstorage.min.js"></script>
|
<script src="assets/js/vendor/template/jstorage.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
var codetype="php";
|
var codetype="php";
|
||||||
var unid="59396e99ae344";
|
var unid="59396e99ae344";
|
||||||
</script>
|
</script>
|
||||||
<script src="assets/template/runcode.js"></script>
|
<script src="assets/js/vendor/template/runcode.js"></script>
|
||||||
<style type="text/css" media="screen">
|
<style type="text/css" media="screen">
|
||||||
#editor {
|
#editor {
|
||||||
//position: absolute;
|
//position: absolute;
|
||||||
@ -63,7 +63,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- /.main-container -->
|
<!-- /.main-container -->
|
||||||
<!-- 页面底部js¨ -->
|
<!-- 页面底部js¨ -->
|
||||||
<script src="assets/template/ace.js" type="text/javascript" charset="utf-8"></script>
|
<script src="assets/js/vendor/template/ace.js" type="text/javascript" charset="utf-8"></script>
|
||||||
<!--提示框-->
|
<!--提示框-->
|
||||||
<script src="assets/layuiadmin/layui/layui.js"></script>
|
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
@ -123,7 +123,6 @@
|
|||||||
]],
|
]],
|
||||||
page: true,
|
page: true,
|
||||||
parseData: function(data) {
|
parseData: function(data) {
|
||||||
debugger
|
|
||||||
return {
|
return {
|
||||||
'code': 0,
|
'code': 0,
|
||||||
'msg': '',
|
'msg': '',
|
||||||
|
213
src/main/resources/templates/news/index/index.html
Normal file
213
src/main/resources/templates/news/index/index.html
Normal file
@ -0,0 +1,213 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en" xmlns:th="http://www.thymeleaf.org">
|
||||||
|
<head>
|
||||||
|
<base th:href="${#request.getContextPath() + '/'} ">
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="renderer" content="webkit">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
||||||
|
<link rel="stylesheet" href="assets/fonts/font-awesome/css/font-awesome.css"/>
|
||||||
|
<link rel="stylesheet" href="assets/layuiadmin/layui/css/layui.css" media="all">
|
||||||
|
<link rel="stylesheet" href="assets/layuiadmin/style/admin.css" media="all">
|
||||||
|
<!-- <style>
|
||||||
|
.layui-card-header {height: 36px; line-height: 36px;}
|
||||||
|
.layuiadmin-card-list p.layuiadmin-big-font {font-size: 25px;line-height: 25px;padding: 0px;}
|
||||||
|
</style>-->
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="LAY-app" class="layui-fluid">
|
||||||
|
<div class="layui-row layui-col-space15">
|
||||||
|
<div class="layui-col-sm6 layui-col-md3">
|
||||||
|
<div class="layui-card">
|
||||||
|
<div class="layui-card-header">
|
||||||
|
文章新闻
|
||||||
|
</div>
|
||||||
|
<div class="layui-card-body layuiadmin-card-list">
|
||||||
|
<p id="textCount" class="layuiadmin-big-font">0</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-col-sm6 layui-col-md3">
|
||||||
|
<div class="layui-card">
|
||||||
|
<div class="layui-card-header">
|
||||||
|
图文新闻
|
||||||
|
</div>
|
||||||
|
<div class="layui-card-body layuiadmin-card-list">
|
||||||
|
<p id="imageCount" class="layuiadmin-big-font">0</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-col-sm6 layui-col-md3">
|
||||||
|
<div class="layui-card">
|
||||||
|
<div class="layui-card-header">
|
||||||
|
音频新闻
|
||||||
|
</div>
|
||||||
|
<div class="layui-card-body layuiadmin-card-list">
|
||||||
|
<p id="audioCount" class="layuiadmin-big-font">0</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-col-sm6 layui-col-md3">
|
||||||
|
<div class="layui-card">
|
||||||
|
<div class="layui-card-header">
|
||||||
|
视频新闻
|
||||||
|
</div>
|
||||||
|
<div class="layui-card-body layuiadmin-card-list">
|
||||||
|
<p id="videoCount" class="layuiadmin-big-font">0</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-row layui-col-space15">
|
||||||
|
<div class="layui-col-sm6 layui-col-md3">
|
||||||
|
<div class="layui-card">
|
||||||
|
<div class="layui-card-header">
|
||||||
|
文章新闻访问量
|
||||||
|
</div>
|
||||||
|
<div class="layui-card-body layuiadmin-card-list">
|
||||||
|
<p id="textCountClick" class="layuiadmin-big-font">0</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-col-sm6 layui-col-md3">
|
||||||
|
<div class="layui-card">
|
||||||
|
<div class="layui-card-header">
|
||||||
|
图文新闻访问量
|
||||||
|
</div>
|
||||||
|
<div class="layui-card-body layuiadmin-card-list">
|
||||||
|
<p id="imageCountClick" class="layuiadmin-big-font">0</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-col-sm6 layui-col-md3">
|
||||||
|
<div class="layui-card">
|
||||||
|
<div class="layui-card-header">
|
||||||
|
音频新闻访问量
|
||||||
|
</div>
|
||||||
|
<div class="layui-card-body layuiadmin-card-list">
|
||||||
|
<p id="audioCountClick" class="layuiadmin-big-font">0</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-col-sm6 layui-col-md3">
|
||||||
|
<div class="layui-card">
|
||||||
|
<div class="layui-card-header">
|
||||||
|
视频新闻访问量
|
||||||
|
</div>
|
||||||
|
<div class="layui-card-body layuiadmin-card-list">
|
||||||
|
<p id="videoCountClick" class="layuiadmin-big-font">0</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript" src="assets/js/vue.min.js"></script>
|
||||||
|
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||||
|
<script>
|
||||||
|
layui.config({
|
||||||
|
base: 'assets/layuiadmin/' //静态资源所在路径
|
||||||
|
}).extend({
|
||||||
|
index: 'lib/index' //主入口模块
|
||||||
|
}).use(['index', 'animate-numbers', 'table', 'form'], function() {
|
||||||
|
var $ = layui.$;
|
||||||
|
var $win = $(window);
|
||||||
|
var form = layui.form;
|
||||||
|
var table = layui.table;
|
||||||
|
new Vue({
|
||||||
|
el: '#LAY-app',
|
||||||
|
data: {
|
||||||
|
publishCount: 0,
|
||||||
|
unPublishCount: 0,
|
||||||
|
formCount: 0,
|
||||||
|
joinCount: 0
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
textCount: function() {
|
||||||
|
var self = this;
|
||||||
|
top.restAjax.get('app/newscontent/countnewscontentrelease?newsContentType=1', {}, null, function(code, data) {
|
||||||
|
self.publishCount = data.data;
|
||||||
|
self.$nextTick(function() {
|
||||||
|
$('#textCount').animateNumbers(self.publishCount);
|
||||||
|
});
|
||||||
|
}, function(code, data) {
|
||||||
|
top.dialog.msg(data.msg);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
imageCount: function() {
|
||||||
|
var self = this;
|
||||||
|
top.restAjax.get('app/newscontent/countnewscontentrelease?newsContentType=2', {}, null, function(code, data) {
|
||||||
|
self.unPublishCount = data.data;
|
||||||
|
self.$nextTick(function() {
|
||||||
|
$('#imageCount').animateNumbers(self.unPublishCount);
|
||||||
|
});
|
||||||
|
}, function(code, data) {
|
||||||
|
top.dialog.msg(data.msg);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
audioCount: function() {
|
||||||
|
var self = this;
|
||||||
|
top.restAjax.get('app/newscontent/countnewscontentrelease?newsContentType=3', {}, null, function(code, data) {
|
||||||
|
self.unPublishCount = data.data;
|
||||||
|
self.$nextTick(function() {
|
||||||
|
$('#audioCount').animateNumbers(self.unPublishCount);
|
||||||
|
});
|
||||||
|
}, function(code, data) {
|
||||||
|
top.dialog.msg(data.msg);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
videoCount: function() {
|
||||||
|
var self = this;
|
||||||
|
top.restAjax.get('app/newscontent/countnewscontentrelease?newsContentType=4', {}, null, function(code, data) {
|
||||||
|
self.unPublishCount = data.data;
|
||||||
|
self.$nextTick(function() {
|
||||||
|
$('#videoCount').animateNumbers(self.unPublishCount);
|
||||||
|
});
|
||||||
|
}, function(code, data) {
|
||||||
|
top.dialog.msg(data.msg);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
textCountClick: function() {
|
||||||
|
top.restAjax.get('http://www.wlcbsyzl.cn/systemetl/app/datacensus/sqlrelease/NEWS0002?type=text', {}, null, function(code, data) {
|
||||||
|
$('#textCountClick').animateNumbers(data.dataList[0].count);
|
||||||
|
}, function(code, data) {
|
||||||
|
top.dialog.msg(data.msg);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
imageCountClick: function() {
|
||||||
|
top.restAjax.get('http://www.wlcbsyzl.cn/systemetl/app/datacensus/sqlrelease/NEWS0002?type=image', {}, null, function(code, data) {
|
||||||
|
$('#imageCountClick').animateNumbers(data.dataList[0].count);
|
||||||
|
}, function(code, data) {
|
||||||
|
top.dialog.msg(data.msg);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
audioCountClick: function() {
|
||||||
|
top.restAjax.get('http://www.wlcbsyzl.cn/systemetl/app/datacensus/sqlrelease/NEWS0002?type=audio', {}, null, function(code, data) {
|
||||||
|
$('#audioCountClick').animateNumbers(data.dataList[0].count);
|
||||||
|
}, function(code, data) {
|
||||||
|
top.dialog.msg(data.msg);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
videoCountClick: function() {
|
||||||
|
top.restAjax.get('http://www.wlcbsyzl.cn/systemetl/app/datacensus/sqlrelease/NEWS0002?type=video', {}, null, function(code, data) {
|
||||||
|
$('#videoCountClick').animateNumbers(data.dataList[0].count);
|
||||||
|
}, function(code, data) {
|
||||||
|
top.dialog.msg(data.msg);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted: function() {
|
||||||
|
var self = this;
|
||||||
|
self.textCount();
|
||||||
|
self.imageCount();
|
||||||
|
self.audioCount();
|
||||||
|
self.videoCount();
|
||||||
|
self.textCountClick();
|
||||||
|
self.imageCountClick();
|
||||||
|
self.audioCountClick();
|
||||||
|
self.videoCountClick();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue
Block a user