ui-dropfilenotup.html 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <div class="row padding-sm no-padding-vr bordered no-border-hr ">
  2. <!--ng-if="options.dropfile"-->
  3. <div class="col-md-12">
  4. <!--ng-if="form.dropState"-->
  5. <div class="panel panel-white">
  6. <div class="panel-heading">
  7. <div class="col-md-6">
  8. <a class="btn btn-squared"><span>附件上传</span><span class="text-white">附件数: {{ uploader.queue.length }}</span></a>
  9. </div>
  10. <span class="btn btn-blue btn-o btn-file col-md-2 pull-right"><i class="fa fa-plus"></i><span translate="form.button.SELECTFILE"></span><input name="uploadedFile" type="file" nv-file-select="" uploader="uploader" />
  11. </span>
  12. </div>
  13. <div class="panel-body">
  14. <!--h3>附件列表</h3>-->
  15. <table class="table table-striped table-hover">
  16. <thead>
  17. <tr>
  18. <th class="center">名称</th>
  19. <th class="hidden-xs" ng-show="uploader.isHTML5">大小</th>
  20. <th class="hidden-xs" ng-show="uploader.isHTML5">进度</th>
  21. <th class="hidden-xs">状态</th>
  22. <th class="hidden-xs">操作</th>
  23. </tr>
  24. </thead>
  25. <tbody>
  26. <tr ng-repeat="item in uploader.queue">
  27. <td><strong>{{ item.file.name }}</strong></td>
  28. <td ng-show="uploader.isHTML5" nowrap>{{ item.file.size/1024/1024|number:2 }} MB</td>
  29. <td ng-show="uploader.isHTML5">
  30. <div class="progress" style="margin-bottom: 0;">
  31. <div class="progress-bar" role="progressbar" ng-style="{ 'width': item.progress + '%' }"></div>
  32. </div>
  33. </td>
  34. <td class="center">
  35. <span ng-show="item.isSuccess"><i class="glyphicon glyphicon-ok"></i></span>
  36. <span ng-show="item.isCancel"><i class="glyphicon glyphicon-ban-circle"></i></span>
  37. <span ng-show="item.isError"><i class="glyphicon glyphicon-remove"></i></span>
  38. </td>
  39. <td nowrap>
  40. <button type="button" class="btn btn-warning btn-xs" ng-click="item.cancel()" ng-disabled="!item.isUploading">
  41. <span class="glyphicon glyphicon-ban-circle"></span> 取消
  42. </button>
  43. <button type="button" class="btn btn-danger btn-xs" ng-click="item.remove()">
  44. <span class="glyphicon glyphicon-trash"></span>
  45. </button>
  46. </td>
  47. </tr>
  48. </tbody>
  49. </table>
  50. <!-- <p>进度:</p>
  51. <div class="progress" style="margin-bottom: 0;">
  52. <div class="progress-bar" role="progressbar" ng-style="{ 'width': item.progress + '%' }"></div>
  53. </div> -->
  54. <button type="button" ng-if="to.isupdata" class="btn btn-success btn-s" ng-click="dropfile(to.ApiService,to.processInstanceId, to.taskId, to.userId)" ng-disabled="!uploader.getNotUploadedItems().length">
  55. <span class="glyphicon glyphicon-upload"></span> 上传
  56. </button>
  57. <!-- <button type="button" class="btn btn-warning btn-s" ng-click="uploader.cancelAll()" ng-disabled="!uploader.isUploading">
  58. <span class="glyphicon glyphicon-ban-circle"></span> 取消
  59. </button>
  60. <button type="button" class="btn btn-danger btn-s" ng-click="uploader.clearQueue()" ng-disabled="!uploader.queue.length">
  61. <span class="glyphicon glyphicon-trash"></span> 删除
  62. </button> -->
  63. </div>
  64. <!--panel body-->
  65. </div>
  66. </div>
  67. </div>
  68. <style>
  69. .btn-danger{
  70. background: #fff;
  71. color: #d43f3a;
  72. padding: 0 5px !important;
  73. }
  74. </style>