*Optimize the code.

This commit is contained in:
孙华伟
2022-04-12 11:17:20 +08:00
parent 6e4153cdb9
commit 80a565aa47
3 changed files with 6 additions and 5 deletions
-2
View File
@@ -1,5 +1,3 @@
.c-pri {overflow: hidden;}
#mainMenu .btn-toolbar .dropdown-menu li a.btn {text-align: left;}
.c-estimate {text-align: right;}
#closed {width: 49px; height: 25px; line-height:25px; background-color: #ddd; color: #3c495c; text-align: center; margin-left:15px; border-radius: 2px;}
#gray-line { height: 1px; margin-left:10px; background-color: #ddd;}
+1
View File
@@ -23,6 +23,7 @@ $lang->product->select = "请选择{$lang->productCommon}";
$lang->product->mine = '我负责';
$lang->product->other = '其他';
$lang->product->closed = '已关闭';
$lang->product->closedProduct = '已关闭的产品';
$lang->product->updateOrder = '排序';
$lang->product->all = "所有{$lang->productCommon}";
$lang->product->manageLine = "维护{$lang->productCommon}线";
+5 -3
View File
@@ -26,6 +26,8 @@
#swapper .tree li>.list-toggle {top: -1px;}
#subHeader .tree ul {display: block;}
#closed {width: 90px; height: 25px; line-height: 25px; background-color: #ddd; color: #3c495c; text-align: center; margin-left: 15px; border-radius: 2px;}
#gray-line {height: 1px; margin-left: 10px; margin-bottom:2px; background-color: #ddd;}
</style>
<?php
$productCounts = array();
@@ -135,8 +137,8 @@ $closedProductsHtml .= '</ul>';
<a class='pull-right toggle-right-col not-list-item'><?php echo $lang->product->closed?><i class='icon icon-angle-right'></i></a>
</div>
</div>
<div id="closed" hidden><?php echo $lang->product->closed?></div>
<div id="gray-line"></div>
<div id="closed" hidden><?php echo $lang->product->closedProduct?></div>
<div class="table-col col-right productTree">
<div class='list-group products'><?php echo $closedProductsHtml;?></div>
</div>
@@ -174,11 +176,11 @@ $(function()
}
if($('.form-control.search-input').val().length > 0)
{
$('#closed').attr("hidden",false);
$('#closed').attr("hidden", false);
}
else
{
$('#closed').attr("hidden",true);
$('#closed').attr("hidden", true);
}
});