alreadylist.html 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="renderer" content="webkit|ie-comp|ie-stand">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  8. <meta http-equiv="Cache-Control" content="no-siteapp" />
  9. <!--[if lt IE 9]>
  10. <script type="text/javascript" src="${ctx}/assets/lib/html5.js"></script>
  11. <script type="text/javascript" src="${ctx}/assets/lib/respond.min.js"></script>
  12. <script type="text/javascript" src="${ctx}/assets/lib/PIE_IE678.js"></script>
  13. <![endif]-->
  14. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui/css/H-ui.min.css" />
  15. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/css/H-ui.admin.css" />
  16. <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/Hui-iconfont/1.0.7/iconfont.css" />
  17. <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/icheck/icheck.css" />
  18. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/skin/default/skin.css" id="skin" />
  19. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/css/style.css" />
  20. <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/zTree/v3/css/zTreeStyle/zTreeStyle.css" >
  21. <script type="text/ecmascript" src="${ctx}/assets/lib/jquery/1.9.1/jquery.js"></script>
  22. <script type="text/javascript" src="${ctx}/assets/static/h-ui/js/H-ui.js"></script>
  23. <script type="text/javascript" src="${ctx}/assets/lib/layer/3.0.3/layer.js"></script>
  24. <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/jqueryui/jquery-ui.css" />
  25. <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/jqgrid/css/ui.jqgrid.css" />
  26. <script type="text/ecmascript" src="${ctx}/assets/lib/jqueryui/jquery-ui.js"></script>
  27. <script type="text/ecmascript" src="${ctx}/assets/lib/jqgrid/js/i18n/grid.locale-cn.js"></script>
  28. <script type="text/ecmascript" src="${ctx}/assets/lib/jqgrid/js/jquery.jqGrid.min.js"></script>
  29. <script type="text/javascript" src="${ctx}/assets/js/base.js"></script>
  30. <script type="text/javascript" src="${ctx}/assets/lib/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script>
  31. <!--[if IE 6]>
  32. <script type="text/javascript" src="${ctx}/assets/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
  33. <script>DD_belatedPNG.fix('*');</script>
  34. <![endif]-->
  35. <script type="text/javascript">
  36. function refJQ(){
  37. $("#jqGrid").trigger("reloadGrid");
  38. }
  39. $(function() {
  40. $("#jqGrid").jqGrid({
  41. url : '${ctx}/myconsole/leadermail/getByPageForAlready',
  42. editurl:"${ctx}/myconsole/leadermail/saveOrUpdate",
  43. mtype : "POST",
  44. datatype : "json",
  45. caption:'已回复来信',
  46. prmNames : { //定义表单的主键 // Default valuesprmNames: {page:“page”,rows:“rows”, sort: “sidx”,order: “sord”, search:“_search”, nd:“nd”, npage:null} 当参数为null时不会被发到服务器端
  47. id: "keyid"
  48. },
  49. colModel : [ {
  50. label : '来信编号',
  51. name : 'keyid',
  52. key : true,
  53. editable: false,
  54. hidden:true
  55. }, {
  56. label : '来信内容',
  57. name : 'content',
  58. editable: true,
  59. width : 80,
  60. }, {
  61. label : '来信状态',
  62. name : 'tstate',
  63. editable: true,
  64. width : 40
  65. }, {
  66. label : '来信时间',
  67. name : 'inserttime',
  68. editable: true,
  69. width : 40
  70. } ],
  71. rownumbers : true,//添加左侧行号
  72. viewrecords : true,//是否在浏览导航栏显示记录总数
  73. rowNum : 15,//每页显示记录数
  74. rowList : [10,15,20,30,40,50 ],//用于改变显示行数的下拉列表框的元素数组。
  75. autowidth : true,
  76. height : 'auto',
  77. pager : "#jqGridPager",
  78. });
  79. $('#jqGrid').navGrid('#jqGridPager',
  80. {
  81. edit : false,
  82. add : false,
  83. del : true,
  84. search : true,
  85. view : true,
  86. position : "left",
  87. cloneToTop : true
  88. },{
  89. // 编辑按钮处理区
  90. },{
  91. // 添加按钮处理区
  92. },{
  93. // 删除按钮处理区
  94. afterSubmit: function(response,postdata)
  95. {
  96. var res=eval('(' + response.responseText + ')');
  97. if(res.flag)
  98. {
  99. layer.alert(res.message, {
  100. skin: 'layui-layer-molv' //样式类名
  101. ,closeBtn: 0
  102. });
  103. return [true,res.message,''];
  104. }
  105. else
  106. {
  107. layer.alert(res.message, {
  108. skin: 'layui-layer-molv' //样式类名
  109. ,closeBtn: 0
  110. });
  111. return [false,res.message,''];
  112. }
  113. },errorTextFormat : function(data) {
  114. return 'Error: ' + data.responseText
  115. }
  116. },{
  117. // search options 这里支持多条件查询
  118. multipleSearch: true,
  119. closeAfterSearch: true,
  120. sopt:['eq','ne','cn','nc','lt','le','gt','ge'],
  121. afterSubmit: function(r, data) {
  122. var messageString = r.responseText;
  123. var mesObj = eval('(' + messageString + ')');
  124. return [mesObj.state, mesObj.message];
  125. }
  126. }
  127. ).navButtonAdd('#jqGridPager',{
  128. title:"回复",
  129. caption:"修改回复",
  130. buttonicon:"ui-icon-del",
  131. onClickButton: function(){
  132. var sel=$('#jqGrid').jqGrid('getGridParam','selrow');
  133. if(sel==null){
  134. //alert('请先选择数据');
  135. parent.layer.alert("请先选择需要编辑的行!", {
  136. skin: 'layui-layer-molv' //样式类名
  137. ,closeBtn: 0
  138. });
  139. }else{
  140. layer.open({
  141. type: 2,
  142. title: '修改回复',
  143. shadeClose: true,
  144. shade: 0.8,
  145. area: ['670px', '460px'],
  146. content: '${ctx}/myconsole/leadermail/selectInfo?keyid='+sel
  147. });
  148. }
  149. },
  150. position : "last"
  151. }
  152. )
  153. ;
  154. })
  155. </script>
  156. <title>已回复来信</title>
  157. </head>
  158. <body>
  159. <div class="page-container">
  160. <table id="jqGrid"></table>
  161. <div id="jqGridPager"></div>
  162. </div>
  163. <footer class="footer mt-20">
  164. <div class="container">
  165. <p></p>
  166. </div>
  167. </footer>
  168. </body>
  169. </html>