|
@@ -128,7 +128,7 @@ function openCheckPhoneWindows(data){
|
|
|
}
|
|
|
var str = "";
|
|
|
if(data.leaderperson && data.leaderphone){
|
|
|
- str += '<div class="layui-form-item" style="margin-left:30px;height: 16px;">'
|
|
|
+ str += '<div class="layui-form-item" style="margin-left:10px;height: 40px;">'
|
|
|
+ '<div class="layui-form-block">'
|
|
|
+ '<input type="checkbox" value="1" title="'
|
|
|
+ data.leaderperson + '(分管领导)(' + data.leaderphone + ')'
|
|
@@ -136,9 +136,8 @@ function openCheckPhoneWindows(data){
|
|
|
+ '</div>'
|
|
|
+ '</div>';
|
|
|
}
|
|
|
-
|
|
|
if(data.workperson && data.workphone){
|
|
|
- str += '<div class="layui-form-item" style="margin-left:30px;height: 16px;">'
|
|
|
+ str += '<div class="layui-form-item" style="margin-left:10px;height: 40px;" >'
|
|
|
+ '<div class="layui-form-block">'
|
|
|
+ '<input type="checkbox" value="2" title="'
|
|
|
+ data.workperson + '(工作人员)(' + data.workphone + ')'
|
|
@@ -158,7 +157,7 @@ function openCheckPhoneWindows(data){
|
|
|
title: '短信发送的人员',
|
|
|
content: $('#dxtxDiv'),
|
|
|
area: ['300px'],
|
|
|
- btn: ['发送'],
|
|
|
+ btn: ['发送','修改'],
|
|
|
yes: function(index, layero){
|
|
|
var types = new Array();
|
|
|
$('#dxtxForm input[type=checkbox]:checked').each(function() {
|
|
@@ -169,6 +168,43 @@ function openCheckPhoneWindows(data){
|
|
|
return;
|
|
|
}
|
|
|
addMessage(types, index);
|
|
|
+ },
|
|
|
+ btn2:function (index,layero){
|
|
|
+ layer.open({
|
|
|
+ type: 1,
|
|
|
+ title: '短信发送的人员信息修改',
|
|
|
+ content: $('#web_sitesms'),
|
|
|
+ area: ['450px','380px'],
|
|
|
+ btn: ['立即修改','取消'],
|
|
|
+ yes: function(index, layero){
|
|
|
+ var leaderperson =$('#leaderperson').val()
|
|
|
+ var leaderphone =$('#leaderphone').val()
|
|
|
+ var workperson =$('#workperson').val()
|
|
|
+ var workphone =$('#workphone').val()
|
|
|
+ $.ajax({
|
|
|
+ url: PATH + '/websitesms/updateWebsiteSms',
|
|
|
+ type: 'get',
|
|
|
+ data: {
|
|
|
+ "id":data.id,
|
|
|
+ "leaderperson":leaderperson,
|
|
|
+ "leaderphone":leaderphone,
|
|
|
+ "workperson":workperson,
|
|
|
+ "workphone":workphone,
|
|
|
+ },
|
|
|
+ success: function (suc) {
|
|
|
+ alert(suc);
|
|
|
+ if (suc == true) {
|
|
|
+ layer.msg("修改成功", {icon: 1});
|
|
|
+ } else {
|
|
|
+ layer.msg("修改失败", {icon: 5});
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ btn2:function (index,layero){
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
});
|
|
|
}
|
|
@@ -601,6 +637,29 @@ function initSmsTable() {
|
|
|
}}
|
|
|
]]
|
|
|
});
|
|
|
+
|
|
|
+ //网站短信记录
|
|
|
+ table.render({
|
|
|
+ elem: '#w-sms-website-table',
|
|
|
+ url: '/websitesms/getWebsiteSms',
|
|
|
+ skin: 'line',
|
|
|
+ cols: [[
|
|
|
+ {width:80, title: '序号', type: 'numbers'},
|
|
|
+ {field:'deptname', title: '部门名称'},
|
|
|
+ {title: '分管领导', templet: function(d) {
|
|
|
+ return d.leaderperson + " " + d.leaderphone;
|
|
|
+ }},
|
|
|
+ {title: '工作人员', templet: function(d) {
|
|
|
+ return d.workperson + " " + d.workphone;
|
|
|
+ }},
|
|
|
+ {title: '提醒记录', templet: function(d) {
|
|
|
+ return d.createTime + ""+ d.createTime;
|
|
|
+ }},
|
|
|
+ {title: '操作', templet: function(d) {
|
|
|
+ return '<a style="color:#1276ff;cursor: pointer;" onclick="initSmsTableDetail(\''+ d.staffName +'\',\''+ d.leadName +'\',\''+ (d.wType + '-' + d.wName) +'\',\''+ d.id +'\')">详情</a>';
|
|
|
+ }}
|
|
|
+ ]]
|
|
|
+ });
|
|
|
|
|
|
$('#w-sms-back').on('click', function() {
|
|
|
$('#w-sms-back').addClass('layui-hide');
|
|
@@ -635,7 +694,24 @@ function initSmsTableDetail(staffName, leadName, wechat, id) {
|
|
|
]]
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
+function a(id){
|
|
|
+ $('#w-sms-back').removeClass('layui-hide');
|
|
|
+ $('.w-sms-wai-div').addClass('layui-hide');
|
|
|
+ //网站短信查看详情
|
|
|
+ table.reload('w-sms-website-table', {
|
|
|
+ url: '/websitesms/getWebsiteSmsDetail',
|
|
|
+ where: {
|
|
|
+ 'id': id
|
|
|
+ },
|
|
|
+ page: true,
|
|
|
+ cols: [[
|
|
|
+ {field:'createTime', title: '发送时间', width: '15%'},
|
|
|
+ {title: '发送内容', templet: function(d) {
|
|
|
+ return d.sendContent;
|
|
|
+ }},
|
|
|
+ ]]
|
|
|
+ });
|
|
|
+}
|
|
|
function reloadSmsTable() {
|
|
|
table.reload('w-sms-wechat-table', {
|
|
|
url: '/smsmessage/getWechatSms',
|
|
@@ -658,5 +734,27 @@ function reloadSmsTable() {
|
|
|
}}
|
|
|
]]
|
|
|
});
|
|
|
+
|
|
|
+ //网站短信记录
|
|
|
+ table.reload('w-sms-website-table', {
|
|
|
+ url: '/websitesms/getWebsiteSms',
|
|
|
+ page: false,
|
|
|
+ cols: [[
|
|
|
+ {width:80, title: '序号', type: 'numbers'},
|
|
|
+ {field:'deptname', title: '部门名称'},
|
|
|
+ {title: '分管领导', templet: function(d) {
|
|
|
+ return d.leaderperson + " " + d.leaderphone;
|
|
|
+ }},
|
|
|
+ {title: '工作人员', templet: function(d) {
|
|
|
+ return d.workperson + " " + d.workphone;
|
|
|
+ }},
|
|
|
+ {title: '提醒记录', templet: function(d) {
|
|
|
+ return d.createTime;
|
|
|
+ }},
|
|
|
+ {title: '操作', templet: function(d) {
|
|
|
+ return '<a style="color:#1276ff;cursor: pointer;" onclick="initSmsTableDetail(\''+ d.staffName +'\',\''+ d.leadName +'\',\''+ (d.wType + '-' + d.wName) +'\',\''+ d.id +'\')">详情</a>';
|
|
|
+ }}
|
|
|
+ ]]
|
|
|
+ });
|
|
|
}
|
|
|
|