接口文档

Former-commit-id: d0dccaa094bf328ea5a8333096a68c209841bf0b
master
wangbingit@outlook.com 4 years ago
parent 6ac4147f9c
commit 6764f12768

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

Loading…
Cancel
Save

Powered by TurnKey Linux.