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

【工作计划】工作计划模块拆分

上级 279a55fd
...@@ -22,7 +22,7 @@ layui.config({ ...@@ -22,7 +22,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'sysworkplan016', url: sysMainMation.workplanBasePath + 'sysworkplan016',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
......
...@@ -23,7 +23,7 @@ layui.config({ ...@@ -23,7 +23,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'sysworkplan017', url: sysMainMation.workplanBasePath + 'sysworkplan017',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
......
...@@ -22,7 +22,7 @@ layui.config({ ...@@ -22,7 +22,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'sysworkplan015', url: sysMainMation.workplanBasePath + 'sysworkplan015',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
...@@ -146,7 +146,7 @@ layui.config({ ...@@ -146,7 +146,7 @@ layui.config({
function cancleTiming(data){ function cancleTiming(data){
layer.confirm("确定取消定时发送吗?", { icon: 3, title: '取消定时发送' }, function (index) { layer.confirm("确定取消定时发送吗?", { icon: 3, title: '取消定时发送' }, function (index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url: reqBasePath + "sysworkplan005", params:{planId: data.id}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.workplanBasePath + "sysworkplan005", params: {planId: data.id}, type: 'json', callback: function (json) {
winui.window.msg("已取消定时发送", {icon: 1, time: 2000}); winui.window.msg("已取消定时发送", {icon: 1, time: 2000});
loadTable(); loadTable();
}}); }});
...@@ -157,7 +157,7 @@ layui.config({ ...@@ -157,7 +157,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 + "sysworkplan006", params:{planId: data.id}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.workplanBasePath + "sysworkplan006", params: {planId: 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();
}}); }});
......
...@@ -23,7 +23,7 @@ layui.config({ ...@@ -23,7 +23,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'sysworkplan013', url: sysMainMation.workplanBasePath + 'sysworkplan013',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
......
...@@ -19,7 +19,7 @@ layui.config({ ...@@ -19,7 +19,7 @@ layui.config({
state: $("#state").val(), state: $("#state").val(),
remark: $("#remark").val() remark: $("#remark").val()
}; };
AjaxPostUtil.request({url: reqBasePath + "sysworkplan014", params: params, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.workplanBasePath + "sysworkplan014", params: params, type: 'json', callback: function (json) {
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}}); }});
......
...@@ -235,7 +235,7 @@ layui.config({ ...@@ -235,7 +235,7 @@ layui.config({
params.notifyTime = null; params.notifyTime = null;
} }
AjaxPostUtil.request({url: reqBasePath + "sysworkplan002", params: params, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.workplanBasePath + "sysworkplan002", params: params, type: 'json', callback: function (json) {
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}}); }});
......
...@@ -224,7 +224,7 @@ layui.config({ ...@@ -224,7 +224,7 @@ layui.config({
params.notifyTime = null; params.notifyTime = null;
} }
AjaxPostUtil.request({url: reqBasePath + "sysworkplan004", params: params, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.workplanBasePath + "sysworkplan004", params: params, type: 'json', callback: function (json) {
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}}); }});
......
...@@ -36,7 +36,7 @@ layui.config({ ...@@ -36,7 +36,7 @@ layui.config({
var carryPeople = "";//指定人员id var carryPeople = "";//指定人员id
AjaxPostUtil.request({url: reqBasePath + "sysworkplan007", params:{planId: parent.rowId}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.workplanBasePath + "sysworkplan007", params: {planId: parent.rowId}, type: 'json', callback: function (json) {
nowCheckType = json.bean.planCycle; nowCheckType = json.bean.planCycle;
timeSolt = json.bean.startTime + '~' + json.bean.endTime; timeSolt = json.bean.startTime + '~' + json.bean.endTime;
$("#title").val(json.bean.title); $("#title").val(json.bean.title);
...@@ -241,7 +241,7 @@ layui.config({ ...@@ -241,7 +241,7 @@ layui.config({
params.notifyTime = null; params.notifyTime = null;
} }
AjaxPostUtil.request({url: reqBasePath + "sysworkplan012", params: params, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.workplanBasePath + "sysworkplan012", params: params, type: 'json', callback: function (json) {
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}}); }});
......
...@@ -224,7 +224,7 @@ layui.config({ ...@@ -224,7 +224,7 @@ layui.config({
params.notifyTime = null; params.notifyTime = null;
} }
AjaxPostUtil.request({url: reqBasePath + "sysworkplan003", params: params, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.workplanBasePath + "sysworkplan003", params: params, type: 'json', callback: function (json) {
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}}); }});
......
...@@ -34,7 +34,7 @@ layui.config({ ...@@ -34,7 +34,7 @@ layui.config({
} }
}); });
AjaxPostUtil.request({url: reqBasePath + "sysworkplan007", params:{planId: parent.rowId}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.workplanBasePath + "sysworkplan007", params: {planId: parent.rowId}, type: 'json', callback: function (json) {
nowCheckType = json.bean.planCycle; nowCheckType = json.bean.planCycle;
timeSolt = json.bean.startTime + '~' + json.bean.endTime; timeSolt = json.bean.startTime + '~' + json.bean.endTime;
$("#title").val(json.bean.title); $("#title").val(json.bean.title);
...@@ -235,7 +235,7 @@ layui.config({ ...@@ -235,7 +235,7 @@ layui.config({
params.notifyTime = null; params.notifyTime = null;
} }
AjaxPostUtil.request({url: reqBasePath + "sysworkplan009", params: params, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.workplanBasePath + "sysworkplan009", params: params, type: 'json', callback: function (json) {
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}}); }});
......
...@@ -14,7 +14,7 @@ layui.config({ ...@@ -14,7 +14,7 @@ layui.config({
if(!isNull(parent.executorId)){ if(!isNull(parent.executorId)){
executorId = parent.executorId; executorId = parent.executorId;
} }
AjaxPostUtil.request({url: reqBasePath + "sysworkplan011", params:{planId: parent.rowId, executorId: executorId}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.workplanBasePath + "sysworkplan011", params: {planId: parent.rowId, executorId: executorId}, type: 'json', callback: function (json) {
$("#showForm").html(getDataUseHandlebars($("#beanTemplate").html(), json)); $("#showForm").html(getDataUseHandlebars($("#beanTemplate").html(), json));
// 计划周期名称展示 // 计划周期名称展示
$("#nowCheckTypeBox").html(getNowCheckTypeName(json.bean.planCycle)); $("#nowCheckTypeBox").html(getNowCheckTypeName(json.bean.planCycle));
......
...@@ -34,7 +34,7 @@ layui.config({ ...@@ -34,7 +34,7 @@ layui.config({
} }
}); });
AjaxPostUtil.request({url: reqBasePath + "sysworkplan007", params:{planId: parent.rowId}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.workplanBasePath + "sysworkplan007", params: {planId: parent.rowId}, type: 'json', callback: function (json) {
nowCheckType = json.bean.planCycle; nowCheckType = json.bean.planCycle;
timeSolt = json.bean.startTime + '~' + json.bean.endTime; timeSolt = json.bean.startTime + '~' + json.bean.endTime;
$("#title").val(json.bean.title); $("#title").val(json.bean.title);
...@@ -240,7 +240,7 @@ layui.config({ ...@@ -240,7 +240,7 @@ layui.config({
params.notifyTime = null; params.notifyTime = null;
} }
AjaxPostUtil.request({url: reqBasePath + "sysworkplan008", params: params, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.workplanBasePath + "sysworkplan008", params: params, type: 'json', callback: function (json) {
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}}); }});
......
...@@ -117,9 +117,9 @@ layui.config({ ...@@ -117,9 +117,9 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'sysworkplan001', url: sysMainMation.workplanBasePath + 'sysworkplan001',
where: getTableParams(), where: getTableParams(),
even:true, even: true,
page: true, page: true,
limits: [8, 16, 24, 32, 40, 48, 56], limits: [8, 16, 24, 32, 40, 48, 56],
limit: 8, limit: 8,
...@@ -226,7 +226,7 @@ layui.config({ ...@@ -226,7 +226,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 + "sysworkplan005", params:{planId: data.id}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.workplanBasePath + "sysworkplan005", params: {planId: data.id}, type: 'json', callback: function (json) {
winui.window.msg("已取消定时发送", {icon: 1, time: 2000}); winui.window.msg("已取消定时发送", {icon: 1, time: 2000});
loadTable(); loadTable();
}}); }});
...@@ -237,7 +237,7 @@ layui.config({ ...@@ -237,7 +237,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 + "sysworkplan006", params:{planId: data.id}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.workplanBasePath + "sysworkplan006", params: {planId: 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();
}}); }});
......
...@@ -30,7 +30,7 @@ layui.config({ ...@@ -30,7 +30,7 @@ layui.config({
return false; return false;
} }
AjaxPostUtil.request({url: reqBasePath + "sysworkplan010", params: {planId: parent.rowId, notifyTime: $("#notifyTime").val()}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.workplanBasePath + "sysworkplan010", params: {planId: parent.rowId, notifyTime: $("#notifyTime").val()}, type: 'json', callback: function (json) {
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}}); }});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册