提交 96329d46 编写于 作者: doc_wei's avatar doc_wei

日报模块拆分完成

上级 d6f84abe
...@@ -12,8 +12,8 @@ layui.config({ ...@@ -12,8 +12,8 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "diary004", url: sysMainMation.jobdiaayBasePath + "diary004",
params: {rowId:parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: getFileContent('tpl/jobdiaryMyReceive/jobdiaryMyReceiveDayDetailsTemplate.tpl'), template: getFileContent('tpl/jobdiaryMyReceive/jobdiaryMyReceiveDayDetailsTemplate.tpl'),
ajaxSendAfter:function (json) { ajaxSendAfter:function (json) {
......
...@@ -21,8 +21,8 @@ layui.config({ ...@@ -21,8 +21,8 @@ layui.config({
searchKey: 'userName', //搜索输入框的name值 默认keyword searchKey: 'userName', //搜索输入框的name值 默认keyword
searchPlaceholder: '发件人搜索', //搜索输入框的提示文字 默认关键词搜索 searchPlaceholder: '发件人搜索', //搜索输入框的提示文字 默认关键词搜索
table: { //定义表格参数,与LAYUI的TABLE模块一致,只是无需再定义表格elem table: { //定义表格参数,与LAYUI的TABLE模块一致,只是无需再定义表格elem
url: reqBasePath + 'diary003', url: sysMainMation.jobdiaayBasePath + 'diary003',
where: {userName:$("#userName").val()}, where: {userName: $("#userName").val()},
method: 'post', method: 'post',
page: true, page: true,
limits: getLimits(), limits: getLimits(),
...@@ -66,7 +66,7 @@ layui.config({ ...@@ -66,7 +66,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'diary001', url: sysMainMation.jobdiaayBasePath + 'diary001',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
...@@ -152,7 +152,7 @@ layui.config({ ...@@ -152,7 +152,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 + "diary008", params: {rowId: data.id}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.jobdiaayBasePath + "diary008", 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();
}}); }});
...@@ -177,7 +177,7 @@ layui.config({ ...@@ -177,7 +177,7 @@ layui.config({
// 我收到的日志全部设置为已读 // 我收到的日志全部设置为已读
function alreadyRead(){ function alreadyRead(){
AjaxPostUtil.request({url: reqBasePath + "diary024", type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.jobdiaayBasePath + "diary024", 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();
}}); }});
......
...@@ -12,8 +12,8 @@ layui.config({ ...@@ -12,8 +12,8 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "diary014", url: sysMainMation.jobdiaayBasePath + "diary014",
params: {rowId:parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: getFileContent('tpl/jobdiaryMyReceive/jobdiaryMyReceiveMonthDetailsTemplate.tpl'), template: getFileContent('tpl/jobdiaryMyReceive/jobdiaryMyReceiveMonthDetailsTemplate.tpl'),
ajaxSendAfter:function (json) { ajaxSendAfter:function (json) {
......
...@@ -43,7 +43,7 @@ layui.config({ ...@@ -43,7 +43,7 @@ layui.config({
params.lastTime = $("#createTime").val().split('~')[1].trim(); params.lastTime = $("#createTime").val().split('~')[1].trim();
} }
//以jQuery的Ajax请求为例,请求下一页数据(注意:page是从2开始返回) //以jQuery的Ajax请求为例,请求下一页数据(注意:page是从2开始返回)
AjaxPostUtil.request({url: reqBasePath + "diary023", params: params, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.jobdiaayBasePath + "diary023", params: params, type: 'json', callback: function (json) {
var jsonStr = "";//实体json对象 var jsonStr = "";//实体json对象
$.each(json.rows, function(index, bean) { $.each(json.rows, function(index, bean) {
if(index == 0 && page == 1){ if(index == 0 && page == 1){
......
...@@ -12,8 +12,8 @@ layui.config({ ...@@ -12,8 +12,8 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "diary011", url: sysMainMation.jobdiaayBasePath + "diary011",
params: {rowId:parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: getFileContent('tpl/jobdiaryMyReceive/jobdiaryMyReceiveWeekDetailsTemplate.tpl'), template: getFileContent('tpl/jobdiaryMyReceive/jobdiaryMyReceiveWeekDetailsTemplate.tpl'),
ajaxSendAfter:function (json) { ajaxSendAfter:function (json) {
......
...@@ -11,8 +11,8 @@ layui.config({ ...@@ -11,8 +11,8 @@ layui.config({
var $ = layui.$; var $ = layui.$;
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "diary007", url: sysMainMation.jobdiaayBasePath + "diary007",
params: {rowId:parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: getFileContent('tpl/jobdiaryMySend/jobdiaryMySendDayDetailsTemplate.tpl'), template: getFileContent('tpl/jobdiaryMySend/jobdiaryMySendDayDetailsTemplate.tpl'),
ajaxSendLoadBefore: function(hdb){ ajaxSendLoadBefore: function(hdb){
......
...@@ -74,8 +74,8 @@ layui.config({ ...@@ -74,8 +74,8 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "diary016", url: sysMainMation.jobdiaayBasePath + "diary016",
params: {rowId:parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: getFileContent('tpl/jobdiaryMySend/jobdiaryMySendDayEditTemplate.tpl'), template: getFileContent('tpl/jobdiaryMySend/jobdiaryMySendDayEditTemplate.tpl'),
ajaxSendLoadBefore: function(hdb){ ajaxSendLoadBefore: function(hdb){
...@@ -196,7 +196,7 @@ layui.config({ ...@@ -196,7 +196,7 @@ layui.config({
params.coordinaJob = encodeURIComponent($("#coordinatext").val().replace(/\n|\r\n/g, "<br>")); params.coordinaJob = encodeURIComponent($("#coordinatext").val().replace(/\n|\r\n/g, "<br>"));
} }
AjaxPostUtil.request({url: reqBasePath + "diary017", params: params, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.jobdiaayBasePath + "diary017", params: params, type: 'json', callback: function (json) {
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}}); }});
......
...@@ -31,7 +31,7 @@ layui.config({ ...@@ -31,7 +31,7 @@ layui.config({
id: 'mysendTable', id: 'mysendTable',
elem: '#mysendTable', elem: '#mysendTable',
method: 'post', method: 'post',
url: reqBasePath + 'diary005', url: sysMainMation.jobdiaayBasePath + 'diary005',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
...@@ -95,7 +95,7 @@ layui.config({ ...@@ -95,7 +95,7 @@ layui.config({
function repeal(data){ function repeal(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 + "diary006", params: {rowId: data.id}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.jobdiaayBasePath + "diary006", params: {rowId: data.id}, type: 'json', callback: function (json) {
winui.window.msg("撤回成功", {icon: 1, time: 2000}); winui.window.msg("撤回成功", {icon: 1, time: 2000});
loadMySendTable(); loadMySendTable();
}}); }});
...@@ -106,7 +106,7 @@ layui.config({ ...@@ -106,7 +106,7 @@ layui.config({
function mydel(data){ function mydel(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 + "diary015", params: {rowId: data.id}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.jobdiaayBasePath + "diary015", 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});
loadMySendTable(); loadMySendTable();
}}); }});
......
...@@ -11,8 +11,8 @@ layui.config({ ...@@ -11,8 +11,8 @@ layui.config({
var $ = layui.$; var $ = layui.$;
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "diary013", url: sysMainMation.jobdiaayBasePath + "diary013",
params: {rowId:parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: getFileContent('tpl/jobdiaryMySend/jobdiaryMySendMonthDetailsTemplate.tpl'), template: getFileContent('tpl/jobdiaryMySend/jobdiaryMySendMonthDetailsTemplate.tpl'),
ajaxSendAfter:function (json) { ajaxSendAfter:function (json) {
......
...@@ -74,8 +74,8 @@ layui.config({ ...@@ -74,8 +74,8 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "diary020", url: sysMainMation.jobdiaayBasePath + "diary020",
params: {rowId:parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: getFileContent('tpl/jobdiaryMySend/jobdiaryMySendMonthEditTemplate.tpl'), template: getFileContent('tpl/jobdiaryMySend/jobdiaryMySendMonthEditTemplate.tpl'),
ajaxSendLoadBefore: function(hdb){ ajaxSendLoadBefore: function(hdb){
...@@ -215,7 +215,7 @@ layui.config({ ...@@ -215,7 +215,7 @@ layui.config({
params.thisWorkSummary = encodeURIComponent($("#monthWorkSummaryText").val().replace(/\n|\r\n/g, "<br>")); params.thisWorkSummary = encodeURIComponent($("#monthWorkSummaryText").val().replace(/\n|\r\n/g, "<br>"));
} }
AjaxPostUtil.request({url: reqBasePath + "diary021", params: params, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.jobdiaayBasePath + "diary021", params: params, type: 'json', callback: function (json) {
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}}); }});
......
...@@ -192,7 +192,7 @@ layui.config({ ...@@ -192,7 +192,7 @@ layui.config({
params.coordinaJob = encodeURIComponent($("#coordinatext").val()); params.coordinaJob = encodeURIComponent($("#coordinatext").val());
} }
AjaxPostUtil.request({url: reqBasePath + "diary002", params: params, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.jobdiaayBasePath + "diary002", params: params, type: 'json', callback: function (json) {
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}}); }});
...@@ -301,7 +301,7 @@ layui.config({ ...@@ -301,7 +301,7 @@ layui.config({
params.thisWorkSummary = encodeURIComponent($("#weekWorkSummaryText").val()); params.thisWorkSummary = encodeURIComponent($("#weekWorkSummaryText").val());
} }
AjaxPostUtil.request({url: reqBasePath + "diary009", params: params, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.jobdiaayBasePath + "diary009", params: params, type: 'json', callback: function (json) {
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}}); }});
...@@ -409,7 +409,7 @@ layui.config({ ...@@ -409,7 +409,7 @@ layui.config({
params.thisWorkSummary = encodeURIComponent($("#monthWorkSummaryText").val()); params.thisWorkSummary = encodeURIComponent($("#monthWorkSummaryText").val());
} }
AjaxPostUtil.request({url: reqBasePath + "diary012", params: params, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.jobdiaayBasePath + "diary012", params: params, type: 'json', callback: function (json) {
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}}); }});
......
...@@ -11,8 +11,8 @@ layui.config({ ...@@ -11,8 +11,8 @@ layui.config({
var $ = layui.$; var $ = layui.$;
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "diary010", url: sysMainMation.jobdiaayBasePath + "diary010",
params: {rowId:parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: getFileContent('tpl/jobdiaryMySend/jobdiaryMySendWeekDetailsTemplate.tpl'), template: getFileContent('tpl/jobdiaryMySend/jobdiaryMySendWeekDetailsTemplate.tpl'),
ajaxSendAfter:function (json) { ajaxSendAfter:function (json) {
......
...@@ -74,8 +74,8 @@ layui.config({ ...@@ -74,8 +74,8 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "diary018", url: sysMainMation.jobdiaayBasePath + "diary018",
params: {rowId:parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: getFileContent('tpl/jobdiaryMySend/jobdiaryMySendWeekEditTemplate.tpl'), template: getFileContent('tpl/jobdiaryMySend/jobdiaryMySendWeekEditTemplate.tpl'),
ajaxSendLoadBefore: function(hdb){ ajaxSendLoadBefore: function(hdb){
...@@ -215,7 +215,7 @@ layui.config({ ...@@ -215,7 +215,7 @@ layui.config({
params.thisWorkSummary = encodeURIComponent($("#weekWorkSummaryText").val().replace(/\n|\r\n/g, "<br>")); params.thisWorkSummary = encodeURIComponent($("#weekWorkSummaryText").val().replace(/\n|\r\n/g, "<br>"));
} }
AjaxPostUtil.request({url: reqBasePath + "diary019", params: params, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.jobdiaayBasePath + "diary019", params: params, type: 'json', callback: function (json) {
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}}); }});
......
...@@ -95,7 +95,7 @@ layui.config({ ...@@ -95,7 +95,7 @@ layui.config({
firstTime: thefirstTime, firstTime: thefirstTime,
lastTime: thesecondTime lastTime: thesecondTime
}; };
AjaxPostUtil.request({url: reqBasePath + "diary022", params: params, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.jobdiaayBasePath + "diary022", params: params, type: 'json', callback: function (json) {
ydata = json.rows; ydata = json.rows;
echartsPie.setOption({ echartsPie.setOption({
series: { series: {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册