-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: hanhyu <[email protected]>
- Loading branch information
Showing
9 changed files
with
145 additions
and
5 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
new Vue({ | ||
el: ".all", | ||
data: { | ||
info: [] | ||
}, | ||
beforeCreate: function () { | ||
checkLogin(); | ||
}, | ||
created: function () { | ||
axiosConfig(); | ||
}, | ||
beforeMount: function () { | ||
}, | ||
mounted: function () { | ||
this.axios = axios; | ||
this.getRouterInfo(); | ||
}, | ||
methods: { | ||
getRouterInfo() { | ||
let self = this; | ||
this.axios({ | ||
method: 'get', | ||
url: 'system/logRouter/getInfo', | ||
params: { | ||
id: getUrlParam('id') | ||
} | ||
}) | ||
.then(function (response) { | ||
switch (response.data.code) { | ||
case 200: | ||
self.info = response.data.data; | ||
break; | ||
case 300: | ||
location.href = 'login.html'; | ||
break; | ||
default: | ||
layer.msg(response.data.msg); | ||
} | ||
}) | ||
.catch(function (error) { | ||
console.log(error); | ||
}); | ||
}, | ||
}, | ||
watch: {}, | ||
updated: function () { | ||
}, | ||
filters: {} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<title></title> | ||
<!--<link rel="import" href="../head_js.html">--> | ||
<meta content="webkit|ie-comp|ie-stand" name="renderer"> | ||
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"> | ||
<meta content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" | ||
name="viewport"/> | ||
<meta content="no-siteapp" http-equiv="Cache-Control"/> | ||
|
||
<link href="../../favicon.ico" rel="shortcut icon" type="image/x-icon"/> | ||
<link href="../../static/css/font.css" rel="stylesheet"> | ||
<link href="../../static/css/xadmin.css" rel="stylesheet"> | ||
<script charset="utf-8" src="../../static/lib/layui/layui.js" type="text/javascript"></script> | ||
<script src="../../static/js/xadmin.js" type="text/javascript"></script> | ||
|
||
<script src="../../static/js/axios.js" type="text/javascript"></script> | ||
<script src="../../conf/axiosConfig.js" type="text/javascript"></script> | ||
<script src="../../static/js/vue.js" type="text/javascript"></script> | ||
<link href="../../static/css/jquery.jsonview.css" rel="stylesheet" type="text/css"/> | ||
</head> | ||
|
||
<body> | ||
<div class="layui-fluid all"> | ||
<table class="layui-table layui-form" lay-size="lg"> | ||
<colgroup> | ||
<col width="50"> | ||
<col width="300"> | ||
<col> | ||
</colgroup> | ||
<tbody> | ||
<tr> | ||
<td>ID</td> | ||
<td>{{info.id}}</td> | ||
</tr> | ||
<tr> | ||
<td>请求内容</td> | ||
<td> | ||
<div id="req_json">{{info.req_data}}</div> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>响应内容</td> | ||
<td> | ||
<div id="resp_json">{{info.resp_data}}</div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</body> | ||
<script src="../../controller/log/router_info.js"></script> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters