|
@@ -664,7 +664,7 @@ function initSmsTable() {
|
|
|
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>';
|
|
|
+ return '<a style="color:#1276ff;cursor: pointer;" onclick="a(\''+ d.id +'\')">详情</a>';
|
|
|
}}
|
|
|
]]
|
|
|
});
|
|
@@ -701,22 +701,6 @@ function initSmsTableDetail(staffName, leadName, wechat, id) {
|
|
|
}}
|
|
|
]]
|
|
|
});
|
|
|
-
|
|
|
-
|
|
|
- //网站短信查看详情
|
|
|
- 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', {
|
|
@@ -758,9 +742,28 @@ function reloadSmsTable() {
|
|
|
return d.createTime;
|
|
|
}},
|
|
|
{title: '操作', templet: function(d) {
|
|
|
- return '<a style="color:#1276ff;cursor: pointer;" onclick="initSmsTableDetail(\''+ d.leaderperson +'\',\''+ d.workperson +'\',\''+ d.id+'\'">详情</a>';
|
|
|
+ return '<a style="color:#1276ff;cursor: pointer;" onclick="a(\''+ d.id +'\')">详情</a>';
|
|
|
}}
|
|
|
]]
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+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;
|
|
|
+ }},
|
|
|
+ ]]
|
|
|
+ });
|
|
|
+}
|
|
|
+
|