sys-log.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>系统日志</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  6. <meta name="viewport"
  7. content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  8. <!-- 所有的 css js 资源 -->
  9. <link rel="stylesheet" href="static/kj/element-ui/theme-chalk/index.css">
  10. <link rel="stylesheet" href="static/sa.css">
  11. <script src="../../static/kj/vue.min.js"></script>
  12. <script src="../../static/kj/element-ui/index.js"></script>
  13. <script src="../../static/kj/httpVueLoader.js"></script>
  14. <script src="../../static/kj/jquery.min.js"></script>
  15. <script src="../../static/kj/layer/layer.js"></script>
  16. <script src="../../static/sa.js"></script>
  17. <style type="text/css">
  18. .c-panel .c-label {
  19. width: 8em;
  20. }
  21. </style>
  22. </head>
  23. <body>
  24. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  25. <!-- ------- 内容部分 ------- -->
  26. <div class="s-body">
  27. <div class="c-panel" style="height: 700px;overflow: auto; width: 500px;">
  28. <div style="display: flex;line-height: 28px;" v-for="(item,index) in list">
  29. <div>{{item.name}}</div>
  30. <div style="margin-left: 5px;">{{item.time}}</div>
  31. <div style="color: blue;cursor: pointer;margin-left: 8px;" @click="down(item.url)">下载</div>
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. <script>
  37. var app = new Vue({
  38. el: '.vue-box',
  39. data: {
  40. list: [],
  41. },
  42. methods: {
  43. down(url){
  44. window.location.href=url;
  45. }
  46. },
  47. mounted: function() {
  48. sa.ajax('/SgApilog/sys/log', function(res) {
  49. this.list=res.data;
  50. }.bind(this))
  51. }
  52. })
  53. </script>
  54. </body>
  55. </html>