|
|
@ -1,8 +1,9 @@
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<head>
|
|
|
|
|
|
|
|
<title>接口文档</title>
|
|
|
|
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
<script src="js/vue.min.js" type="text/javascript"></script>
|
|
|
|
<script src="js/vue.min.js" type="text/javascript"></script>
|
|
|
|
<link href="css/base.css" rel="stylesheet">
|
|
|
|
|
|
|
|
</head>
|
|
|
|
</head>
|
|
|
|
<style>
|
|
|
|
<style>
|
|
|
|
* {
|
|
|
|
* {
|
|
|
@ -87,6 +88,17 @@
|
|
|
|
background: #eef0f4;
|
|
|
|
background: #eef0f4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.wrapper a{
|
|
|
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
border-bottom: 1px dashed #f00;
|
|
|
|
|
|
|
|
color: #4f4f4f;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.object{
|
|
|
|
|
|
|
|
border-bottom: 1px dashed #f00;
|
|
|
|
|
|
|
|
color: #4f4f4f;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
table {
|
|
|
|
table {
|
|
|
|
border-collapse: collapse;
|
|
|
|
border-collapse: collapse;
|
|
|
|
display: table;
|
|
|
|
display: table;
|
|
|
@ -168,9 +180,27 @@
|
|
|
|
<th>说明</th>
|
|
|
|
<th>说明</th>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<tr v-for="p in item.rspParams">
|
|
|
|
<tr v-for="p in item.rspParams">
|
|
|
|
<td>{{p.name}}</td>
|
|
|
|
<td v-if="p.type == 'Object'"><a href="#User">{{p.name}}</a></td>
|
|
|
|
<td v-if="p.type == 'Object'"><a href="javascript:;">{{p.type}}</a></td>
|
|
|
|
<td v-if="p.type != 'Object'">{{p.name}}</td>
|
|
|
|
<td v-if="p.type != 'Object'">{{p.type}}</td>
|
|
|
|
<td>{{p.type}}</td>
|
|
|
|
|
|
|
|
<td>{{p.note}}</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5 id="User">附录参数(<span class="object">User</span>)</h5>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="wrapper">
|
|
|
|
|
|
|
|
<table>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<th width="200">参数</th>
|
|
|
|
|
|
|
|
<th width="100">类型</th>
|
|
|
|
|
|
|
|
<th>说明</th>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr v-for="p in item.entParams">
|
|
|
|
|
|
|
|
<td v-if="p.type == 'Object'"><a href="javascript:;">{{p.name}}</a></td>
|
|
|
|
|
|
|
|
<td v-if="p.type != 'Object'">{{p.name}}</td>
|
|
|
|
|
|
|
|
<td>{{p.type}}</td>
|
|
|
|
<td>{{p.note}}</td>
|
|
|
|
<td>{{p.note}}</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
@ -215,12 +245,24 @@
|
|
|
|
type: "Object",
|
|
|
|
type: "Object",
|
|
|
|
note: "用户"
|
|
|
|
note: "用户"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
|
|
|
|
entParams: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: "username",
|
|
|
|
|
|
|
|
type: "String",
|
|
|
|
|
|
|
|
note: "用户名"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: "aliasName",
|
|
|
|
|
|
|
|
type: "String",
|
|
|
|
|
|
|
|
note: "用户别名"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
}],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
computed: {
|
|
|
|
list: function () {
|
|
|
|
list: function () {
|
|
|
|
let reg = new RegExp(this.searchKey, 'ig');// 不区分大小写
|
|
|
|
let reg = new RegExp(this.searchKey, 'ig');
|
|
|
|
if (this.searchKey) {
|
|
|
|
if (this.searchKey) {
|
|
|
|
return this.data.filter(function (item) {
|
|
|
|
return this.data.filter(function (item) {
|
|
|
|
return item.title.match(reg);
|
|
|
|
return item.title.match(reg);
|
|
|
|