123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml" ng-app="app">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta http-equiv="Pragma" content="no-cache" />
- <meta http-equiv="Cache-Control" content="no-cache" />
- <meta http-equiv="Expires" content="0" />
- <title>上传小程序</title>
- <link href="../../AFrontEnd/css/animate.css" rel="stylesheet" />
- <link href="../../AFrontEnd/css/fontawesome/css/font-awesome.css" rel="stylesheet" />
- <link href="../../AFrontEnd/css/bootstrap.css" rel="stylesheet" />
- <link href="../../AFrontEnd/css/style.css" rel="stylesheet" />
- <script>document.write("<link href='../../AFrontEnd/css/special.css?time=" + new Date().getTime() + "' rel='stylesheet'>");</script>
- <style>
- .upload {
- overflow: hidden;
- position: relative;
- }
- .upload-tip {
- float: left;
- width: 100%;
- margin-top: 35px;
- padding: 0 10px;
- color: #666;
- font-size: 13px !important;
- border-radius: 5px;
- display: none;
- text-align: left;
- }
- .upload-file-single {
- position: absolute;
- height: 29px;
- line-height: 30px;
- top: -5px;
- left: 3px;
- opacity: 0;
- font-size: 0;
- filter: alpha(opacity=0);
- cursor: pointer !important;
- }
- .upload-loading {
- display: inline-block;
- width: 100%;
- height: 100%;
- padding: 3px;
- text-align: center;
- background: #E8E8E8;
- opacity: 0.4;
- position: absolute;
- left: 0;
- top: 0;
- z-index: 10;
- }
- </style>
- </head>
- <body ng-controller="listCtrl as ctl" ng-cloak>
- <div class="sp-page-mgn">
- <div class="sp-page-pad">
- <div class="sp-page-tab">
- <div class="sp-page-col">
- <div class="sp-page-title"></div>
- </div>
- </div>
- <div class="sp-page">
- <div class="sp-box">
- <div class="sp-page-center" style="width:1000px;line-height:32px">
- <div class="sp-col-70">
- <label ng-click="ctl.getData()"><input type="radio" name="path" ng-model="ctl.search.path1" value="/root/TongWeb7.0/applications" />测试服务器</label>
- <label ng-click="ctl.getData()"><input type="radio" name="path" ng-model="ctl.search.path1" value="/opt/TongWeb/applications" />正式服务器</label>
- <input class="sp-input sp-pull-right" style="width:40%" ng-model="ctl.search.path2" />
- <label class="sp-pull-right" ng-bind="ctl.search.path1"></label>
- </div>
- <div class="sp-col-30">
- <span class="sp-btn-blue sp-btn-radius" ng-click="ctl.getData()">检索</span>
- <span class="upload">
- <span class="sp-btn-blue sp-btn-radius">上传文件</span>
- <span class="sp-upload-tip"></span>
- <input id="fileupload1" style="width:86px" class="upload-file-single" ng-click="ctl.upload1()" type="file" name="files[]" multiple>
- <span class="upload-loading" ng-if="ctl.uploading"><i class="fa fa-spinner fa-pulse sp-fs-20"></i></span>
- </span>
- <span class="sp-btn-blue sp-btn-radius" ng-if="ctl.returnFlag" ng-click="ctl.getBack()">返回上一层</span>
- <!--<span class="upload">
- <span class="sp-btn-blue">上传文件夹(文件夹打包压缩按单个文件上传)</span>
- <span class="sp-upload-tip"></span>
- <input id="fileupload2" style="width:100px" class="upload-file-single" ng-click="ctl.upload2()" type="file" name="files[]" webkitdirectory multiple>
- </span>-->
- </div>
- </div>
- </div>
- <table class="sp-table">
- <thead>
- <tr>
- <th width="50">序号</th>
- <th>名称</th>
- <th>大小</th>
- <th>类型</th>
- <th>时间</th>
- <th width="300">操作</th>
- </tr>
- </thead>
- <tbody>
- <tr ng-repeat="item in ctl.list">
- <td ng-bind="$index+1"></td>
- <td>
- <img ng-if="item.prefix==''" src="img/file.png" />
- <a ng-bind="item.name" ng-if="item.prefix==''" ng-click="ctl.openFile(item)"></a>
- <span ng-bind="item.name" ng-if="item.prefix!=''"></span>
- </td>
- <td ng-bind="item.size"></td>
- <td ng-bind="item.prefix"></td>
- <td ng-bind="item.cdate"></td>
- <td>
- <button class="sp-btn-blue sp-btn-radius" ng-click="ctl.editFile(item)">编 辑</button>
- <button ng-click="ctl.deleteFile(item)" class="sp-btn-red sp-btn-radius">删 除</button>
- <button ng-click="ctl.downLoad(item)" class="sp-btn-green sp-btn-radius">下 载</button>
- </td>
- </tr>
- </tbody>
- </table>
- <div class="sp-table-tip ng-hide" ng-show="ctl.noDataTip==0" ng-cloak>
- <i class="fa fa-exclamation-circle sp-mr-10" style="color:#FEA625;"></i>您好,暂未查询到相关信息!
- </div>
- </div>
- </div>
- <div class="sp-layer" id="editFile" style="width: 500px;">
- <div class="sp-layer-head" style="background:#2176d6">
- <div class="sp-page sp-text-center sp-font16">
- 修改文件名称
- <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
- ×
- </div>
- </div>
- </div>
- <div class="sp-layer-body">
- <table class="sp-grid-job">
- <tbody>
- <tr>
- <td class="sp-text-center">
- 文件名称
- </td>
- <td>
- <input type="text" ng-if="ctl.newFile.type==''" sp-flie class="sp-input" ng-model="ctl.newFile.newname" />
- <input type="text" ng-if="ctl.newFile.type!=''" class="sp-input" ng-model="ctl.newFile.newname" />
- </td>
- </tr>
- </tbody>
- </table>
- <div class="sp-line-txt sp-text-center sp-pt-10">
- <a class="sp-btn-blue sp-btn-sm sp-radius" ng-click="ctl.saveFileName()"><i class="fa fa-search sp-mr-5"></i>确 定</a>
- <a class="sp-btn-blue sp-btn-sm sp-radius" onclick="sp.layerhide()"><i class="fa fa-close sp-mr-5"></i>取 消</a>
- </div>
- </div>
- </div>
- </div>
- <script src="../../AFrontEnd/js/jquery/jquery-2.1.4.min.js"></script>
- <script src="../../AFrontEnd/js/laydate/laydate.js"></script>
- <script src="../../AFrontEnd/js/angularjs/angular.js"></script>
- <script src="../../AFrontEnd/js/angularjs/dirPagination.js"></script>
- <script src="../../apiurljs.js"></script>
- <script src="../../js/sm4.js"></script>
- <script>document.write('<scri' + 'pt src="../../AFrontEnd/js/special/special.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>');;</script>
- <script>document.write('<scri' + 'pt src="js/fileList.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>');;</script>
- <script src="../../AFrontEnd/js/special/spngvld.js"></script>
- <!--附件-->
- <script src="../../AFrontEnd/plugins/js.fileupload/vendor/jquery.ui.widget.js"></script>
- <script src="../../AFrontEnd/plugins/js.fileupload/jquery.iframe-transport.js"></script>
- <script src="../../AFrontEnd/plugins/js.fileupload/jquery.fileupload.js"></script>
- </body>
- </html>
|