Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
apollo
Commits
922a42b4
Commit
922a42b4
authored
Apr 26, 2016
by
lepdou
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #146 from lepdou/lepdou_master
portal 优化
parents
c5a67f5d
7b436708
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
17 deletions
+6
-17
AppConfigController.js
...rces/static/scripts/controller/app/AppConfigController.js
+0
-7
common-style.css
...-portal/src/main/resources/static/styles/common-style.css
+1
-2
app.html
apollo-portal/src/main/resources/static/views/app.html
+5
-8
No files found.
apollo-portal/src/main/resources/static/scripts/controller/app/AppConfigController.js
View file @
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
View file @
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
View file @
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"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment