Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
superrain51
apollo
提交
a32815ad
apollo
项目概览
superrain51
/
apollo
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
apollo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a32815ad
编写于
10月 12, 2016
作者:
Z
zhangle
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
optimize load more logic
上级
40ef0bd1
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
16 addition
and
10 deletion
+16
-10
apollo-portal/src/main/resources/static/scripts/controller/config/ReleaseHistoryController.js
...tic/scripts/controller/config/ReleaseHistoryController.js
+4
-3
apollo-portal/src/main/resources/static/scripts/directive/namespace-panel-directive.js
...ces/static/scripts/directive/namespace-panel-directive.js
+6
-3
apollo-portal/src/main/resources/static/scripts/services/CommitService.js
...c/main/resources/static/scripts/services/CommitService.js
+3
-2
apollo-portal/src/main/resources/static/scripts/services/ReleaseService.js
.../main/resources/static/scripts/services/ReleaseService.js
+3
-2
未找到文件。
apollo-portal/src/main/resources/static/scripts/controller/config/ReleaseHistoryController.js
浏览文件 @
a32815ad
...
...
@@ -24,15 +24,16 @@ release_history_module.controller("ReleaseHistoryController",
var
hasFindActiveRelease
=
false
;
function
findReleases
(
page
)
{
var
size
=
10
;
ReleaseService
.
findAllRelease
(
$scope
.
pageContext
.
appId
,
$scope
.
pageContext
.
env
,
$scope
.
pageContext
.
clusterName
,
$scope
.
pageContext
.
namespaceName
,
page
)
page
,
size
)
.
then
(
function
(
result
)
{
if
(
!
result
||
result
.
length
==
0
)
{
if
(
!
result
||
result
.
length
<
size
)
{
$scope
.
hasLoadAll
=
true
;
return
;
}
var
hasParseNamespaceType
=
false
;
...
...
apollo-portal/src/main/resources/static/scripts/directive/namespace-panel-directive.js
浏览文件 @
a32815ad
...
...
@@ -166,15 +166,19 @@ directive_module.directive('apollonspanel',
namespace
.
commits
=
[];
namespace
.
commitPage
=
0
;
}
var
size
=
10
;
CommitService
.
find_commits
(
scope
.
appId
,
scope
.
env
,
scope
.
cluster
,
namespace
.
baseInfo
.
namespaceName
,
namespace
.
commitPage
)
namespace
.
commitPage
,
size
)
.
then
(
function
(
result
)
{
if
(
result
.
length
==
0
)
{
if
(
result
.
length
<
size
)
{
namespace
.
hasLoadAllCommit
=
true
;
}
for
(
var
i
=
0
;
i
<
result
.
length
;
i
++
)
{
//to json
result
[
i
].
changeSets
=
JSON
.
parse
(
result
[
i
].
changeSets
);
...
...
@@ -418,7 +422,6 @@ directive_module.directive('apollonspanel',
return
true
;
}
}
}
});
apollo-portal/src/main/resources/static/scripts/services/CommitService.js
浏览文件 @
a32815ad
...
...
@@ -7,14 +7,15 @@ appService.service('CommitService', ['$resource', '$q', function ($resource, $q)
}
});
return
{
find_commits
:
function
(
appId
,
env
,
clusterName
,
namespaceName
,
page
)
{
find_commits
:
function
(
appId
,
env
,
clusterName
,
namespaceName
,
page
,
size
)
{
var
d
=
$q
.
defer
();
commit_resource
.
find_commits
({
appId
:
appId
,
env
:
env
,
clusterName
:
clusterName
,
namespaceName
:
namespaceName
,
page
:
page
page
:
page
,
size
:
size
},
function
(
result
)
{
d
.
resolve
(
result
);
...
...
apollo-portal/src/main/resources/static/scripts/services/ReleaseService.js
浏览文件 @
a32815ad
...
...
@@ -42,14 +42,15 @@ appService.service('ReleaseService', ['$resource', '$q', function ($resource, $q
return
d
.
promise
;
}
function
findAllReleases
(
appId
,
env
,
clusterName
,
namespaceName
,
page
)
{
function
findAllReleases
(
appId
,
env
,
clusterName
,
namespaceName
,
page
,
size
)
{
var
d
=
$q
.
defer
();
resource
.
find_all_releases
({
appId
:
appId
,
env
:
env
,
clusterName
:
clusterName
,
namespaceName
:
namespaceName
,
page
:
page
page
:
page
,
size
:
size
},
function
(
result
)
{
d
.
resolve
(
result
);
},
function
(
result
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录