Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
9fcce7c2
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1607
Star
168
Fork
130
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Skyeye
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
9fcce7c2
编写于
2月 09, 2022
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
API中心集成到一个平台管理
上级
1b396a18
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
74 addition
and
27 deletion
+74
-27
api/src/main/resources/template/js/apiPage/apiPage.js
api/src/main/resources/template/js/apiPage/apiPage.js
+42
-9
api/src/main/resources/template/tpl/apiPage/apiPage.html
api/src/main/resources/template/tpl/apiPage/apiPage.html
+29
-15
shop/src/main/resources/template/tpl/keepFitOrder/keepFitOrderDetails.html
...ources/template/tpl/keepFitOrder/keepFitOrderDetails.html
+1
-1
web/src/main/resources/template/assets/lib/winui/css/customer/skyeye-api.css
...ces/template/assets/lib/winui/css/customer/skyeye-api.css
+2
-2
未找到文件。
api/src/main/resources/template/js/apiPage/apiPage.js
浏览文件 @
9fcce7c2
...
...
@@ -29,7 +29,7 @@ layui.config({
$
(
document
).
attr
(
"
title
"
,
sysMainMation
.
mationTitle
);
$
(
"
.sys-logo
"
).
html
(
sysMainMation
.
mationTitle
);
});
loadUserMation
();
//加载用户信息
function
loadUserMation
(){
...
...
@@ -44,12 +44,41 @@ layui.config({
}
else
{
location
.
href
=
"
../../tpl/index/login.html?url=
"
+
escape
(
"
../../tpl/apiPage/apiPage.html
"
);
}
load
ListMation
();
load
ApiMicroservices
();
}});
}
else
{
location
.
href
=
"
../../tpl/index/login.html?url=
"
+
escape
(
"
../../tpl/apiPage/apiPage.html
"
);
}
}
/**
* 加载微服务
*/
function
loadApiMicroservices
(){
showGrid
({
id
:
"
apiMicroservicesId
"
,
url
:
reqBasePath
+
"
queryApiMicroservices
"
,
params
:
{},
pagination
:
false
,
template
:
$
(
"
#apiMicroservicesTemplate
"
).
html
(),
method
:
"
GET
"
,
ajaxSendLoadBefore
:
function
(
hdb
){
},
ajaxSendAfter
:
function
(
j
){
form
.
render
(
'
select
'
);
}
});
}
form
.
on
(
'
select(apiMicroservicesId)
'
,
function
(
data
)
{
var
value
=
data
.
value
;
if
(
isNull
(
value
))
{
$
(
"
#modelId
"
).
html
(
""
);
$
(
"
#appList
"
).
html
(
""
);
}
else
{
loadListMation
(
value
);
}
});
// 模块
var
model
=
new
Array
();
...
...
@@ -60,8 +89,8 @@ layui.config({
/**
* 加载接口列表
*/
function
loadListMation
(){
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
api005
"
,
params
:{},
type
:
'
json
'
,
callback
:
function
(
json
){
function
loadListMation
(
appId
){
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
queryAllSysEveReqMapping
"
,
params
:
{
appId
:
appId
},
type
:
'
json
'
,
method
:
"
GET
"
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
// 1.模块
model
=
loadModel
(
json
);
...
...
@@ -76,7 +105,7 @@ layui.config({
form
.
render
();
loadDefaultMain
();
}
else
{
winui
.
window
.
msg
(
json
.
returnMessage
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
json
.
returnMessage
,
{
icon
:
2
,
time
:
2000
});
}
}});
}
...
...
@@ -195,13 +224,17 @@ layui.config({
}
else
{
$
(
"
#appList .api-item
"
).
removeClass
(
"
active
"
);
$
(
this
).
addClass
(
"
active
"
);
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
api006
"
,
params
:{
rowId
:
$
(
this
).
attr
(
"
rowid
"
)},
type
:
'
json
'
,
method
:
"
GET
"
,
callback
:
function
(
json
){
var
params
=
{
appId
:
$
(
"
#apiMicroservicesId
"
).
val
(),
rowId
:
$
(
this
).
attr
(
"
rowid
"
)
};
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
queryApiDetails
"
,
params
:
params
,
type
:
'
json
'
,
method
:
"
GET
"
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
var
str
=
getDataUseHandlebars
(
fileMationTemplate
,
json
);
$
(
"
#contentDesc
"
).
html
(
str
);
active
[
type
]
?
active
[
type
].
call
(
this
)
:
''
;
}
else
{
winui
.
window
.
msg
(
json
.
returnMessage
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
json
.
returnMessage
,
{
icon
:
2
,
time
:
2000
});
}
}});
}
...
...
@@ -241,7 +274,7 @@ layui.config({
});
function
loadDefaultMain
(){
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
api004
"
,
params
:
{},
type
:
'
json
'
,
method
:
"
GET
"
,
callback
:
function
(
json
){
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
queryLimitRestrictions
"
,
params
:
{},
type
:
'
json
'
,
method
:
"
GET
"
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
var
item
=
{};
item
.
reception
=
getReceptionLimitMation
();
...
...
@@ -257,7 +290,7 @@ layui.config({
});
form
.
render
();
}
else
{
winui
.
window
.
msg
(
json
.
returnMessage
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
json
.
returnMessage
,
{
icon
:
2
,
time
:
2000
});
}
}});
}
...
...
api/src/main/resources/template/tpl/apiPage/apiPage.html
浏览文件 @
9fcce7c2
...
...
@@ -17,26 +17,33 @@
</div>
</div>
<div
class=
"apiListForm"
>
<div
class=
"api-left"
>
<div
class=
"api-search"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
style=
"height: 100%"
>
<div
class=
"winui-toolbar layui-col-xs12"
>
<div
class=
"winui-tool layui-col-xs3"
>
<select
id=
"apiMicroservicesId"
name=
"apiMicroservicesId"
lay-filter=
"apiMicroservicesId"
lay-search=
""
>
</select>
</div>
</div>
<div
class=
"api-left"
>
<div
class=
"api-search"
>
<div
class=
"layui-form-item"
>
<select
lay-filter=
"modelId"
lay-search=
""
win-verify=
"required"
id=
"modelId"
>
<select
lay-filter=
"modelId"
lay-search=
""
win-verify=
"required"
id=
"modelId"
>
</select>
</div>
<div
class=
"layui-form-item"
style=
"margin-top: 5px"
>
<input
type=
"text"
id=
"menuName"
placeholder=
"请输入名称或者链接"
class=
"layui-input"
data-search
/>
</div>
</div>
<div
class=
"app-list"
id=
"appList"
>
</select>
</div>
<div
class=
"layui-form-item"
style=
"margin-top: 5px"
>
<input
type=
"text"
id=
"menuName"
placeholder=
"请输入名称或者链接"
class=
"layui-input"
data-search
/>
</div>
</form>
</div>
</div>
<div
class=
"ap
p-list"
id=
"appList
"
>
<div
class=
"ap
i-right"
id=
"contentDesc
"
>
</div>
</div>
<div
class=
"api-right"
id=
"contentDesc"
>
</div>
</form>
</div>
<script
type=
"text/x-handlebars-template"
id=
"defaultTemplate"
>
...
...
@@ -265,6 +272,13 @@
<
/div
>
{{
/
bean
}}
</script>
<script
type=
"text/x-handlebars-template"
id=
"apiMicroservicesTemplate"
>
<
option
value
=
""
>
全部
<
/option
>
{{
#
each
rows
}}
<
option
value
=
"
{{appId}}
"
>
{{
appName
}}
<
/option
>
{{
/
each
}}
</script>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
...
...
shop/src/main/resources/template/tpl/keepFitOrder/keepFitOrderDetails.html
浏览文件 @
9fcce7c2
...
...
@@ -70,7 +70,7 @@
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
套餐
<
/label
>
<
label
class
=
"
layui-form-label
"
>
耗材
<
/label
>
<
div
class
=
"
layui-input-block
"
>
<
table
class
=
"
layui-table
"
>
<
thead
>
...
...
web/src/main/resources/template/assets/lib/winui/css/customer/skyeye-api.css
浏览文件 @
9fcce7c2
...
...
@@ -11,7 +11,7 @@
.apiListForm
.api-left
{
width
:
250px
;
float
:
left
;
height
:
100%
;
height
:
calc
(
100%
-
40px
)
;
border-right
:
1px
solid
grey
;
}
.apiListForm
.api-left
.api-search
{
...
...
@@ -144,7 +144,7 @@
.apiListForm
.api-right
{
width
:
calc
(
100%
-
271px
);
float
:
left
;
height
:
100%
;
height
:
calc
(
100%
-
40px
)
;
padding
:
0px
10px
;
text-align
:
left
;
overflow-y
:
auto
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录