Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wrr-cat
apollo
提交
922a42b4
apollo
项目概览
wrr-cat
/
apollo
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
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,发现更多精彩内容 >>
提交
922a42b4
编写于
4月 26, 2016
作者:
L
lepdou
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #146 from lepdou/lepdou_master
portal 优化
上级
c5a67f5d
7b436708
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
6 addition
and
17 deletion
+6
-17
apollo-portal/src/main/resources/static/scripts/controller/app/AppConfigController.js
...rces/static/scripts/controller/app/AppConfigController.js
+0
-7
apollo-portal/src/main/resources/static/styles/common-style.css
...-portal/src/main/resources/static/styles/common-style.css
+1
-2
apollo-portal/src/main/resources/static/views/app.html
apollo-portal/src/main/resources/static/views/app.html
+5
-8
未找到文件。
apollo-portal/src/main/resources/static/scripts/controller/app/AppConfigController.js
浏览文件 @
922a42b4
...
...
@@ -112,7 +112,6 @@ application_module.controller("AppConfigController",
////// global view oper //////
$scope
.
switchView
=
function
(
namespace
,
viewType
)
{
if
(
namespace_view_type
.
TEXT
==
viewType
)
{
namespace
.
text
=
parseModel2Text
(
namespace
);
}
else
if
(
namespace_view_type
.
TABLE
==
viewType
)
{
...
...
@@ -169,12 +168,6 @@ application_module.controller("AppConfigController",
);
};
$scope
.
isItemsViewOpened
=
true
;
$scope
.
toggleItemView
=
function
(
isOpened
)
{
$scope
.
isItemsViewOpened
=
isOpened
;
};
//文本编辑框状态切换
$scope
.
toggleTextEditStatus
=
function
(
namespace
)
{
...
...
apollo-portal/src/main/resources/static/styles/common-style.css
浏览文件 @
922a42b4
...
...
@@ -181,7 +181,7 @@ table th {
}
.config-item-container
{
padding-top
:
2
px
;
padding-top
:
19
px
;
}
.config-item-container
.config-items
{
...
...
@@ -191,7 +191,6 @@ table th {
.namespace-view-table
{
max-height
:
700px
;
/*overflow-y: scroll;*/
}
.namespace-view-table
table
{
...
...
apollo-portal/src/main/resources/static/views/app.html
浏览文件 @
922a42b4
...
...
@@ -96,19 +96,16 @@
</div>
<div
class=
"col-md-9 config-item-container"
>
<a
ng-click=
"toggleItemView(true)"
>
全部展开
</a>
|
<a
ng-click=
"toggleItemView(false)"
>
全部收缩
</a>
<div
ng-repeat=
"namespace in namespaces"
>
<div
class=
"panel"
>
<header
class=
"panel-heading"
>
<div
class=
"row"
>
<div
class=
"col-md-3"
>
<img
src=
"../img/close.png"
class=
"i-15"
ng-show=
"!isItemsViewOpened"
/>
<img
src=
"../img/open.png"
class=
"i-15"
ng-show=
"isItemsViewOpened"
/>
<div
class=
"col-md-4"
>
<b>
{{namespace.namespace.namespaceName}}
</b>
<span
class=
"label label-info"
ng-show=
"namespace.itemModifiedCnt > 0"
>
有修改,可发布
<span
class=
"badge"
>
{{namespace.itemModifiedCnt}}
</span></span>
</div>
<div
class=
"col-md-
8
"
>
<div
class=
"col-md-
7
"
>
<div
class=
"btn-toolbar"
role=
"toolbar"
aria-label=
"..."
>
<div
class=
"btn-group"
role=
"group"
aria-label=
"..."
>
<button
type=
"button"
data-toggle=
"modal"
data-target=
"#releaseModal"
...
...
@@ -173,7 +170,7 @@
<!--text view-->
<textarea
class=
"form-control"
rows=
"30"
ng-show=
"
isItemsViewOpened &&
namespace.viewType == 'text'"
ng-show=
"namespace.viewType == 'text'"
ng-disabled=
"!namespace.isTextEditing"
ng-model=
"namespace.text"
>
{{namespace.text}}
</textarea>
...
...
@@ -181,7 +178,7 @@
<!--table view-->
<div
class=
"namespace-view-table"
>
<table
class=
"table table-bordered text-center table-hover"
ng-show=
"
isItemsViewOpened &&
namespace.viewType == 'table'"
>
ng-show=
"namespace.viewType == 'table'"
>
<thead>
<tr>
<th>
...
...
@@ -233,7 +230,7 @@
<!--历史修改视图-->
<div
class=
"J_historyview history-view"
ng-show=
"
isItemsViewOpened &&
namespace.viewType == 'history'"
>
ng-show=
"namespace.viewType == 'history'"
>
<div
class=
"row"
>
<div
class=
"col-md-11 col-md-offset-1 list"
style=
""
>
<div
class=
"media"
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录