...
This commit is contained in:
parent
a3d5b1656f
commit
5d12a2b284
@ -81,11 +81,21 @@ public class ContentController extends BaseController {
|
|||||||
return "content/application";
|
return "content/application";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 案例统计列表
|
||||||
|
* @param model
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
@GetMapping("/index-census")
|
@GetMapping("/index-census")
|
||||||
public String census(Model model){
|
public String census(Model model){
|
||||||
return "content/census";
|
return "content/census";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/index-logger")
|
||||||
|
public String logger(Model model){
|
||||||
|
return "content-logger/list";
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* i技术开发案例页面
|
* i技术开发案例页面
|
||||||
* @param model
|
* @param model
|
||||||
|
|||||||
@ -186,14 +186,14 @@
|
|||||||
var delFlag = "[[${@perms.hasPerm('cases-h5')}]]";
|
var delFlag = "[[${@perms.hasPerm('cases-h5')}]]";
|
||||||
var columns = [
|
var columns = [
|
||||||
{checkbox: true },
|
{checkbox: true },
|
||||||
{field: 'id', title: '案例编号', align : "center", width: "50"},
|
{field: 'id', title: '案例编号', align : "center"},
|
||||||
{field: 'title', title: '标题', align : "center", width: "155"},
|
//{field: 'title', title: '标题', align : "center", width: "155"},
|
||||||
/* {field: 'title', title: '标题', align : "left", width: "25%", formatter: function(value, row, index) {
|
{field: 'title', title: '标题', align : "center", formatter: function(value, row, index) {
|
||||||
if(value!=null && $.trim(value)!='' && value.length>25){
|
if(value!=null && $.trim(value)!='' && value.length>25){
|
||||||
value = value.substring(0, 25)+' ......';
|
value = value.substring(0, 25)+' ......';
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
}},*/
|
}},
|
||||||
{field: 'status', title: '状态', align : "center", width: "60", formatter:function(value,row, index){
|
{field: 'status', title: '状态', align : "center", width: "60", formatter:function(value,row, index){
|
||||||
if(row.status === 1){
|
if(row.status === 1){
|
||||||
return "待审核";
|
return "待审核";
|
||||||
@ -208,11 +208,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}},
|
}},
|
||||||
{field: 'visibility', title: '可见性', align : "center", width: "60", formatter:function(value,row, index){
|
{field: 'visibility', title: '可见性', align : "center", formatter:function(value,row, index){
|
||||||
return row.visibility === 1 ? "可见" : "不可见";
|
return row.visibility === 1 ? "可见" : "不可见";
|
||||||
}},
|
}},
|
||||||
{field: 'labelFeedback', title: '索引标签反馈次数', align : "center", width: "50"},
|
{field: 'labelFeedback', title: '标签反馈数', align : "center"},
|
||||||
{field: 'purposeCase', title: '案例用途', align : "center", width: "60", formatter:function(value,row, index){
|
{field: 'purposeCase', title: '案例用途', align : "center", formatter:function(value,row, index){
|
||||||
for(var i = 0; i < row.tagList.length;i++){
|
for(var i = 0; i < row.tagList.length;i++){
|
||||||
if(row.tagList[i].id === 19){
|
if(row.tagList[i].id === 19){
|
||||||
return row.tagList[i].tagName;
|
return row.tagList[i].tagName;
|
||||||
@ -220,7 +220,7 @@
|
|||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}},
|
}},
|
||||||
{field: 'formCreative', title: '创意形式', align : "center", width: "60", formatter:function(value,row, index){
|
{field: 'formCreative', title: '创意形式', align : "center", formatter:function(value,row, index){
|
||||||
for(var i = 0; i < row.tagList.length;i++){
|
for(var i = 0; i < row.tagList.length;i++){
|
||||||
if(row.tagList[i].id === 20){
|
if(row.tagList[i].id === 20){
|
||||||
return row.tagList[i].tagName;
|
return row.tagList[i].tagName;
|
||||||
@ -228,7 +228,7 @@
|
|||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}},
|
}},
|
||||||
{field: 'eventsFestival', title: '节日事件', align : "center", width: "60", formatter:function(value,row, index){
|
{field: 'eventsFestival', title: '节日事件', align : "center",formatter:function(value,row, index){
|
||||||
for(var i = 0; i < row.tagList.length;i++){
|
for(var i = 0; i < row.tagList.length;i++){
|
||||||
if(row.tagList[i].id === 21){
|
if(row.tagList[i].id === 21){
|
||||||
return row.tagList[i].tagName;
|
return row.tagList[i].tagName;
|
||||||
@ -236,7 +236,7 @@
|
|||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}},
|
}},
|
||||||
{field: 'typeCase', title: '案例类型', align : "center", width: "60", formatter:function(value,row, index){
|
{field: 'typeCase', title: '案例类型', align : "center",formatter:function(value,row, index){
|
||||||
for(var i = 0; i < row.tagList.length;i++){
|
for(var i = 0; i < row.tagList.length;i++){
|
||||||
if(row.tagList[i].id === 18){
|
if(row.tagList[i].id === 18){
|
||||||
return row.tagList[i].tagName;
|
return row.tagList[i].tagName;
|
||||||
@ -244,7 +244,7 @@
|
|||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}},
|
}},
|
||||||
{field: 'brandCompany', title: '品牌公司', align : "center", width: "60", formatter:function(value,row, index){
|
{field: 'brandCompany', title: '品牌公司', align : "center", formatter:function(value,row, index){
|
||||||
for(var i = 0; i < row.tagList.length;i++){
|
for(var i = 0; i < row.tagList.length;i++){
|
||||||
if(row.tagList[i].id === 23){
|
if(row.tagList[i].id === 23){
|
||||||
return row.tagList[i].tagName;
|
return row.tagList[i].tagName;
|
||||||
@ -252,7 +252,7 @@
|
|||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}},
|
}},
|
||||||
{field: 'advertisingAgency', title: '广告公司', align : "center", width: "60", formatter:function(value,row, index){
|
{field: 'advertisingAgency', title: '广告公司', align : "center",formatter:function(value,row, index){
|
||||||
for(var i = 0; i < row.tagList.length;i++){
|
for(var i = 0; i < row.tagList.length;i++){
|
||||||
if(row.tagList[i].id === 24){
|
if(row.tagList[i].id === 24){
|
||||||
return row.tagList[i].tagName;
|
return row.tagList[i].tagName;
|
||||||
@ -260,12 +260,12 @@
|
|||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}},
|
}},
|
||||||
{field: 'collectionNumber', title: '被收藏数', align : "center", width: "50"},
|
{field: 'collectionNumber', title: '收藏数', align : "center"},
|
||||||
{field: 'comments', title: '评论数', align : "center", width: "50"},
|
{field: 'comments', title: '评论数', align : "center"},
|
||||||
{field: 'createtime', title: '创建时间', align : "center", width: "50"},
|
{field: 'createtime', title: '创建时间', align : "center"},
|
||||||
{field: 'updatetime', title: '修改时间', align : "center", width: "50"},
|
// {field: 'updatetime', title: '修改时间', align : "center"},
|
||||||
{field: 'onlineTime', title: '上线时间', align : "center", width: "50"},
|
{field: 'onlineTime', title: '上线时间', align : "center"},
|
||||||
{field: 'position', title: '关联部门', align : "center", width: "50", formatter:function(value,row, index){
|
{field: 'position', title: '关联部门', align : "center", width: "170", formatter:function(value,row, index){
|
||||||
for(var i = 0; i < row.tagList.length;i++){
|
for(var i = 0; i < row.tagList.length;i++){
|
||||||
if(row.tagList[i].id === 26){
|
if(row.tagList[i].id === 26){
|
||||||
return row.tagList[i].tagName;
|
return row.tagList[i].tagName;
|
||||||
@ -288,7 +288,7 @@
|
|||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
}},*/
|
}},*/
|
||||||
{field : 'operation', title : '操作', align : "left", width: '450px', formatter: function(value, row, index) {
|
{field : 'operation', title : '操作', align : "center", formatter: function(value, row, index) {
|
||||||
let adoptHtml = "";
|
let adoptHtml = "";
|
||||||
let rejectHtml = "";
|
let rejectHtml = "";
|
||||||
let seeHtml = "";
|
let seeHtml = "";
|
||||||
@ -535,3 +535,4 @@
|
|||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -538,7 +538,7 @@ var caseType = [[${caseType}]];
|
|||||||
var str = $("#desct").val();
|
var str = $("#desct").val();
|
||||||
str = str.substr(str.length-1,1);
|
str = str.substr(str.length-1,1);
|
||||||
if(str === ">"){
|
if(str === ">"){
|
||||||
alert("请输入文本值!");
|
alert("请在视频或图片后面输入文本值!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -205,14 +205,14 @@
|
|||||||
var delFlag = "[[${@perms.hasPerm('cases-h5')}]]";
|
var delFlag = "[[${@perms.hasPerm('cases-h5')}]]";
|
||||||
var columns = [
|
var columns = [
|
||||||
{checkbox: true },
|
{checkbox: true },
|
||||||
{field: 'id', title: '案例编号', align : "center", width: "50"},
|
{field: 'id', title: '案例编号', align : "center"},
|
||||||
{field: 'title', title: '标题', align : "left", width: "155"},
|
//{field: 'title', title: '标题', align : "left", width: "155"},
|
||||||
/* {field: 'title', title: '标题', align : "left", width: "25%", formatter: function(value, row, index) {
|
{field: 'title', title: '标题', align : "center", formatter: function(value, row, index) {
|
||||||
if(value!=null && $.trim(value)!='' && value.length>25){
|
if(value!=null && $.trim(value)!='' && value.length>25){
|
||||||
value = value.substring(0, 25)+' ......';
|
value = value.substring(0, 25)+' ......';
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
}},*/
|
}},
|
||||||
{field: 'status', title: '状态', align : "center", width: "60", formatter:function(value,row, index){
|
{field: 'status', title: '状态', align : "center", width: "60", formatter:function(value,row, index){
|
||||||
if(row.status === 1){
|
if(row.status === 1){
|
||||||
return "待审核";
|
return "待审核";
|
||||||
@ -227,11 +227,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}},
|
}},
|
||||||
{field: 'visibility', title: '可见性', align : "center", width: "60", formatter:function(value,row, index){
|
{field: 'visibility', title: '可见性', align : "center", formatter:function(value,row, index){
|
||||||
return row.visibility === 1 ? "可见" : "不可见";
|
return row.visibility === 1 ? "可见" : "不可见";
|
||||||
}},
|
}},
|
||||||
{field: 'labelFeedback', title: '索引标签反馈次数', align : "center", width: "50"},
|
{field: 'labelFeedback', title: '标签反馈数', align : "center",formatter:function(value,row, index){
|
||||||
{field: 'purposeCase', title: '案例用途', align : "center", width: "60", formatter:function(value,row, index){
|
|
||||||
|
}},
|
||||||
|
{field: 'purposeCase', title: '案例用途', align : "center", formatter:function(value,row, index){
|
||||||
for(var i = 0; i < row.tagList.length;i++){
|
for(var i = 0; i < row.tagList.length;i++){
|
||||||
if(row.tagList[i].id === 19){
|
if(row.tagList[i].id === 19){
|
||||||
return row.tagList[i].tagName;
|
return row.tagList[i].tagName;
|
||||||
@ -239,7 +241,7 @@
|
|||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}},
|
}},
|
||||||
{field: 'formCreative', title: '创意形式', align : "center", width: "60", formatter:function(value,row, index){
|
{field: 'formCreative', title: '创意形式', align : "center", formatter:function(value,row, index){
|
||||||
for(var i = 0; i < row.tagList.length;i++){
|
for(var i = 0; i < row.tagList.length;i++){
|
||||||
if(row.tagList[i].id === 20){
|
if(row.tagList[i].id === 20){
|
||||||
return row.tagList[i].tagName;
|
return row.tagList[i].tagName;
|
||||||
@ -247,7 +249,7 @@
|
|||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}},
|
}},
|
||||||
{field: 'eventsFestival', title: '节日事件', align : "center", width: "60", formatter:function(value,row, index){
|
{field: 'eventsFestival', title: '节日事件', align : "center", formatter:function(value,row, index){
|
||||||
for(var i = 0; i < row.tagList.length;i++){
|
for(var i = 0; i < row.tagList.length;i++){
|
||||||
if(row.tagList[i].id === 21){
|
if(row.tagList[i].id === 21){
|
||||||
return row.tagList[i].tagName;
|
return row.tagList[i].tagName;
|
||||||
@ -255,7 +257,7 @@
|
|||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}},
|
}},
|
||||||
{field: 'typeCase', title: '案例类型', align : "center", width: "60", formatter:function(value,row, index){
|
{field: 'typeCase', title: '案例类型', align : "center", formatter:function(value,row, index){
|
||||||
for(var i = 0; i < row.tagList.length;i++){
|
for(var i = 0; i < row.tagList.length;i++){
|
||||||
if(row.tagList[i].id === 18){
|
if(row.tagList[i].id === 18){
|
||||||
return row.tagList[i].tagName;
|
return row.tagList[i].tagName;
|
||||||
@ -263,7 +265,7 @@
|
|||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}},
|
}},
|
||||||
{field: 'brandCompany', title: '品牌公司', align : "center", width: "60", formatter:function(value,row, index){
|
{field: 'brandCompany', title: '品牌公司', align : "center", formatter:function(value,row, index){
|
||||||
for(var i = 0; i < row.tagList.length;i++){
|
for(var i = 0; i < row.tagList.length;i++){
|
||||||
if(row.tagList[i].id === 23){
|
if(row.tagList[i].id === 23){
|
||||||
return row.tagList[i].tagName;
|
return row.tagList[i].tagName;
|
||||||
@ -271,7 +273,7 @@
|
|||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}},
|
}},
|
||||||
{field: 'advertisingAgency', title: '广告公司', align : "center", width: "60", formatter:function(value,row, index){
|
{field: 'advertisingAgency', title: '广告公司', align : "center", formatter:function(value,row, index){
|
||||||
for(var i = 0; i < row.tagList.length;i++){
|
for(var i = 0; i < row.tagList.length;i++){
|
||||||
if(row.tagList[i].id === 24){
|
if(row.tagList[i].id === 24){
|
||||||
return row.tagList[i].tagName;
|
return row.tagList[i].tagName;
|
||||||
@ -279,12 +281,12 @@
|
|||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}},
|
}},
|
||||||
{field: 'collectionNumber', title: '被收藏数', align : "center", width: "50"},
|
{field: 'collectionNumber', title: '收藏数', align : "center" },
|
||||||
{field: 'comments', title: '评论数', align : "center", width: "50"},
|
{field: 'comments', title: '评论数', align : "center" },
|
||||||
{field: 'createtime', title: '创建时间', align : "center", width: "50"},
|
{field: 'createtime', title: '创建时间', align : "center"},
|
||||||
{field: 'updatetime', title: '修改时间', align : "center", width: "50"},
|
//{field: 'updatetime', title: '修改时间', align : "center"},
|
||||||
{field: 'onlineTime', title: '上线时间', align : "center", width: "50"},
|
{field: 'onlineTime', title: '上线时间', align : "center"},
|
||||||
{field: 'position', title: '关联部门', align : "center", width: "50", formatter:function(value,row, index){
|
{field: 'position', title: '关联部门', align : "center",width:170,formatter:function(value,row, index){
|
||||||
for(var i = 0; i < row.tagList.length;i++){
|
for(var i = 0; i < row.tagList.length;i++){
|
||||||
if(row.tagList[i].id === 26){
|
if(row.tagList[i].id === 26){
|
||||||
return row.tagList[i].tagName;
|
return row.tagList[i].tagName;
|
||||||
@ -292,7 +294,7 @@
|
|||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}},
|
}},
|
||||||
{field: 'userName', title: '创建者', align : "center", width: "450"},
|
{field: 'userName', title: '创建者', align : "center"},
|
||||||
/* {field: 'title', title: '标题', align : "left", width: "25%", formatter: function(value, row, index) {
|
/* {field: 'title', title: '标题', align : "left", width: "25%", formatter: function(value, row, index) {
|
||||||
if(value!=null && $.trim(value)!='' && value.length>25){
|
if(value!=null && $.trim(value)!='' && value.length>25){
|
||||||
value = value.substring(0, 25)+' ......';
|
value = value.substring(0, 25)+' ......';
|
||||||
@ -307,7 +309,7 @@
|
|||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
}},*/
|
}},*/
|
||||||
{field : 'operation', title : '操作', align : "left", width: '450%', formatter: function(value, row, index) {
|
{field : 'operation', title : '操作', align : "center", formatter: function(value, row, index) {
|
||||||
let submitHtml = "";
|
let submitHtml = "";
|
||||||
let offlineHtml = "";
|
let offlineHtml = "";
|
||||||
let editHtml = "";
|
let editHtml = "";
|
||||||
@ -334,7 +336,7 @@
|
|||||||
seeHtml = '<a class="table-btn table-btn-info" href="javascript:void(0)" onclick="seeApplication('+row.id+',1)">查看</a>';
|
seeHtml = '<a class="table-btn table-btn-info" href="javascript:void(0)" onclick="seeApplication('+row.id+',1)">查看</a>';
|
||||||
delHtml = ' <a class="table-btn table-btn-danger" href="javascript:void(0)" onclick="deleteAction('+row.id+',1)">删除</a>';
|
delHtml = ' <a class="table-btn table-btn-danger" href="javascript:void(0)" onclick="deleteAction('+row.id+',1)">删除</a>';
|
||||||
submitHtml = '<a class="table-btn table-btn-info" href="javascript:void(0)" onclick="withdrawApplication('+row.applicationId+')">撤回</a>';
|
submitHtml = '<a class="table-btn table-btn-info" href="javascript:void(0)" onclick="withdrawApplication('+row.applicationId+')">撤回</a>';
|
||||||
}else if(row.status === 2 || row.status === 3){
|
}else if(row.status === 3){
|
||||||
/*if($("#name").val() !== 'admin'){
|
/*if($("#name").val() !== 'admin'){
|
||||||
submitHtml = '<a class="table-btn table-btn-info" href="javascript:void(0)" onclick="updateApplication('+row.id+','+row.applicationId+')">更新</a>';
|
submitHtml = '<a class="table-btn table-btn-info" href="javascript:void(0)" onclick="updateApplication('+row.id+','+row.applicationId+')">更新</a>';
|
||||||
}*/
|
}*/
|
||||||
@ -347,8 +349,8 @@
|
|||||||
offlineHtml = '<a class="table-btn table-btn-info" href="javascript:void(0)" onclick="offlineApplication('+row.id+')">下线</a>';
|
offlineHtml = '<a class="table-btn table-btn-info" href="javascript:void(0)" onclick="offlineApplication('+row.id+')">下线</a>';
|
||||||
}*/
|
}*/
|
||||||
offlineHtml = '<a class="table-btn table-btn-info" href="javascript:void(0)" onclick="offlineApplication('+row.id+')">下线</a>';
|
offlineHtml = '<a class="table-btn table-btn-info" href="javascript:void(0)" onclick="offlineApplication('+row.id+')">下线</a>';
|
||||||
|
submitHtml = '<a class="table-btn table-btn-info" href="javascript:void(0)" onclick="updateApplication('+row.id+','+row.applicationId+')">更新</a>';
|
||||||
seeHtml = '<a class="table-btn table-btn-info" href="javascript:void(0)" onclick="seeApplication('+row.id+',1)">查看</a>';
|
seeHtml = '<a class="table-btn table-btn-info" href="javascript:void(0)" onclick="seeApplication('+row.id+',1)">查看</a>';
|
||||||
delHtml = ' <a class="table-btn table-btn-danger" href="javascript:void(0)" onclick="deleteAction('+row.id+',1)">删除</a>';
|
|
||||||
}
|
}
|
||||||
/*if(row.status === 3){
|
/*if(row.status === 3){
|
||||||
delHtml = ' <a class="table-btn table-btn-danger" href="javascript:void(0)" onclick="deleteAction('+row.id+',1)">删除</a>';
|
delHtml = ' <a class="table-btn table-btn-danger" href="javascript:void(0)" onclick="deleteAction('+row.id+',1)">删除</a>';
|
||||||
@ -592,8 +594,17 @@
|
|||||||
todayBtn: true//显示今日按钮
|
todayBtn: true//显示今日按钮
|
||||||
})
|
})
|
||||||
|
|
||||||
|
/*$("#labelFeedback").on('click',function(id){
|
||||||
|
layer.open({
|
||||||
|
type: 2,
|
||||||
|
title: '用户登录',
|
||||||
|
maxmin: true,
|
||||||
|
skin: 'layui-layer-lan',
|
||||||
|
shadeClose: true, //点击遮罩关闭层
|
||||||
|
area : ['1400px' , '1280px'],
|
||||||
|
content:'http://localhost:8081/cases/console/content/index-logger'//弹框显示的url,对应的页面
|
||||||
|
});
|
||||||
|
|
||||||
|
});*/
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user