fanlongfei лет назад: 8
Родитель
Сommit
64fdbfcfb1
1 измененных файлов с 11 добавлено и 1 удалено
  1. 11 1
      WebUI/CallCenterWeb.UI/js/email.js

+ 11 - 1
WebUI/CallCenterWeb.UI/js/email.js

@@ -2,7 +2,7 @@
2 2
 var table=$('#tableEmail');
3 3
 initTable();
4 4
 function initTable() {
5
-//先销毁表格
5
+	//先销毁表格
6 6
 	table.bootstrapTable('destroy');
7 7
 	//初始化表格,动态从服务器加载数据
8 8
 	table.bootstrapTable({
@@ -80,6 +80,8 @@ function emailDetail(val,row){
80 80
 //通过现有的接口遍历 查看详情
81 81
 function look(str){
82 82
 	$.getJSON(huayi.config.callcenter_url + "EmailSend/GetEmailMessage", {
83
+		page: $('.page-number.active a').html(),
84
+		pagesize: $('.page-size').html(),
83 85
 		token: $.cookie("token")
84 86
 	}, function(result) {
85 87
 		var con = result.rows;
@@ -144,7 +146,15 @@ function look(str){
144 146
 //			$('.wid').html(con.E_Address);
145 147
 //			$('.time').html(con.E_EmailTime);
146 148
 //			$('.contentDetail').html(con.E_Content);
149
+//			if($('.contentDetail').html() == ' '){
150
+//				$('.contentDetail').html('邮件内容为空。');
151
+//			}
152
+//			
147 153
 //			$('.contentUrl p').html(con.E_AttachmentsUrl);
154
+//			if(!$('.contentUrl p').html()){
155
+//				$('.contentUrl p').html('没有附件。');
156
+//			}
157
+//					
148 158
 //			if(con.E_IsAudit == 1){
149 159
 //				$('.addEmail').show(); //添加按钮
150 160
 //			}else{