123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249 |
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="renderer" content="webkit|ie-comp|ie-stand">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
- <meta http-equiv="Cache-Control" content="no-siteapp" />
- <!--[if lt IE 9]>
- <script type="text/javascript" src="${ctx}/assets/lib/html5.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/respond.min.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/PIE_IE678.js"></script>
- <![endif]-->
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui/css/H-ui.min.css" />
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/css/H-ui.admin.css" />
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/Hui-iconfont/1.0.7/iconfont.css" />
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/skin/default/skin.css" id="skin" />
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/css/style.css" />
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/zTree/v3/css/zTreeStyle/zTreeStyle.css" >
-
- <script type="text/javascript" src="${ctx}/assets/lib/My97DatePicker/WdatePicker.js"></script>
- <script type="text/ecmascript" src="${ctx}/assets/lib/jquery/1.9.1/jquery.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/jquery.form/jquery.form.min.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/layer/3.0.3/layer.js"></script>
- <script type="text/javascript" src="${ctx}/assets/static/h-ui/js/H-ui.js"></script>
- <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/jqueryui/jquery-ui.css" />
- <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/jqgrid/css/ui.jqgrid.css" />
- <script type="text/ecmascript" src="${ctx}/assets/lib/jqueryui/jquery-ui.js"></script>
- <script type="text/ecmascript" src="${ctx}/assets/lib/jqgrid/js/i18n/grid.locale-cn.js"></script>
- <script type="text/ecmascript" src="${ctx}/assets/lib/jqgrid/js/jquery.jqGrid.min.js"></script>
- <script type="text/javascript" src="${ctx}/assets/js/base.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-3.3.7/js/bootstrap.min.js"></script>
- <!--[if IE 6]>
- <script type="text/javascript" src="${ctx}/assets/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
- <script>DD_belatedPNG.fix('*');</script>
- <![endif]-->
- <script type="text/javascript">
- function showFlowPic(executionId){
- layer.open({
- title:"查看流转",
- type: 1,
- anim: 2,
- area: ['600px', '400px'],
- content: "<div style='margin:5px;'><img style='width:100%' src='${ctx}/myconsole/myflow/show?executionId="+executionId+"'></div>"
- });
- }
- $(function() {
- $(window).resize(function(){
- $("#jqGrid").setGridWidth($(window).width()-41);
- });
- $("#jqGrid").jqGrid({
- url : '${ctx}/myconsole/complaint/pubfile/getPubFilePage?FileTypeID=${FileTypeID}',
- editurl:"${ctx}/myconsole/complaint/pubfile/",
- mtype : "POST",
- datatype : "json",
- multiselect: false,
- caption1:'公共文件列表',
- prmNames : { //定义表单的主键 // Default valuesprmNames: {page:“page”,rows:“rows”, sort: “sidx”,order: “sord”, search:“_search”, nd:“nd”, npage:null} 当参数为null时不会被发到服务器端
- id: "keyid",
- oper:"oper",
- addoper:"add",
- editoper:"edit",
- deloper:"del"
-
- },
- colModel : [ {
- label : '数据编号',
- name : 'keyid',
- key : true,
- editable: false,
- hidden:true
- }, {
- label : '文件名',
- name : 'filename',
- width : 100,
- align:'center',
- },{
- label : '扩展名',
- name : 'fileext',
- width : 50,
- align:'center',
- },{
- label : '文件大小',
- name : 'filesize',
- width : 30,
- align:'center',
- },{
- label : '上传时间',
- name : 'recordtime',
- width : 30,
- align:'center',
- },{
- label : '操作',
- name:'operMod',
- index:'operMod',
- align:"center",
- width:50,
- sortable:false,
- formatter: function (cellvalue, options, rowdata) {
- var html ="";
- var strManagerShowFlag='${ManagerShowFlag}';
- html = "<button class='btn btn-primary radius size-S' onclick=downFile('"+rowdata.realpath+"/"+rowdata.keyid+"."+rowdata.fileext+"','"+rowdata.filename+"')>查看</button>";
- if(strManagerShowFlag=='')
- {
- html = html+"   <button class='btn btn-success radius size-S' onclick=delFileName('"+rowdata.keyid+"') >删除</button>";
-
- }
- return html;
- }
- }],
- rownumbers : true,//添加左侧行号
- viewrecords : true,//是否在浏览导航栏显示记录总数
- rowNum : 10,//每页显示记录数
- rowList : [10,15,20,30,40,50 ],//用于改变显示行数的下拉列表框的元素数组。
- autowidth : true,
- sortname : 'RecordTime',
- sortorder : 'desc',
- height : 'auto',
- pager : "#jqGridPager",
- //屏蔽点击任意单元格选中checkbox的问题
- beforeSelectRow: function (rowid, e) {
- var $myGrid = $(this),
- i = $.jgrid.getCellIndex($(e.target).closest('td')[0]),
- cm = $myGrid.jqGrid('getGridParam', 'colModel');
- return (cm[i].name === 'cb');
- }
- });
-
- doSearch();
-
- });
- //追加后续办理信息 2017-07-19
- function addDoData(appealid){
- fullOpen("${ctx}/myconsole/complaint/transact/addDoData?appealid="+appealid);
- }
- function downFile(filePath,fileName)
- {
- window.open('${serverURL!}/downloadFile.do?FileDownloadPath='+filePath+'&FileDownloadName='+fileName,'Derek','resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no');
- }
- function delFileName(strKeyID)
- {
-
- layer.confirm('确认要删除该文件吗?',{btn:['确定','取消']},function(){
-
- $('#form1').attr('action','${ctx}/myconsole/complaint/transact/delFileName?KeyID='+strKeyID);
- $('#form1').ajaxSubmit(setDelFileName);
-
- });
-
-
- }
- function setDelFileName(data){
- var res=eval('(' + data + ')');
- if(res.flag){
- layer.alert(res.message, {skin: 'layui-layer-molv',closeBtn: 1},
- function(){
- layer.closeAll('dialog');
- window.location.reload();
- });
-
- }else{
- if(res.flag == false)
- {
- layer.alert(res.message, {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
- }
- }
- }
- //查看信息 2017-07-24
- function seeData(appealid){
- fullOpen("${ctx}/myconsole/complaint/register/seeData?appealid="+appealid);
- }
- function doSearch(){
- $('#search').click(function(){
-
- var strFileTypeID="${FileTypeID}";
- var strFileTypeName="${FileTypeName}";
- fullOpen("${ctx}/myconsole/complaint/pubfile/addPubFile?FileTypeID="+strFileTypeID+"&FileTypeName="+strFileTypeName);
-
-
- });
- }
- function doQuery(){
-
- var strFileName = $('#FileName').val();
- $("#jqGrid").jqGrid('setGridParam',{
- postData:{"FileName":strFileName}
- }).trigger('reloadGrid');
-
-
- }
- </script>
- <title>我的桌面</title>
- </head>
- <body>
- <div>
- <div style="text-align:center;height:30px;padding-top:10px;" >
- <form id="form1" method="post" class="form-horizontal" role="form">
-
- <table>
- <tr>
- <td valign="top" style="padding-top: 5px;text-align: left;width:400px">
- <label class="radio-inline" style="font-weight:700">
- 文件名:
- </label>
- <input type="text" class="form-control" style="width:200px" value="" placeholder="" id="FileName" name="FileName" vmode="" vdisp="文件名" vtype="string" >
- </td>
- <td valign="top" style="padding-top: 5px;text-align: left;width:100px">
- <input type="button" value="查询" onclick=doQuery() style="width: 50px;" class="form-control gui-input form-control input-sm btn btn-primary btn-block" >
- </td>
-
- <td valign="top" style="padding-top: 5px;text-align: left;width:500px">
-
- </td>
-
- <td valign="top" style="padding-top: 1px;">
- <div ${ManagerShowFlag} >
- <input type="button" id="search" value="新 建" style="width: 50px;" class="form-control gui-input form-control input-sm btn btn-primary btn-block" >
- <b class="tooltip tip-left-top"></b>
- <label for="cardno" class="field-icon"><i class="fa fa-credit-card"></i>
- </label>
- </div>
- </td>
- </tr>
- </table>
- </form>
- </div>
-
-
- <div class="page-container">
-
- <table id="jqGrid"></table>
- <div id="jqGridPager"></div>
- </div>
- </div>
-
- </body>
- </html>
|