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

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

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