Browse Source

企业产品库数据加载增加加载中状态

hejq 7 years ago
parent
commit
3efb232e8d

+ 1 - 9
src/main/webapp/resources/js/index/app.js

@@ -13153,7 +13153,6 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
         var getService = function () {
             return $scope.searchMethod ? GetProductInfo : GetProductInfoNewest;
         };
-        $scope.loading = true;
 
         $scope.tableParams = new ngTableParams({
             page: 1,
@@ -13165,6 +13164,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
             total: 0,
             counts: [5, 10, 25, 50],
             getData: function ($defer, params) {
+                $scope.loading = true;
                 var pageParams = params.url();
                 pageParams.keyword = $scope.keyword;
                 pageParams.searchFilter = $scope.searchFilter;
@@ -13183,14 +13183,6 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
             }
         });
 
-       // //设置单据已读
-       // var setOrdersRead = function () {
-       //     var ids = [];
-       //     GetProductInfo.setRead({}, ids, function (message) {
-       //     });
-       // };
-       // setOrdersRead();
-
         // 搜索框回车
         $scope.onSearch = function (keyword) {
         	// 每次搜索重置获取数据方法

+ 1 - 1
src/main/webapp/resources/tpl/index/baseInfo/prodList.html

@@ -211,7 +211,7 @@ width: 80px;
 </div>
 <div class="block" id="public">
     <div class="pub-com_head">
-        <span>产品库{{loading}}</span>
+        <span>产品库</span>
         <div class="p-right">
             <a ng-click="exportXls()" target="_self" class="text-simple" title="导出Excel表格">导出</a>
             <!--<a ui-sref="sale.newProdInfo">新增</a>-->