parent
c904100008
commit
da890801a9
@ -0,0 +1,31 @@
|
||||
package xyz.wbsite.dbtool.javafx.po;
|
||||
|
||||
public class DocEnt {
|
||||
private String name;
|
||||
private String type;
|
||||
private String note;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getNote() {
|
||||
return note;
|
||||
}
|
||||
|
||||
public void setNote(String note) {
|
||||
this.note = note;
|
||||
}
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package xyz.wbsite.dbtool.javafx.po;
|
||||
|
||||
public class DocReq {
|
||||
private String name;
|
||||
private String type;
|
||||
private String note;
|
||||
private boolean required;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getNote() {
|
||||
return note;
|
||||
}
|
||||
|
||||
public void setNote(String note) {
|
||||
this.note = note;
|
||||
}
|
||||
|
||||
public boolean isRequired() {
|
||||
return required;
|
||||
}
|
||||
|
||||
public void setRequired(boolean required) {
|
||||
this.required = required;
|
||||
}
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
package xyz.wbsite.dbtool.javafx.po;
|
||||
|
||||
public class DocRsp {
|
||||
private String name;
|
||||
private String type;
|
||||
private String note;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getNote() {
|
||||
return note;
|
||||
}
|
||||
|
||||
public void setNote(String note) {
|
||||
this.note = note;
|
||||
}
|
||||
}
|
@ -0,0 +1,139 @@
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
[v-cloak] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
html, body, #app {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.search {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 240px;
|
||||
height: 70px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.search input {
|
||||
padding: 5px;
|
||||
height: 30px;
|
||||
outline: none;
|
||||
width: 100%;
|
||||
border: 1px dashed #cacaca;
|
||||
}
|
||||
|
||||
.search p {
|
||||
font-size: 12px;
|
||||
color: #757575;
|
||||
padding: 5px;
|
||||
transform: scale(0.8);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.side {
|
||||
height: calc(100% - 70px);
|
||||
margin-top: 70px;
|
||||
width: 240px;
|
||||
position: fixed;
|
||||
}
|
||||
|
||||
.side ul li a {
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
padding: 8px 15px;
|
||||
color: #585858;
|
||||
}
|
||||
|
||||
.side ul li a:hover {
|
||||
opacity: .9;
|
||||
background: #efefef;
|
||||
}
|
||||
|
||||
.side ul li a.select {
|
||||
opacity: .9;
|
||||
background: #efefef;
|
||||
}
|
||||
|
||||
.body {
|
||||
margin-left: 240px;
|
||||
width: calc(100% - 240px);
|
||||
height: 100%;
|
||||
background: #ffffff;
|
||||
position: fixed;
|
||||
}
|
||||
|
||||
.api {
|
||||
width: 700px;
|
||||
}
|
||||
|
||||
.api h3 {
|
||||
background: #eef0f4;
|
||||
padding: 10px;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.api h5 {
|
||||
padding: 5px;
|
||||
color: #3e3e3e;
|
||||
font-weight: normal;
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.api .wrapper {
|
||||
padding: 16px;
|
||||
background: #eef0f4;
|
||||
}
|
||||
|
||||
.api .wrapper a {
|
||||
text-decoration: none;
|
||||
border-bottom: 1px dashed #f00;
|
||||
color: #4f4f4f;
|
||||
}
|
||||
|
||||
.api .object {
|
||||
border-bottom: 1px dashed #f00;
|
||||
color: #4f4f4f;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
display: table;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
background-color: transparent;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
table tr th, table tr td {
|
||||
font-size: 14px;
|
||||
color: #4f4f4f;
|
||||
line-height: 22px;
|
||||
border: 1px solid #ddd;
|
||||
padding: 8px;
|
||||
word-break: normal !important;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
table tr {
|
||||
border: 0;
|
||||
border-top: 1px solid #ddd;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
table tr:nth-child(2n) {
|
||||
background-color: #f7f7f7;
|
||||
}
|
||||
|
||||
table tr th {
|
||||
font-weight: 700;
|
||||
background-color: #eff3f5;
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
{
|
||||
"result": [
|
||||
{
|
||||
"title": "登录",
|
||||
"type": "ajax",
|
||||
"module": "system",
|
||||
"target": "user",
|
||||
"method": "login",
|
||||
"id": "ajax.system.user.login",
|
||||
"reqParams": [
|
||||
{
|
||||
"name": "username",
|
||||
"type": "String",
|
||||
"required": true,
|
||||
"note": "用户登录名"
|
||||
},
|
||||
{
|
||||
"name": "password",
|
||||
"type": "String",
|
||||
"required": true,
|
||||
"note": "用户登录密码"
|
||||
}
|
||||
],
|
||||
"rspParams": [
|
||||
{
|
||||
"name": "token",
|
||||
"type": "String",
|
||||
"note": "登录凭证"
|
||||
},
|
||||
{
|
||||
"name": "User",
|
||||
"type": "Object",
|
||||
"note": "用户"
|
||||
}
|
||||
],
|
||||
"entParams": [
|
||||
{
|
||||
"name": "username",
|
||||
"type": "String",
|
||||
"note": "用户名"
|
||||
},
|
||||
{
|
||||
"name": "aliasName",
|
||||
"type": "String",
|
||||
"note": "用户别名"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
var app = new Vue({
|
||||
el: "#app",
|
||||
data: {
|
||||
searchKey: '',
|
||||
select: {},
|
||||
data: [],
|
||||
},
|
||||
computed: {
|
||||
list: function () {
|
||||
var reg = new RegExp(this.searchKey, 'ig');
|
||||
if (this.searchKey) {
|
||||
return this.data.filter(function (item) {
|
||||
return item.title.match(reg);
|
||||
});
|
||||
}
|
||||
return this.data;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onSelect: function (item) {
|
||||
this.select = item;
|
||||
}
|
||||
},
|
||||
mounted: function () {
|
||||
$.ajax({
|
||||
url: "data.json",
|
||||
method: "get",
|
||||
dataType: "json",
|
||||
success: function (response) {
|
||||
console.log(response)
|
||||
this.data = response.result;
|
||||
}.bind(this)
|
||||
})
|
||||
}
|
||||
});
|
Loading…
Reference in new issue