messageSendLog.jsp 2.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <style type="text/css">
  4. .datagrid-btable .datagrid-cell{text-overflow:ellipsis;white-space: nowrap;}
  5. </style>
  6. <script src = "plug-in/tools/jquery.tips.js"></script>
  7. <div id="divlist" class="easyui-layout" fit="true">
  8. <div region="center" style="padding:0px;border:0px">
  9. <t:datagrid name="mMessageSendLog" fitColumns="true" title="消息管理" actionUrl="mMessageController.do?messageSendLogData&id=${param.messageId}" idField="id" fit="true" queryMode="group"
  10. onLoadSuccess="onloaded" nowrap="true" >
  11. <t:dgCol title="主键" field="id" hidden="true" queryMode="single" width="120"></t:dgCol>
  12. <t:dgCol title="姓名" field="realname" queryMode="single" width="120"></t:dgCol>
  13. <t:dgCol title="微信" field="wx" queryMode="single" width="120"></t:dgCol>
  14. <t:dgCol title="短信" field="sms" queryMode="single" width="120"></t:dgCol>
  15. <t:dgCol title="邮箱" field="email" queryMode="single" width="120"></t:dgCol>
  16. <t:dgCol title="是否已读" field="is_read" queryMode="single" width="120" replace="未读_0,已读_1"></t:dgCol>
  17. <t:dgCol title="回复内容" field="reply" queryMode="single" width="400"></t:dgCol>
  18. </t:datagrid>
  19. </div>
  20. </div>
  21. <script type="text/javascript">
  22. function onloaded(){
  23. var _grid = $('#mMessageSendLog');
  24. var tableTd = $('div.datagrid-body td[field="reply"]');
  25. tableTd.each(function () {
  26. var $this = $(this);
  27. var index = $this.parent('tr').attr('datagrid-row-index');
  28. var rows = _grid.datagrid('getRows');
  29. var currentRow = rows[index];
  30. var content = '<div style="font-size:16px; max-width:700px;word-break: break-all; word-wrap: break-word;">' + currentRow.reply + '</div>';
  31. $this.tips({ content: content, wrapColor: 'black' });
  32. });
  33. }
  34. </script>