ui-upDownFiles.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <div class="row worknumber fontcolor-two margin-top-10" style="margin-right: 0;">
  2. <div class="col-md-12 formheard_pad">
  3. <div class="pull-left fontsizes-16 font-weight-500">
  4. 附件上传
  5. </div>
  6. </div>
  7. <div class="col-md-12" style="padding:0;">
  8. <div class="panel panel-white">
  9. <div class="panel-heading">
  10. <span class="btn btn-blue btn-o btn-file col-md-12 pull-left"><i class="fa fa-plus"></i>
  11. <input name="uploadedFile" type="file" nv-file-select="" uploader="uploader" />
  12. </span>
  13. </div>
  14. <div class="panel-body">
  15. <table class="table table-striped table-hover" style="table-layout: fixed;">
  16. <thead>
  17. <tr>
  18. <th class="center" style="width:40%;">名称</th>
  19. <th class="hidden-xs" ng-show="uploader.isHTML5" style="width:20%;">大小</th>
  20. <th class="hidden-xs" style="width:20%;">操作</th>
  21. <th class="hidden-xs" style="width:20%;">附件下载</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. <!-- 已上传附件 -->
  26. <tr ng-repeat="attachment in attachments">
  27. <td title="{{attachment.name}}"><strong>{{ attachment.name }}</strong></td>
  28. <td ng-show="uploader.isHTML5" nowrap>{{ attachment.size/1024/1024|number:2 }} MB</td>
  29. <td nowrap>
  30. <!-- <button type="button" class="btn btn-danger btn-xs" ng-click="attachment.remove()">
  31. <span class="glyphicon glyphicon-trash"></span> 删除
  32. </button> -->
  33. </td>
  34. <td class="center">
  35. <div class="visible-md visible-lg hidden-sm hidden-xs">
  36. <a ng-click="download(attachment.id,attachment.name,attachment.token)"
  37. class="btn btn-transparent btn-xs" tooltip-placement="top" tooltip="下载"><i
  38. class="fa fa-download"></i></a>
  39. </div>
  40. </td>
  41. </tr>
  42. <!-- 本次即将上传附件 -->
  43. <tr ng-repeat="item in uploader.queue">
  44. <td title="{{item.file.name}}"><strong>{{ item.file.name }}</strong></td>
  45. <td ng-show="uploader.isHTML5" nowrap>{{ item.file.size/1024/1024|number:2 }} MB</td>
  46. <td nowrap>
  47. <button type="button" class="btn btn-danger btn-xs" ng-click="item.remove()">
  48. <span class="glyphicon glyphicon-trash"></span>
  49. </button>
  50. </td>
  51. <td></td>
  52. </tr>
  53. </tbody>
  54. </table>
  55. <!-- <button type="button" ng-if="to.isupdata" class="btn btn-success btn-s"
  56. ng-click="dropfile(to.ApiService,to.processInstanceId, to.taskId, to.userId)"
  57. ng-disabled="!uploader.getNotUploadedItems().length">
  58. <span class="glyphicon glyphicon-upload"></span> 上传
  59. </button> -->
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. <style>
  65. .btn-danger{
  66. background: #fff;
  67. color: #d43f3a;
  68. padding: 0 5px !important;
  69. }
  70. </style>