Commit 7b436708 by lepdou

portal 优化

parent 6698804e
......@@ -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) {
......
......@@ -181,7 +181,7 @@ table th {
}
.config-item-container {
padding-top: 2px;
padding-top: 19px;
}
.config-item-container .config-items {
......@@ -191,7 +191,6 @@ table th {
.namespace-view-table {
max-height: 700px;
/*overflow-y: scroll;*/
}
.namespace-view-table table {
......
......@@ -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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment