Commit 922a42b4 by lepdou

Merge pull request #146 from lepdou/lepdou_master

portal 优化
parents c5a67f5d 7b436708
...@@ -112,7 +112,6 @@ application_module.controller("AppConfigController", ...@@ -112,7 +112,6 @@ application_module.controller("AppConfigController",
////// global view oper ////// ////// global view oper //////
$scope.switchView = function (namespace, viewType) { $scope.switchView = function (namespace, viewType) {
if (namespace_view_type.TEXT == viewType) { if (namespace_view_type.TEXT == viewType) {
namespace.text = parseModel2Text(namespace); namespace.text = parseModel2Text(namespace);
} else if (namespace_view_type.TABLE == viewType) { } else if (namespace_view_type.TABLE == viewType) {
...@@ -169,12 +168,6 @@ application_module.controller("AppConfigController", ...@@ -169,12 +168,6 @@ application_module.controller("AppConfigController",
); );
}; };
$scope.isItemsViewOpened = true;
$scope.toggleItemView = function (isOpened) {
$scope.isItemsViewOpened = isOpened;
};
//文本编辑框状态切换 //文本编辑框状态切换
$scope.toggleTextEditStatus = function (namespace) { $scope.toggleTextEditStatus = function (namespace) {
......
...@@ -181,7 +181,7 @@ table th { ...@@ -181,7 +181,7 @@ table th {
} }
.config-item-container { .config-item-container {
padding-top: 2px; padding-top: 19px;
} }
.config-item-container .config-items { .config-item-container .config-items {
...@@ -191,7 +191,6 @@ table th { ...@@ -191,7 +191,6 @@ table th {
.namespace-view-table { .namespace-view-table {
max-height: 700px; max-height: 700px;
/*overflow-y: scroll;*/
} }
.namespace-view-table table { .namespace-view-table table {
......
...@@ -96,19 +96,16 @@ ...@@ -96,19 +96,16 @@
</div> </div>
<div class="col-md-9 config-item-container"> <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 ng-repeat="namespace in namespaces">
<div class="panel"> <div class="panel">
<header class="panel-heading"> <header class="panel-heading">
<div class="row"> <div class="row">
<div class="col-md-3"> <div class="col-md-4">
<img src="../img/close.png" class="i-15" ng-show="!isItemsViewOpened"/>
<img src="../img/open.png" class="i-15" ng-show="isItemsViewOpened"/>
<b>{{namespace.namespace.namespaceName}}</b> <b>{{namespace.namespace.namespaceName}}</b>
<span class="label label-info" ng-show="namespace.itemModifiedCnt > 0">有修改,可发布 <span class="label label-info" ng-show="namespace.itemModifiedCnt > 0">有修改,可发布
<span class="badge">{{namespace.itemModifiedCnt}}</span></span> <span class="badge">{{namespace.itemModifiedCnt}}</span></span>
</div> </div>
<div class="col-md-8"> <div class="col-md-7">
<div class="btn-toolbar" role="toolbar" aria-label="..."> <div class="btn-toolbar" role="toolbar" aria-label="...">
<div class="btn-group" role="group" aria-label="..."> <div class="btn-group" role="group" aria-label="...">
<button type="button" data-toggle="modal" data-target="#releaseModal" <button type="button" data-toggle="modal" data-target="#releaseModal"
...@@ -173,7 +170,7 @@ ...@@ -173,7 +170,7 @@
<!--text view--> <!--text view-->
<textarea class="form-control" rows="30" <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"> ng-disabled="!namespace.isTextEditing" ng-model="namespace.text">
{{namespace.text}} {{namespace.text}}
</textarea> </textarea>
...@@ -181,7 +178,7 @@ ...@@ -181,7 +178,7 @@
<!--table view--> <!--table view-->
<div class="namespace-view-table"> <div class="namespace-view-table">
<table class="table table-bordered text-center table-hover" <table class="table table-bordered text-center table-hover"
ng-show="isItemsViewOpened && namespace.viewType == 'table'"> ng-show="namespace.viewType == 'table'">
<thead> <thead>
<tr> <tr>
<th> <th>
...@@ -233,7 +230,7 @@ ...@@ -233,7 +230,7 @@
<!--历史修改视图--> <!--历史修改视图-->
<div class="J_historyview history-view" <div class="J_historyview history-view"
ng-show="isItemsViewOpened && namespace.viewType == 'history'"> ng-show="namespace.viewType == 'history'">
<div class="row"> <div class="row">
<div class="col-md-11 col-md-offset-1 list" style=""> <div class="col-md-11 col-md-offset-1 list" style="">
<div class="media"> <div class="media">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment