fileList.html 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" ng-app="app">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <meta http-equiv="Pragma" content="no-cache" />
  6. <meta http-equiv="Cache-Control" content="no-cache" />
  7. <meta http-equiv="Expires" content="0" />
  8. <title>上传小程序</title>
  9. <link href="../../AFrontEnd/css/animate.css" rel="stylesheet" />
  10. <link href="../../AFrontEnd/css/fontawesome/css/font-awesome.css" rel="stylesheet" />
  11. <link href="../../AFrontEnd/css/bootstrap.css" rel="stylesheet" />
  12. <link href="../../AFrontEnd/css/style.css" rel="stylesheet" />
  13. <script>document.write("<link href='../../AFrontEnd/css/special.css?time=" + new Date().getTime() + "' rel='stylesheet'>");</script>
  14. <style>
  15. .upload {
  16. overflow: hidden;
  17. position: relative;
  18. }
  19. .upload-tip {
  20. float: left;
  21. width: 100%;
  22. margin-top: 35px;
  23. padding: 0 10px;
  24. color: #666;
  25. font-size: 13px !important;
  26. border-radius: 5px;
  27. display: none;
  28. text-align: left;
  29. }
  30. .upload-file-single {
  31. position: absolute;
  32. height: 29px;
  33. line-height: 30px;
  34. top: -5px;
  35. left: 3px;
  36. opacity: 0;
  37. font-size: 0;
  38. filter: alpha(opacity=0);
  39. cursor: pointer !important;
  40. }
  41. .upload-loading {
  42. display: inline-block;
  43. width: 100%;
  44. height: 100%;
  45. padding: 3px;
  46. text-align: center;
  47. background: #E8E8E8;
  48. opacity: 0.4;
  49. position: absolute;
  50. left: 0;
  51. top: 0;
  52. z-index: 10;
  53. }
  54. </style>
  55. </head>
  56. <body ng-controller="listCtrl as ctl" ng-cloak>
  57. <div class="sp-page-mgn">
  58. <div class="sp-page-pad">
  59. <div class="sp-page-tab">
  60. <div class="sp-page-col">
  61. <div class="sp-page-title"></div>
  62. </div>
  63. </div>
  64. <div class="sp-page">
  65. <div class="sp-box">
  66. <div class="sp-page-center" style="width:1000px;line-height:32px">
  67. <div class="sp-col-70">
  68. <label ng-click="ctl.getData()"><input type="radio" name="path" ng-model="ctl.search.path1" value="/root/TongWeb7.0/applications" />测试服务器</label>
  69. <label ng-click="ctl.getData()"><input type="radio" name="path" ng-model="ctl.search.path1" value="/opt/TongWeb/applications" />正式服务器</label>
  70. <input class="sp-input sp-pull-right" style="width:40%" ng-model="ctl.search.path2" />
  71. <label class="sp-pull-right" ng-bind="ctl.search.path1"></label>
  72. </div>
  73. <div class="sp-col-30">
  74. <span class="sp-btn-blue sp-btn-radius" ng-click="ctl.getData()">检索</span>
  75. <span class="upload">
  76. <span class="sp-btn-blue sp-btn-radius">上传文件</span>
  77. <span class="sp-upload-tip"></span>
  78. <input id="fileupload1" style="width:86px" class="upload-file-single" ng-click="ctl.upload1()" type="file" name="files[]" multiple>
  79. <span class="upload-loading" ng-if="ctl.uploading"><i class="fa fa-spinner fa-pulse sp-fs-20"></i></span>
  80. </span>
  81. <span class="sp-btn-blue sp-btn-radius" ng-if="ctl.returnFlag" ng-click="ctl.getBack()">返回上一层</span>
  82. <!--<span class="upload">
  83. <span class="sp-btn-blue">上传文件夹(文件夹打包压缩按单个文件上传)</span>
  84. <span class="sp-upload-tip"></span>
  85. <input id="fileupload2" style="width:100px" class="upload-file-single" ng-click="ctl.upload2()" type="file" name="files[]" webkitdirectory multiple>
  86. </span>-->
  87. </div>
  88. </div>
  89. </div>
  90. <table class="sp-table">
  91. <thead>
  92. <tr>
  93. <th width="50">序号</th>
  94. <th>名称</th>
  95. <th>大小</th>
  96. <th>类型</th>
  97. <th>时间</th>
  98. <th width="300">操作</th>
  99. </tr>
  100. </thead>
  101. <tbody>
  102. <tr ng-repeat="item in ctl.list">
  103. <td ng-bind="$index+1"></td>
  104. <td>
  105. <img ng-if="item.prefix==''" src="img/file.png" />
  106. <a ng-bind="item.name" ng-if="item.prefix==''" ng-click="ctl.openFile(item)"></a>
  107. <span ng-bind="item.name" ng-if="item.prefix!=''"></span>
  108. </td>
  109. <td ng-bind="item.size"></td>
  110. <td ng-bind="item.prefix"></td>
  111. <td ng-bind="item.cdate"></td>
  112. <td>
  113. <button class="sp-btn-blue sp-btn-radius" ng-click="ctl.editFile(item)">编&nbsp;辑</button>
  114. <button ng-click="ctl.deleteFile(item)" class="sp-btn-red sp-btn-radius">删&nbsp;除</button>
  115. <button ng-click="ctl.downLoad(item)" class="sp-btn-green sp-btn-radius">下&nbsp;载</button>
  116. </td>
  117. </tr>
  118. </tbody>
  119. </table>
  120. <div class="sp-table-tip ng-hide" ng-show="ctl.noDataTip==0" ng-cloak>
  121. <i class="fa fa-exclamation-circle sp-mr-10" style="color:#FEA625;"></i>您好,暂未查询到相关信息!
  122. </div>
  123. </div>
  124. </div>
  125. <div class="sp-layer" id="editFile" style="width: 500px;">
  126. <div class="sp-layer-head" style="background:#2176d6">
  127. <div class="sp-page sp-text-center sp-font16">
  128. 修改文件名称
  129. <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
  130. ×
  131. </div>
  132. </div>
  133. </div>
  134. <div class="sp-layer-body">
  135. <table class="sp-grid-job">
  136. <tbody>
  137. <tr>
  138. <td class="sp-text-center">
  139. 文件名称
  140. </td>
  141. <td>
  142. <input type="text" ng-if="ctl.newFile.type==''" sp-flie class="sp-input" ng-model="ctl.newFile.newname" />
  143. <input type="text" ng-if="ctl.newFile.type!=''" class="sp-input" ng-model="ctl.newFile.newname" />
  144. </td>
  145. </tr>
  146. </tbody>
  147. </table>
  148. <div class="sp-line-txt sp-text-center sp-pt-10">
  149. <a class="sp-btn-blue sp-btn-sm sp-radius" ng-click="ctl.saveFileName()"><i class="fa fa-search sp-mr-5"></i>确 定</a>
  150. <a class="sp-btn-blue sp-btn-sm sp-radius" onclick="sp.layerhide()"><i class="fa fa-close sp-mr-5"></i>取 消</a>
  151. </div>
  152. </div>
  153. </div>
  154. </div>
  155. <script src="../../AFrontEnd/js/jquery/jquery-2.1.4.min.js"></script>
  156. <script src="../../AFrontEnd/js/laydate/laydate.js"></script>
  157. <script src="../../AFrontEnd/js/angularjs/angular.js"></script>
  158. <script src="../../AFrontEnd/js/angularjs/dirPagination.js"></script>
  159. <script src="../../apiurljs.js"></script>
  160. <script src="../../js/sm4.js"></script>
  161. <script>document.write('<scri' + 'pt src="../../AFrontEnd/js/special/special.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>');;</script>
  162. <script>document.write('<scri' + 'pt src="js/fileList.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>');;</script>
  163. <script src="../../AFrontEnd/js/special/spngvld.js"></script>
  164. <!--附件-->
  165. <script src="../../AFrontEnd/plugins/js.fileupload/vendor/jquery.ui.widget.js"></script>
  166. <script src="../../AFrontEnd/plugins/js.fileupload/jquery.iframe-transport.js"></script>
  167. <script src="../../AFrontEnd/plugins/js.fileupload/jquery.fileupload.js"></script>
  168. </body>
  169. </html>