提交 0a01ec4b 编写于 作者: Skyeye云's avatar Skyeye云

【业务流程规划,内部通告,日程】拆分微服务完成

上级 e1197e17
...@@ -20,7 +20,7 @@ layui.config({ ...@@ -20,7 +20,7 @@ layui.config({
url: sysMainMation.knowlgBasePath + 'knowledgetype001', url: sysMainMation.knowlgBasePath + 'knowledgetype001',
where: getTableParams(), where: getTableParams(),
cols: [[ cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers'}, { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'name', title: '名称', width: 360 }, { field: 'name', title: '名称', width: 360 },
{ field: 'state', title: '状态', width: 80, align: 'center', templet: function (d) { { field: 'state', title: '状态', width: 80, align: 'center', templet: function (d) {
if(d.state == '3'){ if(d.state == '3'){
...@@ -37,7 +37,6 @@ layui.config({ ...@@ -37,7 +37,6 @@ layui.config({
{ field: 'lastUpdateTime', title: '最后修改时间', align: 'center', width: 150 }, { field: 'lastUpdateTime', title: '最后修改时间', align: 'center', width: 150 },
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 150, toolbar: '#tableBar'} { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 150, toolbar: '#tableBar'}
]], ]],
isPage:false,
done: function(){ done: function(){
matchingLanguage(); matchingLanguage();
} }
......
...@@ -5,11 +5,6 @@ ...@@ -5,11 +5,6 @@
<title></title> <title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" /> <link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" /> <link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
<style type="text/css">
.layui-table-view .layui-table th, .layui-table-view .layui-table td{
display: inline-block;
}
</style>
</head> </head>
<body> <body>
<div class="txtcenter" style="margin:0 auto;padding-top:10px;"> <div class="txtcenter" style="margin:0 auto;padding-top:10px;">
......
...@@ -16,7 +16,7 @@ layui.config({ ...@@ -16,7 +16,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'syseveusernotice001', url: sysMainMation.noticeBasePath + 'syseveusernotice001',
where: {}, where: {},
even: true, even: true,
page: true, page: true,
...@@ -59,7 +59,7 @@ layui.config({ ...@@ -59,7 +59,7 @@ layui.config({
function sel(data){ function sel(data){
rowId = data.id; rowId = data.id;
parentRowId = data.id; parentRowId = data.id;
AjaxPostUtil.request({url: reqBasePath + "syseveusernotice003", params:{rowId: data.id}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.noticeBasePath + "syseveusernotice003", params: {rowId: data.id}, type: 'json', callback: function (json) {
_openNewWindows({ _openNewWindows({
url: "../../tpl/index/noticeDetail.html", url: "../../tpl/index/noticeDetail.html",
title: systemLanguage["com.skyeye.detailsPageTitle"][languageType], title: systemLanguage["com.skyeye.detailsPageTitle"][languageType],
...@@ -80,7 +80,7 @@ layui.config({ ...@@ -80,7 +80,7 @@ layui.config({
$("#layui-layer-shade" + times).css({'z-index': zIndex}); $("#layui-layer-shade" + times).css({'z-index': zIndex});
}}, function (index) { }}, function (index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url: reqBasePath + "syseveusernotice004", params:{rowId: data.id}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.noticeBasePath + "syseveusernotice004", params: {rowId: data.id}, type: 'json', callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable(); loadTable();
}}); }});
...@@ -98,7 +98,7 @@ layui.config({ ...@@ -98,7 +98,7 @@ layui.config({
} }
}); });
if(!isNull(idsStr)){ if(!isNull(idsStr)){
AjaxPostUtil.request({url: reqBasePath + "syseveusernotice005", params:{rowIds: idsStr}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.noticeBasePath + "syseveusernotice005", params: {rowIds: idsStr}, type: 'json', callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
loadTable(); loadTable();
}}); }});
...@@ -122,7 +122,7 @@ layui.config({ ...@@ -122,7 +122,7 @@ layui.config({
$("#layui-layer-shade" + times).css({'z-index': zIndex}); $("#layui-layer-shade" + times).css({'z-index': zIndex});
}}, function (index) { }}, function (index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url: reqBasePath + "syseveusernotice006", params:{rowIds: idsStr}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.noticeBasePath + "syseveusernotice006", params: {rowIds: idsStr}, type: 'json', callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
loadTable(); loadTable();
}}); }});
......
...@@ -23,7 +23,7 @@ layui.config({ ...@@ -23,7 +23,7 @@ layui.config({
function initNoticeTypeId(){ function initNoticeTypeId(){
showGrid({ showGrid({
id: "noticeTypeId", id: "noticeTypeId",
url: reqBasePath + "noticetype011", url: sysMainMation.noticeBasePath + "noticetype011",
params: {}, params: {},
pagination: false, pagination: false,
template: getFileContent('tpl/template/select-option.tpl'), template: getFileContent('tpl/template/select-option.tpl'),
...@@ -37,7 +37,7 @@ layui.config({ ...@@ -37,7 +37,7 @@ layui.config({
function initSecondTypeId(){ function initSecondTypeId(){
showGrid({ showGrid({
id: "secondTypeId", id: "secondTypeId",
url: reqBasePath + "noticetype013", url: sysMainMation.noticeBasePath + "noticetype013",
params: {parentId: $("#noticeTypeId").val()}, params: {parentId: $("#noticeTypeId").val()},
pagination: false, pagination: false,
template: getFileContent('tpl/template/select-option.tpl'), template: getFileContent('tpl/template/select-option.tpl'),
...@@ -138,7 +138,7 @@ layui.config({ ...@@ -138,7 +138,7 @@ layui.config({
winui.window.msg('请填写公告内容', {icon: 2, time: 2000}); winui.window.msg('请填写公告内容', {icon: 2, time: 2000});
return false; return false;
} }
AjaxPostUtil.request({url: reqBasePath + "notice002", params: params, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.noticeBasePath + "notice002", params: params, type: 'json', callback: function (json) {
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}}); }});
......
...@@ -12,8 +12,8 @@ layui.config({ ...@@ -12,8 +12,8 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "notice012", url: sysMainMation.noticeBasePath + "notice012",
params: {rowId:parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: getFileContent('tpl/sysnotice/sysnoticedetailsTemplate.tpl'), template: getFileContent('tpl/sysnotice/sysnoticedetailsTemplate.tpl'),
ajaxSendAfter:function (json) { ajaxSendAfter:function (json) {
......
...@@ -19,7 +19,7 @@ layui.config({ ...@@ -19,7 +19,7 @@ layui.config({
function initNoticeType(id){ function initNoticeType(id){
showGrid({ showGrid({
id: "noticeTypeId", id: "noticeTypeId",
url: reqBasePath + "noticetype011", url: sysMainMation.noticeBasePath + "noticetype011",
params: {}, params: {},
pagination: false, pagination: false,
template: getFileContent('tpl/template/select-option.tpl'), template: getFileContent('tpl/template/select-option.tpl'),
...@@ -34,7 +34,7 @@ layui.config({ ...@@ -34,7 +34,7 @@ layui.config({
function initSecondNoticeType(id){ function initSecondNoticeType(id){
showGrid({ showGrid({
id: "secondTypeId", id: "secondTypeId",
url: reqBasePath + "noticetype013", url: sysMainMation.noticeBasePath + "noticetype013",
params: {parentId: $("#noticeTypeId").val()}, params: {parentId: $("#noticeTypeId").val()},
pagination: false, pagination: false,
template: getFileContent('tpl/template/select-option.tpl'), template: getFileContent('tpl/template/select-option.tpl'),
...@@ -48,8 +48,8 @@ layui.config({ ...@@ -48,8 +48,8 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "notice006", url: sysMainMation.noticeBasePath + "notice006",
params: {rowId:parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: getFileContent('tpl/sysnotice/sysnoticeeditTemplate.tpl'), template: getFileContent('tpl/sysnotice/sysnoticeeditTemplate.tpl'),
ajaxSendAfter:function (json) { ajaxSendAfter:function (json) {
...@@ -192,7 +192,7 @@ layui.config({ ...@@ -192,7 +192,7 @@ layui.config({
winui.window.msg('请填写公告内容', {icon: 2, time: 2000}); winui.window.msg('请填写公告内容', {icon: 2, time: 2000});
return false; return false;
} }
AjaxPostUtil.request({url: reqBasePath + "notice007", params: params, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.noticeBasePath + "notice007", params: params, type: 'json', callback: function (json) {
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}}); }});
......
...@@ -26,7 +26,7 @@ layui.config({ ...@@ -26,7 +26,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'notice001', url: sysMainMation.noticeBasePath + 'notice001',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
...@@ -154,7 +154,7 @@ layui.config({ ...@@ -154,7 +154,7 @@ layui.config({
function delet(data){ function delet(data){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], { icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType] }, function (index) { layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], { icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType] }, function (index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url: reqBasePath + "notice003", params:{rowId: data.id}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.noticeBasePath + "notice003", params: {rowId: data.id}, type: 'json', callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable(); loadTable();
}}); }});
...@@ -166,7 +166,7 @@ layui.config({ ...@@ -166,7 +166,7 @@ layui.config({
var msg = '确认上线选中数据吗?'; var msg = '确认上线选中数据吗?';
layer.confirm(msg, { icon: 3, title: '上线公告' }, function (index) { layer.confirm(msg, { icon: 3, title: '上线公告' }, function (index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url: reqBasePath + "notice004", params:{rowId: data.id}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.noticeBasePath + "notice004", params: {rowId: data.id}, type: 'json', callback: function (json) {
winui.window.msg("上线成功", {icon: 1, time: 2000}); winui.window.msg("上线成功", {icon: 1, time: 2000});
loadTable(); loadTable();
}}); }});
...@@ -178,7 +178,7 @@ layui.config({ ...@@ -178,7 +178,7 @@ layui.config({
var msg = '确认下线选中数据吗?'; var msg = '确认下线选中数据吗?';
layer.confirm(msg, { icon: 3, title: '下线公告' }, function (index) { layer.confirm(msg, { icon: 3, title: '下线公告' }, function (index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url: reqBasePath + "notice005", params:{rowId: data.id}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.noticeBasePath + "notice005", params: {rowId: data.id}, type: 'json', callback: function (json) {
winui.window.msg("下线成功", {icon: 1, time: 2000}); winui.window.msg("下线成功", {icon: 1, time: 2000});
loadTable(); loadTable();
}}); }});
...@@ -202,7 +202,7 @@ layui.config({ ...@@ -202,7 +202,7 @@ layui.config({
//上移 //上移
function upMove(data){ function upMove(data){
AjaxPostUtil.request({url: reqBasePath + "notice008", params:{rowId: data.id}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.noticeBasePath + "notice008", params: {rowId: data.id}, type: 'json', callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.moveUpOperationSuccessMsg"][languageType], {icon: 1, time: 2000}); winui.window.msg(systemLanguage["com.skyeye.moveUpOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable(); loadTable();
}}); }});
...@@ -210,7 +210,7 @@ layui.config({ ...@@ -210,7 +210,7 @@ layui.config({
//下移 //下移
function downMove(data){ function downMove(data){
AjaxPostUtil.request({url: reqBasePath + "notice009", params:{rowId: data.id}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.noticeBasePath + "notice009", params: {rowId: data.id}, type: 'json', callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.moveDownOperationSuccessMsg"][languageType], {icon: 1, time: 2000}); winui.window.msg(systemLanguage["com.skyeye.moveDownOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable(); loadTable();
}}); }});
......
...@@ -34,7 +34,7 @@ layui.config({ ...@@ -34,7 +34,7 @@ layui.config({
winui.window.msg('请选择定时通知时间', {icon: 2, time: 2000}); winui.window.msg('请选择定时通知时间', {icon: 2, time: 2000});
return false; return false;
} }
AjaxPostUtil.request({url: reqBasePath + "notice011", params: params, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.noticeBasePath + "notice011", params: params, type: 'json', callback: function (json) {
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}}); }});
......
...@@ -12,7 +12,7 @@ layui.config({ ...@@ -12,7 +12,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "notice014", url: sysMainMation.noticeBasePath + "notice014",
params: {rowId:parent.rowId}, params: {rowId:parent.rowId},
pagination: false, pagination: false,
template: getFileContent('tpl/sysnoticefront/sysnoticefrontdetailsTemplate.tpl'), template: getFileContent('tpl/sysnoticefront/sysnoticefrontdetailsTemplate.tpl'),
......
...@@ -25,7 +25,7 @@ layui.config({ ...@@ -25,7 +25,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'notice013', url: sysMainMation.noticeBasePath + 'notice013',
where: {typeId: typeId, firstTime: startTime, lastTime: endTime, title:$("#titleName").val()}, where: {typeId: typeId, firstTime: startTime, lastTime: endTime, title:$("#titleName").val()},
even: true, even: true,
page: true, page: true,
...@@ -70,7 +70,7 @@ layui.config({ ...@@ -70,7 +70,7 @@ layui.config({
//初始化左侧菜单数据 //初始化左侧菜单数据
showGrid({ showGrid({
id: "setting", id: "setting",
url: reqBasePath + "noticetype011", url: sysMainMation.noticeBasePath + "noticetype011",
params: {}, params: {},
pagination: false, pagination: false,
template: getFileContent('tpl/sysnoticefront/sysnoticefrontTemplate.tpl'), template: getFileContent('tpl/sysnoticefront/sysnoticefrontTemplate.tpl'),
......
...@@ -28,7 +28,7 @@ layui.config({ ...@@ -28,7 +28,7 @@ layui.config({
function initNoticeTypeId(){ function initNoticeTypeId(){
showGrid({ showGrid({
id: "lockParentSel", id: "lockParentSel",
url: reqBasePath + "noticetype011", url: sysMainMation.noticeBasePath + "noticetype011",
params: {}, params: {},
pagination: false, pagination: false,
template: getFileContent('tpl/template/select-option.tpl'), template: getFileContent('tpl/template/select-option.tpl'),
...@@ -61,7 +61,7 @@ layui.config({ ...@@ -61,7 +61,7 @@ layui.config({
}else if($("input[name='level']:checked").val() === '1'){ }else if($("input[name='level']:checked").val() === '1'){
params.parentId = '0'; params.parentId = '0';
} }
AjaxPostUtil.request({url: reqBasePath + "noticetype002", params: params, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.noticeBasePath + "noticetype002", params: params, type: 'json', callback: function (json) {
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}}); }});
......
...@@ -12,8 +12,8 @@ layui.config({ ...@@ -12,8 +12,8 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "noticetype006", url: sysMainMation.noticeBasePath + "noticetype006",
params: {rowId:parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: getFileContent('tpl/sysnoticetype/sysnoticetypeeditTemplate.tpl'), template: getFileContent('tpl/sysnoticetype/sysnoticetypeeditTemplate.tpl'),
ajaxSendAfter:function (json) { ajaxSendAfter:function (json) {
...@@ -29,7 +29,7 @@ layui.config({ ...@@ -29,7 +29,7 @@ layui.config({
rowId: parent.rowId, rowId: parent.rowId,
typeName: $("#typeName").val(), typeName: $("#typeName").val(),
}; };
AjaxPostUtil.request({url: reqBasePath + "noticetype007", params: params, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.noticeBasePath + "noticetype007", params: params, type: 'json', callback: function (json) {
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}}); }});
......
...@@ -17,11 +17,11 @@ layui.config({ ...@@ -17,11 +17,11 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'noticetype001', url: sysMainMation.noticeBasePath + 'noticetype001',
where: {name:$("#name").val(),parentId:$("#firstType").val()}, where: {name: $("#name").val(), parentId: $("#firstType").val()},
cols: [[ cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers'}, { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers'},
{ field: 'name', title: '类型名称', align: 'center', width: 120 }, { field: 'name', title: '类型名称', width: 120 },
{ field: 'allNum', title: '总公告数量', align: 'center', width: 120 }, { field: 'allNum', title: '总公告数量', align: 'center', width: 120 },
{ field: 'upStateNum', title: '上线公告数量', align: 'center', width: 120 }, { field: 'upStateNum', title: '上线公告数量', align: 'center', width: 120 },
{ field: 'state', title: '当前状态', width: 120, align: 'center', templet: function (d) { { field: 'state', title: '当前状态', width: 120, align: 'center', templet: function (d) {
...@@ -56,7 +56,7 @@ layui.config({ ...@@ -56,7 +56,7 @@ layui.config({
title: 'name', title: 'name',
}); });
tableTree.on('tool(messageTable)', function (obj) { tableTree.getTable().on('tool(messageTable)', function (obj) {
var data = obj.data; var data = obj.data;
var layEvent = obj.event; var layEvent = obj.event;
if (layEvent === 'edit') { //编辑 if (layEvent === 'edit') { //编辑
...@@ -80,7 +80,7 @@ layui.config({ ...@@ -80,7 +80,7 @@ layui.config({
loadFirstType = true; loadFirstType = true;
showGrid({ showGrid({
id: "firstType", id: "firstType",
url: reqBasePath + "noticetype012", url: sysMainMation.noticeBasePath + "noticetype012",
params: {}, params: {},
pagination: false, pagination: false,
template: getFileContent('tpl/template/select-option.tpl'), template: getFileContent('tpl/template/select-option.tpl'),
...@@ -119,7 +119,7 @@ layui.config({ ...@@ -119,7 +119,7 @@ layui.config({
var msg = '确认删除选中数据吗?'; var msg = '确认删除选中数据吗?';
layer.confirm(msg, { icon: 3, title: '删除公告类型' }, function (index) { layer.confirm(msg, { icon: 3, title: '删除公告类型' }, function (index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url: reqBasePath + "noticetype003", params:{rowId: data.id}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.noticeBasePath + "noticetype003", params: {rowId: data.id}, type: 'json', callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable(); loadTable();
}}); }});
...@@ -131,7 +131,7 @@ layui.config({ ...@@ -131,7 +131,7 @@ layui.config({
var msg = '确认上线选中数据吗?'; var msg = '确认上线选中数据吗?';
layer.confirm(msg, { icon: 3, title: '上线公告类型' }, function (index) { layer.confirm(msg, { icon: 3, title: '上线公告类型' }, function (index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url: reqBasePath + "noticetype004", params:{rowId: data.id}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.noticeBasePath + "noticetype004", params: {rowId: data.id}, type: 'json', callback: function (json) {
winui.window.msg("上线成功", {icon: 1, time: 2000}); winui.window.msg("上线成功", {icon: 1, time: 2000});
loadTable(); loadTable();
}}); }});
...@@ -143,7 +143,7 @@ layui.config({ ...@@ -143,7 +143,7 @@ layui.config({
var msg = '确认下线选中数据吗?'; var msg = '确认下线选中数据吗?';
layer.confirm(msg, { icon: 3, title: '下线公告类型' }, function (index) { layer.confirm(msg, { icon: 3, title: '下线公告类型' }, function (index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url: reqBasePath + "noticetype005", params:{rowId: data.id}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.noticeBasePath + "noticetype005", params: {rowId: data.id}, type: 'json', callback: function (json) {
winui.window.msg("下线成功", {icon: 1, time: 2000}); winui.window.msg("下线成功", {icon: 1, time: 2000});
loadTable(); loadTable();
}}); }});
...@@ -167,7 +167,7 @@ layui.config({ ...@@ -167,7 +167,7 @@ layui.config({
//上移 //上移
function upMove(data){ function upMove(data){
AjaxPostUtil.request({url: reqBasePath + "noticetype008", params:{rowId: data.id}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.noticeBasePath + "noticetype008", params: {rowId: data.id}, type: 'json', callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.moveUpOperationSuccessMsg"][languageType], {icon: 1, time: 2000}); winui.window.msg(systemLanguage["com.skyeye.moveUpOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable(); loadTable();
}}); }});
...@@ -175,7 +175,7 @@ layui.config({ ...@@ -175,7 +175,7 @@ layui.config({
//下移 //下移
function downMove(data){ function downMove(data){
AjaxPostUtil.request({url: reqBasePath + "noticetype009", params:{rowId: data.id}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.noticeBasePath + "noticetype009", params: {rowId: data.id}, type: 'json', callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.moveDownOperationSuccessMsg"][languageType], {icon: 1, time: 2000}); winui.window.msg(systemLanguage["com.skyeye.moveDownOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable(); loadTable();
}}); }});
......
...@@ -40,7 +40,7 @@ layui.config({ ...@@ -40,7 +40,7 @@ layui.config({
function initTree(){ function initTree(){
fsTree.render({ fsTree.render({
id: "treeDemo", id: "treeDemo",
url: reqBasePath + 'planprojectflow001?projectId=' + parent.rowId, url: sysMainMation.businessFlowBasePath + 'planprojectflow001?projectId=' + parent.rowId,
loadEnable: false, loadEnable: false,
clickCallback: onClickTree, clickCallback: onClickTree,
onDblClick: onClickTree, onDblClick: onClickTree,
...@@ -56,7 +56,7 @@ layui.config({ ...@@ -56,7 +56,7 @@ layui.config({
if(!isNull(treeNode) && treeNode.type == 2) { if(!isNull(treeNode) && treeNode.type == 2) {
designId = treeNode.id; designId = treeNode.id;
$("#flowName").html(treeNode.title); $("#flowName").html(treeNode.title);
AjaxPostUtil.request({url: reqBasePath + "planprojectflow006", params: {rowId: treeNode.id}, type: 'json', method: "GET", callback: function (json) { AjaxPostUtil.request({url: sysMainMation.businessFlowBasePath + "planprojectflow006", params: {rowId: treeNode.id}, type: 'json', method: "GET", callback: function (json) {
$("#zzc").removeClass("zzc"); $("#zzc").removeClass("zzc");
net.changeData(); net.changeData();
if(isNull(json.bean.jsonContent)){ if(isNull(json.bean.jsonContent)){
...@@ -151,7 +151,7 @@ layui.config({ ...@@ -151,7 +151,7 @@ layui.config({
function del(data){ function del(data){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){ layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index); layer.close(index);
AjaxPostUtil.request({url: reqBasePath + "planprojectflow003", params: {rowId: data.id}, type: 'json', method: "DELETE", callback: function (json) { AjaxPostUtil.request({url: sysMainMation.businessFlowBasePath + "planprojectflow003", params: {rowId: data.id}, type: 'json', method: "DELETE", callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
if(data.id === designId){ if(data.id === designId){
$("#flowName").html("流程图"); $("#flowName").html("流程图");
...@@ -387,7 +387,7 @@ layui.config({ ...@@ -387,7 +387,7 @@ layui.config({
$("body").on("click", "#consoleJSON", function (e) {//保存 $("body").on("click", "#consoleJSON", function (e) {//保存
const saveData = net.save(); const saveData = net.save();
const json = JSON.stringify(saveData, null, 2); const json = JSON.stringify(saveData, null, 2);
AjaxPostUtil.request({url: reqBasePath + "planprojectflow007", params: {rowId: designId, jsonContent: json}, type: 'json', method: "POST", callback: function (json) { AjaxPostUtil.request({url: sysMainMation.businessFlowBasePath + "planprojectflow007", params: {rowId: designId, jsonContent: json}, type: 'json', method: "POST", callback: function (json) {
winui.window.msg("保存成功", {icon: 1, time: 2000}); winui.window.msg("保存成功", {icon: 1, time: 2000});
}}); }});
}); });
......
...@@ -34,7 +34,7 @@ layui.config({ ...@@ -34,7 +34,7 @@ layui.config({
params.isShare = '1'; params.isShare = '1';
} }
AjaxPostUtil.request({url: reqBasePath + "planproject002", params: params, type: 'json', method: "POST", callback: function (json) { AjaxPostUtil.request({url: sysMainMation.businessFlowBasePath + "planproject002", params: params, type: 'json', method: "POST", callback: function (json) {
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}}); }});
......
...@@ -12,7 +12,7 @@ layui.config({ ...@@ -12,7 +12,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "planproject004", url: sysMainMation.businessFlowBasePath + "planproject004",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
method: "GET", method: "GET",
...@@ -65,7 +65,7 @@ layui.config({ ...@@ -65,7 +65,7 @@ layui.config({
params.isShare = '1'; params.isShare = '1';
} }
AjaxPostUtil.request({url: reqBasePath + "planproject005", params: params, type: 'json', method: "PUT", callback: function (json) { AjaxPostUtil.request({url: sysMainMation.businessFlowBasePath + "planproject005", params: params, type: 'json', method: "PUT", callback: function (json) {
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}}); }});
......
...@@ -19,7 +19,7 @@ layui.config({ ...@@ -19,7 +19,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'planproject001', url: sysMainMation.businessFlowBasePath + 'planproject001',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
...@@ -76,7 +76,7 @@ layui.config({ ...@@ -76,7 +76,7 @@ layui.config({
function del(data, obj) { function del(data, obj) {
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){ layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index); layer.close(index);
AjaxPostUtil.request({url: reqBasePath + "planproject003", params: {rowId: data.id}, type: 'json', method: "DELETE", callback: function(json) { AjaxPostUtil.request({url: sysMainMation.businessFlowBasePath + "planproject003", params: {rowId: data.id}, type: 'json', method: "DELETE", callback: function(json) {
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable(); loadTable();
}}); }});
......
...@@ -37,7 +37,7 @@ layui.config({ ...@@ -37,7 +37,7 @@ layui.config({
params.isShare = '1'; params.isShare = '1';
} }
AjaxPostUtil.request({url: reqBasePath + "planprojectflow002", params: params, type: 'json', method: "POST", callback: function (json) { AjaxPostUtil.request({url: sysMainMation.businessFlowBasePath + "planprojectflow002", params: params, type: 'json', method: "POST", callback: function (json) {
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}}); }});
......
...@@ -12,7 +12,7 @@ layui.config({ ...@@ -12,7 +12,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "planprojectflow004", url: sysMainMation.businessFlowBasePath + "planprojectflow004",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
method: "GET", method: "GET",
...@@ -63,7 +63,7 @@ layui.config({ ...@@ -63,7 +63,7 @@ layui.config({
params.isShare = '1'; params.isShare = '1';
} }
AjaxPostUtil.request({url: reqBasePath + "planprojectflow005", params: params, type: 'json', method: "PUT", callback: function (json) { AjaxPostUtil.request({url: sysMainMation.businessFlowBasePath + "planprojectflow005", params: params, type: 'json', method: "PUT", callback: function (json) {
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}}); }});
......
...@@ -182,7 +182,7 @@ layui.config({ ...@@ -182,7 +182,7 @@ layui.config({
} }
params.typeName = $("#scheduleTypeName").val(); params.typeName = $("#scheduleTypeName").val();
} }
AjaxPostUtil.request({url: reqBasePath + "syseveschedule001", params: params, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.scheduleBasePath + "syseveschedule001", params: params, type: 'json', callback: function (json) {
parent.childParams = json.bean; parent.childParams = json.bean;
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -148,7 +148,7 @@ layui.config({ ...@@ -148,7 +148,7 @@ layui.config({
scheduleEndTime: event.end._d.format("yyyy-MM-dd hh:mm:ss"), scheduleEndTime: event.end._d.format("yyyy-MM-dd hh:mm:ss"),
id: event.id id: event.id
}; };
AjaxPostUtil.request({url: reqBasePath + "syseveschedule005", params: params, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.scheduleBasePath + "syseveschedule005", params: params, type: 'json', callback: function (json) {
joinTodaySchedule(params); joinTodaySchedule(params);
}, errorCallback: function () { }, errorCallback: function () {
revertFunc(); revertFunc();
...@@ -163,7 +163,7 @@ layui.config({ ...@@ -163,7 +163,7 @@ layui.config({
eventMouseover: function(event, jsEvent, view){//鼠标移入事件 eventMouseover: function(event, jsEvent, view){//鼠标移入事件
}, },
events: function(start, end, timezone, callback){ events: function(start, end, timezone, callback){
AjaxPostUtil.request({url: reqBasePath + "syseveschedule002", params:{yearMonth: start._d.format("yyyy-MM"), checkWorkId: $("#checkTime").val()}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.scheduleBasePath + "syseveschedule002", params: {yearMonth: start._d.format("yyyy-MM"), checkWorkId: $("#checkTime").val()}, type: 'json', callback: function (json) {
callback(json.rows); callback(json.rows);
}}); }});
} }
...@@ -172,7 +172,7 @@ layui.config({ ...@@ -172,7 +172,7 @@ layui.config({
//获取今日日程 //获取今日日程
showGrid({ showGrid({
id: "schedule-list", id: "schedule-list",
url: reqBasePath + "syseveschedule003", url: sysMainMation.scheduleBasePath + "syseveschedule003",
params: {}, params: {},
pagination: false, pagination: false,
method: "GET", method: "GET",
...@@ -218,7 +218,7 @@ layui.config({ ...@@ -218,7 +218,7 @@ layui.config({
// 加载日程详情 // 加载日程详情
function loadScheduleDetails(id){ function loadScheduleDetails(id){
AjaxPostUtil.request({url: reqBasePath + "syseveschedule006", params:{rowId: id}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.scheduleBasePath + "syseveschedule006", params: {rowId: id}, type: 'json', callback: function (json) {
json.bean.scheduleRemarks = stringManipulation.textAreaShow(json.bean.scheduleRemarks); json.bean.scheduleRemarks = stringManipulation.textAreaShow(json.bean.scheduleRemarks);
showDataUseHandlebars("schedule-detail", getFileContent('tpl/index/scheduleDetail.tpl'), json); showDataUseHandlebars("schedule-detail", getFileContent('tpl/index/scheduleDetail.tpl'), json);
}}); }});
...@@ -233,7 +233,7 @@ layui.config({ ...@@ -233,7 +233,7 @@ layui.config({
$("#layui-layer-shade" + times).css({'z-index': zIndex}); $("#layui-layer-shade" + times).css({'z-index': zIndex});
}}, function (index) { }}, function (index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url: reqBasePath + "syseveschedule007", params:{rowId: id}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.scheduleBasePath + "syseveschedule007", params: {rowId: id}, type: 'json', callback: function (json) {
$('div[rowid="' + id + '"]').parent().remove(); $('div[rowid="' + id + '"]').parent().remove();
calendar.fullCalendar('removeEvents', [id]); calendar.fullCalendar('removeEvents', [id]);
}}); }});
......
...@@ -27,8 +27,8 @@ layui.config({ ...@@ -27,8 +27,8 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'myagency001', url: sysMainMation.scheduleBasePath + 'myagency001',
where:{myagencyType: $("#myagencyType").val(), myagencyName: $("#myagencyName").val()}, where: {myagencyType: $("#myagencyType").val(), myagencyName: $("#myagencyName").val()},
even: true, even: true,
page: true, page: true,
limits: getLimits(), limits: getLimits(),
...@@ -67,7 +67,7 @@ layui.config({ ...@@ -67,7 +67,7 @@ layui.config({
var msg = obj ? '确认取消【' + obj.data.title + '】的提醒吗?' : '确认取消提醒吗?'; var msg = obj ? '确认取消【' + obj.data.title + '】的提醒吗?' : '确认取消提醒吗?';
layer.confirm(msg, { icon: 3, title: '取消代办' }, function (index) { layer.confirm(msg, { icon: 3, title: '取消代办' }, function (index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url: reqBasePath + "myagency002", params:{rowId: data.id}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.scheduleBasePath + "myagency002", params: {rowId: data.id}, type: 'json', callback: function (json) {
winui.window.msg("取消成功", {icon: 1, time: 2000}); winui.window.msg("取消成功", {icon: 1, time: 2000});
loadTable(); loadTable();
}}); }});
......
...@@ -15,7 +15,7 @@ layui.config({ ...@@ -15,7 +15,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "syseveschedule015", url: sysMainMation.scheduleBasePath + "syseveschedule015",
params: {rowId:parent.rowId}, params: {rowId:parent.rowId},
pagination: false, pagination: false,
template: getFileContent('tpl/schedule/editscheduleTemplate.tpl'), template: getFileContent('tpl/schedule/editscheduleTemplate.tpl'),
...@@ -38,7 +38,7 @@ layui.config({ ...@@ -38,7 +38,7 @@ layui.config({
startTime: theStartTime, startTime: theStartTime,
endTime: theEndTime endTime: theEndTime
}; };
AjaxPostUtil.request({url: reqBasePath + "syseveschedule016", params: params, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.scheduleBasePath + "syseveschedule016", params: params, type: 'json', callback: function (json) {
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}}); }});
......
...@@ -20,9 +20,9 @@ layui.config({ ...@@ -20,9 +20,9 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'syseveschedule008', url: sysMainMation.scheduleBasePath + 'syseveschedule008',
where: getTableParams(), where: getTableParams(),
even:true, even: true,
page: true, page: true,
limits: getLimits(), limits: getLimits(),
limit: getLimit(), limit: getLimit(),
...@@ -59,7 +59,7 @@ layui.config({ ...@@ -59,7 +59,7 @@ layui.config({
function del(data, obj){ function del(data, obj){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){ layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index); layer.close(index);
AjaxPostUtil.request({url: reqBasePath + "syseveschedule011", params:{rowId: data.id}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.scheduleBasePath + "syseveschedule011", params: {rowId: data.id}, type: 'json', callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable(); loadTable();
}}); }});
...@@ -71,7 +71,7 @@ layui.config({ ...@@ -71,7 +71,7 @@ layui.config({
var msg = '确认取消该节假日的提醒吗?'; var msg = '确认取消该节假日的提醒吗?';
layer.confirm(msg, { icon: 3, title: '取消日程提醒' }, function (index) { layer.confirm(msg, { icon: 3, title: '取消日程提醒' }, function (index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url: reqBasePath + "syseveschedule014", params:{rowId: data.id}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.scheduleBasePath + "syseveschedule014", params: {rowId: data.id}, type: 'json', callback: function (json) {
winui.window.msg("取消成功", {icon: 1, time: 2000}); winui.window.msg("取消成功", {icon: 1, time: 2000});
loadTable(); loadTable();
}}); }});
...@@ -123,7 +123,7 @@ layui.config({ ...@@ -123,7 +123,7 @@ layui.config({
$("body").on("click", "#deleteThisYear", function() { $("body").on("click", "#deleteThisYear", function() {
layer.confirm('确认清空本年度节假日日程吗?', { icon: 3, title: '删除节假日' }, function (index) { layer.confirm('确认清空本年度节假日日程吗?', { icon: 3, title: '删除节假日' }, function (index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url: reqBasePath + "syseveschedule012", params:{}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.scheduleBasePath + "syseveschedule012", params: {}, type: 'json', callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable(); loadTable();
}}); }});
...@@ -133,7 +133,7 @@ layui.config({ ...@@ -133,7 +133,7 @@ layui.config({
// 下载模板 // 下载模板
$("body").on("click", "#download", function() { $("body").on("click", "#download", function() {
postDownLoadFile({ postDownLoadFile({
url : reqBasePath + 'syseveschedule009', url : sysMainMation.scheduleBasePath + 'syseveschedule009',
method : 'post' method : 'post'
}); });
}); });
...@@ -149,7 +149,7 @@ layui.config({ ...@@ -149,7 +149,7 @@ layui.config({
formData.append("file", $("#upfile")[0].files[0]); formData.append("file", $("#upfile")[0].files[0]);
formData.append("name", name); formData.append("name", name);
$.ajax({ $.ajax({
url : reqBasePath + 'syseveschedule010', url : sysMainMation.scheduleBasePath + 'syseveschedule010',
type : 'POST', type : 'POST',
async : false, async : false,
data : formData, data : formData,
......
...@@ -16,7 +16,7 @@ layui.config({ ...@@ -16,7 +16,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'syseveschedule019', url: sysMainMation.scheduleBasePath + 'syseveschedule019',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
......
...@@ -30,7 +30,7 @@ layui.config({ ...@@ -30,7 +30,7 @@ layui.config({
startTime: theStartTime, startTime: theStartTime,
endTime: theEndTime endTime: theEndTime
}; };
AjaxPostUtil.request({url: reqBasePath + "syseveschedule017", params: params, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.scheduleBasePath + "syseveschedule017", params: params, type: 'json', callback: function (json) {
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}}); }});
......
...@@ -24,7 +24,7 @@ layui.config({ ...@@ -24,7 +24,7 @@ layui.config({
rowId: parent.rowId, rowId: parent.rowId,
remindType: $("#remindType").val() remindType: $("#remindType").val()
}; };
AjaxPostUtil.request({url: reqBasePath + "syseveschedule013", params: params, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.scheduleBasePath + "syseveschedule013", params: params, type: 'json', callback: function (json) {
parent.childParams = json.bean; parent.childParams = json.bean;
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -812,7 +812,7 @@ layui.config({ ...@@ -812,7 +812,7 @@ layui.config({
function initNoticeList(){ function initNoticeList(){
showGrid({ showGrid({
id: "notice-list", id: "notice-list",
url: reqBasePath + "syseveusernotice002", url: sysMainMation.noticeBasePath + "syseveusernotice002",
params: {}, params: {},
pagination: false, pagination: false,
template: getFileContent('tpl/index/noReadNotice.tpl'), template: getFileContent('tpl/index/noReadNotice.tpl'),
...@@ -836,7 +836,7 @@ layui.config({ ...@@ -836,7 +836,7 @@ layui.config({
$("#showMyNoticeNum").hide(); $("#showMyNoticeNum").hide();
$("#showMyNoticeNum").html("0"); $("#showMyNoticeNum").html("0");
if(!isNull(idsStr)){ if(!isNull(idsStr)){
AjaxPostUtil.request({url: reqBasePath + "syseveusernotice006", params:{rowIds: idsStr}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.noticeBasePath + "syseveusernotice006", params: {rowIds: idsStr}, type: 'json', callback: function (json) {
$.each(noticeList, function(index, item){ $.each(noticeList, function(index, item){
setTimeout(function (e) { setTimeout(function (e) {
$(item).animate({'margin-left': '390px'}, 500, function() { $(item).animate({'margin-left': '390px'}, 500, function() {
...@@ -852,7 +852,7 @@ layui.config({ ...@@ -852,7 +852,7 @@ layui.config({
$(".winui-message-item").on("click", function (e) { $(".winui-message-item").on("click", function (e) {
var _this = $(this); var _this = $(this);
parentRowId = _this.attr("rowid"); parentRowId = _this.attr("rowid");
AjaxPostUtil.request({url: reqBasePath + "syseveusernotice003", params:{rowId: parentRowId}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.noticeBasePath + "syseveusernotice003", params: {rowId: parentRowId}, type: 'json', callback: function (json) {
_openNewWindows({ _openNewWindows({
url: "../../tpl/index/noticeDetail.html", url: "../../tpl/index/noticeDetail.html",
title: "消息详情", title: "消息详情",
...@@ -878,7 +878,7 @@ layui.config({ ...@@ -878,7 +878,7 @@ layui.config({
$(".notice-item-remove").on("click", function (e) { $(".notice-item-remove").on("click", function (e) {
var _this = $(this).parent().parent(); var _this = $(this).parent().parent();
parentRowId = _this.attr("rowid"); parentRowId = _this.attr("rowid");
AjaxPostUtil.request({url: reqBasePath + "syseveusernotice004", params:{rowId: parentRowId}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.noticeBasePath + "syseveusernotice004", params: {rowId: parentRowId}, type: 'json', callback: function (json) {
_this.animate({'margin-left': '390px'}, 500, function() { _this.animate({'margin-left': '390px'}, 500, function() {
_this.remove(); _this.remove();
var noticeShowListLength = $("#notice-list").find(".winui-message-item").length; var noticeShowListLength = $("#notice-list").find(".winui-message-item").length;
......
...@@ -12,7 +12,7 @@ layui.config({ ...@@ -12,7 +12,7 @@ layui.config({
form = layui.form; form = layui.form;
showGrid({ showGrid({
id: "notice-content", id: "notice-content",
url: reqBasePath + "syseveusernotice007", url: sysMainMation.noticeBasePath + "syseveusernotice007",
params: {rowId: parent.parentRowId}, params: {rowId: parent.parentRowId},
pagination: false, pagination: false,
template: getFileContent('tpl/index/noticeDetailTemplate.tpl'), template: getFileContent('tpl/index/noticeDetailTemplate.tpl'),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册