1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>系统日志</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <meta name="viewport"
- content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
- <!-- 所有的 css js 资源 -->
- <link rel="stylesheet" href="static/kj/element-ui/theme-chalk/index.css">
- <link rel="stylesheet" href="static/sa.css">
- <script src="../../static/kj/vue.min.js"></script>
- <script src="../../static/kj/element-ui/index.js"></script>
- <script src="../../static/kj/httpVueLoader.js"></script>
- <script src="../../static/kj/jquery.min.js"></script>
- <script src="../../static/kj/layer/layer.js"></script>
- <script src="../../static/sa.js"></script>
- <style type="text/css">
- .c-panel .c-label {
- width: 8em;
- }
- </style>
- </head>
- <body>
- <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
- <!-- ------- 内容部分 ------- -->
- <div class="s-body">
- <div class="c-panel" style="height: 700px;overflow: auto; width: 500px;">
- <div style="display: flex;line-height: 28px;" v-for="(item,index) in list">
- <div>{{item.name}}</div>
- <div style="margin-left: 5px;">{{item.time}}</div>
- <div style="color: blue;cursor: pointer;margin-left: 8px;" @click="down(item.url)">下载</div>
- </div>
- </div>
- </div>
- </div>
- <script>
- var app = new Vue({
- el: '.vue-box',
- data: {
- list: [],
- },
- methods: {
- down(url){
- window.location.href=url;
- }
- },
- mounted: function() {
- sa.ajax('/SgApilog/sys/log', function(res) {
- this.list=res.data;
- }.bind(this))
- }
- })
- </script>
- </body>
- </html>
|