foldersAndFilesTPL.html 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {{# layui.each(d.items,function(index,item){}}
  2. {{# if(d.currId==item.fatherId){}}
  3. <tr>
  4. {{# if(item.type==0){}}
  5. <td onclick="downloadFile(this)" data_url="{{=item.fileUrl}}" data_name="{{=item.name}}" data_pass="{{=item.password}}" style="cursor:pointer">
  6. {{# if(item.password!=null && item.password!=''){}}
  7. <a href="###"><i class="iconfont icon-mima"></i></a>
  8. {{# } }}
  9. <a href="###"><i class="iconfont icon-wenjian1"></i></a>{{=item.name}} <br />
  10. {{# if(item.password!=null && item.password!='' && d.role>0){}}
  11. <span style="color:#00BFFF">[{{ translater('Password') }}:{{=item.password}}]</span>
  12. {{# } }}
  13. </td>
  14. <td>{{=item.fileSize}}{{# if(item.fileSize>0){}} M{{# } }}</td>
  15. <td>{{=item.creater}}</td>
  16. <td>{{ dateFormat(item.createTime) }}</td>
  17. <td>
  18. <a href="###" onclick="downloadFile(this)" data_url="{{=item.fileUrl}}" data_name="{{=item.name}}" data_pass="{{=item.password}}" title="{{ translater('Download') }}"><i class="iconfont icon-xiazai1"></i></a>
  19. {{# if(d.role>1){}}
  20. <a href="###" onclick="editFolderAndFiles(this)" data_id="{{=item.id}}" title="{{ translater('Config') }}"><i class="iconfont icon-peizhi"></i></a>
  21. <a href="###" onclick="deleteFolderAndFiles(this)" data_id="{{=item.id}}" title="{{ translater('Delete') }}"><i class="iconfont icon-shanchu"></i></a>
  22. {{# } }}
  23. </td>
  24. {{# } else { }}
  25. <td onclick="enterFolder(this)" data_id="{{=item.id}}" data_pass="{{=item.password}}" style="cursor:pointer">
  26. {{# if(item.password!=null && item.password!=''){}}
  27. <a href="###"><i class="iconfont icon-mima"></i></a>
  28. {{# } }}
  29. <a href="###"><i class="iconfont icon-wenjianjia1"></i></a>{{=item.name}} <br />
  30. {{# if(item.password!=null && item.password!='' && d.role>0){}}
  31. <span style="color:#00BFFF">{{ translater('Password') }}: {{=item.password}}</span>
  32. {{# } }}
  33. </td>
  34. <td>{{=item.fileSize}}{{# if(item.fileSize>0){}} M{{# } }}</td>
  35. <td>{{=item.creater}}</td>
  36. <td>{{ dateFormat(item.createTime) }}</td>
  37. <td>
  38. {{# if(d.role>1){}}
  39. <a href="###" onclick="editFolderAndFiles(this)" data_id="{{=item.id}}" title="{{ translater('Config') }}"><i class="iconfont icon-peizhi"></i></a>
  40. <a href="###" onclick="deleteFolderAndFiles(this)" data_id="{{=item.id}}" title="{{ translater('Delete') }}"><i class="iconfont icon-shanchu"></i></a>
  41. {{# } }}
  42. </td>
  43. {{# } }}
  44. </tr>
  45. {{# } }}
  46. {{# }); }}