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