pubfiledata.html 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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/static/h-ui.admin/skin/default/skin.css" id="skin" />
  18. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/css/style.css" />
  19. <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/zTree/v3/css/zTreeStyle/zTreeStyle.css" >
  20. <script type="text/javascript" src="${ctx}/assets/lib/My97DatePicker/WdatePicker.js"></script>
  21. <script type="text/ecmascript" src="${ctx}/assets/lib/jquery/1.9.1/jquery.js"></script>
  22. <script type="text/javascript" src="${ctx}/assets/lib/jquery.form/jquery.form.min.js"></script>
  23. <script type="text/javascript" src="${ctx}/assets/lib/layer/3.0.3/layer.js"></script>
  24. <script type="text/javascript" src="${ctx}/assets/static/h-ui/js/H-ui.js"></script>
  25. <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/jqueryui/jquery-ui.css" />
  26. <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/jqgrid/css/ui.jqgrid.css" />
  27. <script type="text/ecmascript" src="${ctx}/assets/lib/jqueryui/jquery-ui.js"></script>
  28. <script type="text/ecmascript" src="${ctx}/assets/lib/jqgrid/js/i18n/grid.locale-cn.js"></script>
  29. <script type="text/ecmascript" src="${ctx}/assets/lib/jqgrid/js/jquery.jqGrid.min.js"></script>
  30. <script type="text/javascript" src="${ctx}/assets/js/base.js"></script>
  31. <script type="text/javascript" src="${ctx}/assets/lib/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script>
  32. <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-3.3.7/js/bootstrap.min.js"></script>
  33. <!--[if IE 6]>
  34. <script type="text/javascript" src="${ctx}/assets/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
  35. <script>DD_belatedPNG.fix('*');</script>
  36. <![endif]-->
  37. <script type="text/javascript">
  38. function showFlowPic(executionId){
  39. layer.open({
  40. title:"查看流转",
  41. type: 1,
  42. anim: 2,
  43. area: ['600px', '400px'],
  44. content: "<div style='margin:5px;'><img style='width:100%' src='${ctx}/myconsole/myflow/show?executionId="+executionId+"'></div>"
  45. });
  46. }
  47. $(function() {
  48. $(window).resize(function(){
  49. $("#jqGrid").setGridWidth($(window).width()-41); 
  50. });
  51. $("#jqGrid").jqGrid({
  52. url : '${ctx}/myconsole/complaint/pubfile/getPubFilePage?FileTypeID=${FileTypeID}',
  53. editurl:"${ctx}/myconsole/complaint/pubfile/",
  54. mtype : "POST",
  55. datatype : "json",
  56. multiselect: false,
  57. caption1:'公共文件列表',
  58. prmNames : { //定义表单的主键 // Default valuesprmNames: {page:“page”,rows:“rows”, sort: “sidx”,order: “sord”, search:“_search”, nd:“nd”, npage:null} 当参数为null时不会被发到服务器端
  59. id: "keyid", 
  60. oper:"oper",    
  61. addoper:"add",
  62. editoper:"edit",
  63. deloper:"del" 
  64. },
  65. colModel : [ {
  66. label : '数据编号',
  67. name : 'keyid',
  68. key : true,
  69. editable: false,
  70. hidden:true
  71. }, {
  72. label : '文件名',
  73. name : 'filename',
  74. width : 100,
  75. align:'center',
  76. },{
  77. label : '扩展名',
  78. name : 'fileext',
  79. width : 50,
  80. align:'center',
  81. },{
  82. label : '文件大小',
  83. name : 'filesize',
  84. width : 30,
  85. align:'center',
  86. },{
  87. label : '上传时间',
  88. name : 'recordtime',
  89. width : 30,
  90. align:'center',
  91. },{
  92. label : '操作',
  93. name:'operMod',
  94. index:'operMod',
  95. align:"center",
  96. width:50,
  97. sortable:false,
  98. formatter: function (cellvalue, options, rowdata) {
  99. var html ="";
  100. var strManagerShowFlag='${ManagerShowFlag}';
  101. html = "<button class='btn btn-primary radius size-S' onclick=downFile('"+rowdata.realpath+"/"+rowdata.keyid+"."+rowdata.fileext+"','"+rowdata.filename+"')>查看</button>";
  102. if(strManagerShowFlag=='')
  103. {
  104. html = html+"&nbsp&nbsp&nbsp<button class='btn btn-success radius size-S' onclick=delFileName('"+rowdata.keyid+"') >删除</button>";
  105. }
  106. return html;
  107. }
  108. }],
  109. rownumbers : true,//添加左侧行号
  110. viewrecords : true,//是否在浏览导航栏显示记录总数
  111. rowNum : 10,//每页显示记录数
  112. rowList : [10,15,20,30,40,50 ],//用于改变显示行数的下拉列表框的元素数组。
  113. autowidth : true,
  114. sortname : 'RecordTime',
  115. sortorder : 'desc',
  116. height : 'auto',
  117. pager : "#jqGridPager",
  118. //屏蔽点击任意单元格选中checkbox的问题
  119. beforeSelectRow: function (rowid, e) {
  120. var $myGrid = $(this),
  121. i = $.jgrid.getCellIndex($(e.target).closest('td')[0]),
  122. cm = $myGrid.jqGrid('getGridParam', 'colModel');
  123. return (cm[i].name === 'cb');
  124. }
  125. });
  126. doSearch();
  127. });
  128. //追加后续办理信息 2017-07-19
  129. function addDoData(appealid){
  130. fullOpen("${ctx}/myconsole/complaint/transact/addDoData?appealid="+appealid);
  131. }
  132. function downFile(filePath,fileName)
  133. {
  134. window.open('${serverURL!}/downloadFile.do?FileDownloadPath='+filePath+'&FileDownloadName='+fileName,'Derek','resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no');
  135. }
  136. function delFileName(strKeyID)
  137. {
  138. layer.confirm('确认要删除该文件吗?',{btn:['确定','取消']},function(){
  139. $('#form1').attr('action','${ctx}/myconsole/complaint/transact/delFileName?KeyID='+strKeyID);
  140. $('#form1').ajaxSubmit(setDelFileName);
  141. });
  142. }
  143. function setDelFileName(data){
  144. var res=eval('(' + data + ')');
  145. if(res.flag){
  146. layer.alert(res.message, {skin: 'layui-layer-molv',closeBtn: 1},
  147. function(){
  148. layer.closeAll('dialog');
  149. window.location.reload();
  150. });
  151. }else{
  152. if(res.flag == false)
  153. {
  154. layer.alert(res.message, {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  155. }
  156. }
  157. }
  158. //查看信息 2017-07-24
  159. function seeData(appealid){
  160. fullOpen("${ctx}/myconsole/complaint/register/seeData?appealid="+appealid);
  161. }
  162. function doSearch(){
  163. $('#search').click(function(){
  164. var strFileTypeID="${FileTypeID}";
  165. var strFileTypeName="${FileTypeName}";
  166. fullOpen("${ctx}/myconsole/complaint/pubfile/addPubFile?FileTypeID="+strFileTypeID+"&FileTypeName="+strFileTypeName);
  167. });
  168. }
  169. function doQuery(){
  170. var strFileName = $('#FileName').val();
  171. $("#jqGrid").jqGrid('setGridParam',{
  172. postData:{"FileName":strFileName}
  173. }).trigger('reloadGrid');
  174. }
  175. </script>
  176. <title>我的桌面</title>
  177. </head>
  178. <body>
  179. <div>
  180. <div style="text-align:center;height:30px;padding-top:10px;" >
  181. <form id="form1" method="post" class="form-horizontal" role="form">
  182. <table>
  183. <tr>
  184. <td valign="top" style="padding-top: 5px;text-align: left;width:400px">
  185. <label class="radio-inline" style="font-weight:700">
  186. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;文件名:
  187. </label>
  188. <input type="text" class="form-control" style="width:200px" value="" placeholder="" id="FileName" name="FileName" vmode="" vdisp="文件名" vtype="string" >
  189. </td>
  190. <td valign="top" style="padding-top: 5px;text-align: left;width:100px">
  191. <input type="button" value="查询" onclick=doQuery() style="width: 50px;" class="form-control gui-input form-control input-sm btn btn-primary btn-block" >
  192. </td>
  193. <td valign="top" style="padding-top: 5px;text-align: left;width:500px">
  194. </td>
  195. <td valign="top" style="padding-top: 1px;">
  196. <div ${ManagerShowFlag} >
  197. <input type="button" id="search" value="新 建" style="width: 50px;" class="form-control gui-input form-control input-sm btn btn-primary btn-block" >
  198. <b class="tooltip tip-left-top"></b>
  199. <label for="cardno" class="field-icon"><i class="fa fa-credit-card"></i>
  200. </label>
  201. </div>
  202. </td>
  203. </tr>
  204. </table>
  205. </form>
  206. </div>
  207. <div class="page-container">
  208. <table id="jqGrid"></table>
  209. <div id="jqGridPager"></div>
  210. </div>
  211. </div>
  212. </body>
  213. </html>