123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330 |
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml" data-ng-app="app">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
- <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>
- <script>document.write("<link href='css/flieList.css?time=" + new Date().getTime() + "' rel='stylesheet'>");</script>
- <!--引入文件上传的组件css-->
- <link rel="stylesheet" href="../../AFrontEnd/plugins/jquery-upload-file/css.fileupload/jquery.fileupload.css">
- <link rel="stylesheet" href="../../AFrontEnd/plugins/jquery-upload-file/css.fileupload/jquery.fileupload-ui.css">
- <link rel="stylesheet" href="../../AFrontEnd/plugins/jquery-upload-file/css.fileupload/blueimp-gallery.min.css">
- <script src="../../AFrontEnd/plugins/jquery-upload-file/js.fileupload/modernizr-2.6.2.js"></script>
- <script src="../../AFrontEnd/plugins/jquery-upload-file/js.fileupload/respond.js"></script>
- <script src="../../AFrontEnd/plugins/jquery-upload-file/js.fileupload/spark-md5.min.js"></script>
- <style>
- .sp-grid-job tbody td select:hover {
- border:0
- }
- input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
- -webkit-appearance: button;
- }
- </style>
- </head>
- <body>
- <div ng-controller="fileListCtrl as ctl" id="app" ng-cloak>
- <div class="wrapper wrapper-content animated fadeInRight">
- <div class="row">
- <div class="col-md-12">
- <div class="ibox float-e-margins">
- <div class="ibox-content">
- <div class="row">
- <div class="col-md-12">
- <div class="sp-page">
- <div class="sp-page-col">
- <span class="sp-page-title">共享文件</span>
- </div>
- <div class="sp-page-col sp-pull-right">
- <a class="sp-btn-gray sp-btn-radius sp-pull-left" ng-click="ctl.openAddFile()"><i class="fa fa-plus"></i> 新 建</a>
- <a class="sp-btn-gray sp-btn-radius sp-pull-left" ng-click="ctl.openUploadLayer()"><i class="fa fa-upload"></i> 上传文件</a>
- <a class="sp-btn-gray sp-btn-radius sp-pull-left" ng-click="ctl.openSearchLayer()"><i class="fa fa-search sp-mr-5"></i>查 询</a>
- <a class="sp-btn-gray sp-btn-radius sp-pull-left" ng-click="ctl.btnRefresh()"><i class="fa fa-refresh sp-mr-5"></i>刷 新</a>
- </div>
- </div>
- <div class="sp-line-gray"></div>
- <table class="sp-table">
- <thead>
- <tr>
- <th style="width: 80px;">序号</th>
- <th>文件名称</th>
- <th style="width: 150px;">文件分类</th>
- <th style="width: 150px;">文件大小</th>
- <th style="width: 150px;">上传人</th>
- <th style="width: 150px;">上传时间</th>
- <th style="width: 230px;">操作</th>
- </tr>
- </thead>
- <tbody>
- <tr dir-paginate="item in ctl.rows|itemsPerPage:ctl.itemsPerPage" total-items="ctl.total_count">
- <td ng-bind="(ctl.pageno-1)*ctl.itemsPerPage+($index+1)"></td>
- <td>
- <a ng-click="ctl.goUrl(item)" ng-if="item.SUNMANUSERID==ctl.userId" ng-bind="item.FILESNAME" class="sp-color-blue"></a>
- <a ng-if="item.SUNMANUSERID!=ctl.userId" ng-bind="item.FILESNAME" class="sp-color-blue"></a>
- <span ng-if="item.MBMARK!=null" ng-bind="item.MBMARK.slice(0,1)" style="width: 22px; height: 22px; border: 1px solid #FF0000; border-radius: 15px; color: #FF0000; cursor: pointer; display: inline-block; font-size: 12px; line-height: 18px;"></span>
- </td>
- <td ng-bind="item.TYPENAME"></td>
- <td ng-bind="item.FILESIZE"></td>
- <td ng-bind="item.SUBMAN"></td>
- <td ng-bind="item.UPTIMES"></td>
- <td>
- <button class="sp-btn-blue sp-btn-sm sp-btn-radius" ng-disabled="item.FILEURL.length==7" ng-click="ctl.downLoad(item.FILEURL)">下 载</button>
- <button class="sp-btn-red sp-btn-sm sp-btn-radius" ng-if="item.SUNMANUSERID==ctl.userId" ng-click="ctl.btnDelete(item)">删 除</button>
- </td>
- </tr>
- </tbody>
- </table>
- <div class="sp-table-tip ng-hide" ng-show="ctl.noDataTip == 0">
- <i class="fa fa-exclamation-circle sp-mr-10"></i>您好,暂未查询到相关信息!
- </div>
- <div class="sp-page" ng-show="ctl.noDataTip != 0">
- <div class="sp-page-col sp-pull-right">
- <div class="sp-lh-34">
- 每页 <select ng-model="ctl.itemsPerPage" ng-options="x for x in ctl.pageOptions"
- ng-init="ctl.itemsPerPage=ctl.pageOptions[0]"></select> 条
- </div>
- </div>
- <div class="sp-page-col sp-pull-right">
- <dir-pagination-controls max-size="8" direction-links="true" boundary-links="true"
- on-page-change="ctl.getData(newPageNumber)">
- </dir-pagination-controls>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="sp-layer" id="layer_uploadFile" style="width: 600px;">
- <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" ng-click="ctl.removeWarning()" style="position: relative">
- <form id="fileupload" method="POST" enctype="multipart/form-data"
- data-url="">
- <div class="fileupload-buttonbar">
- <div>
- <span class="btn btn-success fileinput-button">
- <span>添加文件</span>
- <input type="file" name="files[]" id="uploadBtn" multiple>
- </span>
- <button type="submit" class="btn btn-primary start">
- <span>全部上传</span>
- </button>
- <button type="reset" class="btn btn-warning cancel">
- <span>全部取消</span>
- </button>
- <button type="button" class="btn btn-danger delete">
- <span>全部删除</span>
- </button>
- <input type="checkbox" class="toggle">
- <div class="rightType">
- 素材分类:
- <select ng-model="ctl.uploadTypeCode" ng-change="ctl.changeResourceType()">
- <option ng-repeat="item in ctl.uploadTypeList track by $index" value="{{item.CODE}}" ng-bind="item.CNAME"></option>
- </select>
- </div>
- </div>
- </div>
- <table role="presentation" class="table table-striped fileList">
- <thead>
- <tr>
- <th style="width:240px;">文件名称</th>
- <th style="width:90px;">文件大小</th>
- <th style="width:120px">上传状态</th>
- <th style="width:130px">操作</th>
- </tr>
- </thead>
- <tbody class="files"></tbody>
- </table>
- <div class="noFileWarning">暂无文件</div>
- <div class="warninfo"></div>
- </form>
- </div>
- <div class="sp-layer-bottom">
- <a class="sp-btn-blue sp-radius" ng-click="ctl.saveUploadFile()"><i class="fa fa-save sp-mr-5"></i>保 存</a>
- <a class="sp-btn-blue sp-radius" onclick="sp.closeCenter('.sp-layer')"><i class="fa fa-reply-all sp-mr-5"></i>取 消</a>
- </div>
- </div>
- <div class="sp-layer" id="layer_search" 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>
- <select class="sp-select" ng-model="ctl.search.TYPECODE">
- <option value="">全部分类</option>
- <option ng-repeat="item in ctl.uploadTypeList track by $index" value="{{item.CODE}}" ng-bind="item.CNAME"></option>
- </select>
- </td>
- </tr>
- <tr>
- <td class="sp-text-center">
- 文件名称
- </td>
- <td>
- <input type="text" class="sp-input" placeholder="文件名称" ng-model="ctl.search.FILESNAME" />
- </td>
- </tr>
- </tbody>
- </table>
- <div class="sp-line-txt sp-text-center sp-pt-10">
- <a class="sp-btn-blue sp-radius" ng-click="ctl.doSearch()"><i class="fa fa-search sp-mr-5"></i>查 询</a>
- <a class="sp-btn-blue sp-radius" onclick="sp.closeCenter('.sp-layer')">
- <i class="fa fa-close sp-mr-5"></i>重 置
- </a>
- </div>
- </div>
- </div>
- <div class="sp-layer" id="layer_addwps" style="width: 400px;">
- <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" class="sp-input" placeholder="名称" ng-model="ctl.add.FILESNAME" />
- </td>
- </tr>
- <tr>
- <td class="sp-text-center">
- 素材分类
- </td>
- <td>
- <select ng-model="ctl.add.TYPECODE" ng-change="ctl.addWpsType()">
- <option ng-repeat="item in ctl.uploadTypeList track by $index" value="{{item.CODE}}" ng-bind="item.CNAME"></option>
- </select>
- </td>
- </tr>
- </tbody>
- </table>
- <div class="sp-line-txt sp-text-center sp-pt-10">
- <a class="sp-btn-blue sp-radius" ng-click="ctl.btnAddWps()"><i class="fa fa-search sp-mr-5"></i>确 定</a>
- <a class="sp-btn-blue sp-radius" onclick="sp.closeCenter('.sp-layer')"><i class="fa fa-close sp-mr-5"></i>取 消</a>
- </div>
- </div>
- </div>
- </div> <!--引入文件上传控件的js-->
- <script id="template-upload" type="text/x-tmpl">
- {% for (var i=0, file; file=o.files[i]; i++) { %}
- <tr class="template-upload fade">
- <td style="width:240px;">
- <div class="name" title="{%=file.name%}">{%=file.name%}</div>
- </td>
- <td style="width:90px;">
- <p class="size">Processing...</p>
- </td>
- <td style="width:120px;">
- <div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"><div class="progress-bar progress-bar-success" style="width:0%;"></div></div>
- </td>
- <td>
- {% if (!i && !o.options.autoUpload) { %}
- <button class="btn btn-primary start" disabled>
- <span>上传</span>
- </button>
- {% } %}
- {% if (!i) { %}
- <button class="btn btn-warning cancel">
- <span>取消</span>
- </button>
- {% } %}
- </td>
- </tr>
- {% } %}
- </script>
- <script id="template-download" type="text/x-tmpl">
- {% for (var i=0, file; file=o.files[i]; i++) { %}
- <tr class="template-download fade">
- <td>
- <div class="name">
- <input type="checkbox" name="delete" value="1" class="toggle">
- <span title="{%=file.name%}">{%=file.name%}</span>
- </div>
- {% if (file.error) { %}
- <div><span class="label label-danger">Error</span> {%=file.error%}</div>
- {% } %}
- </td>
- <td>
- <span class="size">{%=o.formatFileSize(file.size)%}</span>
- </td>
- <td>
- <span class="done">已完成</span>
- </td>
- <td>
- {% if (file.deleteUrl) { %}
- <button class="btn btn-danger delete" data-type="{%=file.deleteType%}" data-url="http://47.92.116.158/GongAnSJ_FileServer{%=file.deleteUrl%}" {% if (file.deletewithcredentials) { %} data-xhr-fields='{"withCredentials":true}' {% } %}>
- <span>删除</span>
- </button>
- {% } else { %}
- <button class="btn btn-warning cancel">
- <span>取消</span>
- </button>
- {% } %}
- </td>
- </tr>
- {% } %}
- </script>
- <script src="../../AFrontEnd/js/jquery/jquery-2.1.4.min.js"></script>
- <script src="../../AFrontEnd/plugins/jquery-upload-file/js.fileupload/vendor/jquery.ui.widget.js"></script>
- <script src="../../AFrontEnd/plugins/jquery-upload-file/js.fileupload/tmpl.min.js"></script>
- <script src="../../AFrontEnd/plugins/jquery-upload-file/js.fileupload/load-image.all.min.js"></script>
- <script src="../../AFrontEnd/plugins/jquery-upload-file/js.fileupload/canvas-to-blob.min.js"></script>
- <script src="../../AFrontEnd/plugins/jquery-upload-file/js.fileupload/jquery.blueimp-gallery.min.js"></script>
- <script src="../../AFrontEnd/plugins/jquery-upload-file/js.fileupload/jquery.iframe-transport.js"></script>
- <script src="../../AFrontEnd/plugins/jquery-upload-file/js.fileupload/jquery.fileupload.js"></script>
- <script src="../../AFrontEnd/plugins/jquery-upload-file/js.fileupload/jquery.fileupload-process.js"></script>
- <script src="../../AFrontEnd/plugins/jquery-upload-file/js.fileupload/jquery.fileupload-image.js"></script>
- <script src="../../AFrontEnd/plugins/jquery-upload-file/js.fileupload/jquery.fileupload-audio.js"></script>
- <script src="../../AFrontEnd/plugins/jquery-upload-file/js.fileupload/jquery.fileupload-video.js"></script>
- <script src="../../AFrontEnd/plugins/jquery-upload-file/js.fileupload/jquery.fileupload-validate.js"></script>
- <script src="../../AFrontEnd/plugins/jquery-upload-file/js.fileupload/jquery.fileupload-ui.js"></script>
- <!--自用js-->
- <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>
- </body>
- </html>
|