filelist.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!--by heyw想和其他正常表单融合得好些,所以样式改成了动态的-->
  2. <div ng-class="styleConfig.mainClass" ng-style="styleConfig.mainStyle">
  3. <div ng-class="styleConfig.titleClass">
  4. <div class="table-title">
  5. {{(ngModel.title==null ||ngModel.title=='')?'附件列表':ngModel.title}}
  6. </div>
  7. <div class="table-tool">
  8. <button type="button" ng-if="ngModel.type!='details'" ng-hide="ngModel.readonly" class="btn btn-primary" data-placement="center"
  9. data-animation="am-fade-and-scale" ng-click="addFile()">
  10. {{(ngModel.addFileButton==null ||ngModel.addFileButton=='')?'新增':ngModel.addFileButton}}
  11. </button>
  12. </div>
  13. </div>
  14. <div class="table-responsive list-table-panel">
  15. <table class="table table-bordered">
  16. <thead>
  17. <tr>
  18. <th>文件名</th>
  19. <th>扩展名</th>
  20. <th>文件类型</th>
  21. <th>上传时间</th>
  22. <th>操作</th>
  23. </tr>
  24. </thead>
  25. <tbody>
  26. <tr ng-repeat="it in ngModel.items">
  27. <td>
  28. <span title="{{it.Name}}"
  29. style="display: block;width: 400px; overflow: hidden; text-overflow:ellipsis; white-space: nowrap;">{{it.Name}}</span>
  30. </td>
  31. <td>{{it.Suffix}}</td>
  32. <td>{{it.filetypename}}</td>
  33. <td>{{it.CreateTime|date:'yyyy-MM-dd'}}</td>
  34. <td>
  35. <i class="glyphicon glyphicon-download-alt" ng-click="downfile(it.AttachmentId)" title="下载"></i>
  36. <i class="glyphicon glyphicon-trash" ng-click="delfile(it.AttachmentId)" ng-if="ngModel.type!='details'" ng-hide="(ngModel.eachReadonly && it.ReadOnly) || ngModel.readonly || (ngModel.onlyuserdel && ngModel.loginUserId!=it.userID )" title="删除"></i>
  37. </td>
  38. </tr>
  39. <tr ng-if="ngModel.items.length==0">
  40. <td colspan="5">暂无附件</td>
  41. </tr>
  42. </tbody>
  43. </table>
  44. </div>
  45. <!--参数含义:page-Index:当前页面,page-Size:每页显示多少数据,total-Length:数据总长度-->
  46. <pagination data-pageindex="selectdata.pageindex" data-pagesize="selectdata.pagesize" ng-hide="ngModel.isPaging == false"
  47. data-ptotal="selectdata.ptotal" style="margin-left: 0px;margin-right: 0px;"></pagination>
  48. </div>