Просмотр исходного кода

fix: 对账前端数据赋值异常处理

hejq 7 лет назад
Родитель
Сommit
7861b47d62
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/main/webapp/resources/js/index/app.js

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

@@ -9926,11 +9926,12 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
                         suuorname: $scope.suuorname,
                         customerUU: $scope.customerUU
                     }, function (data) {
+                        $scope.checkMain = data;
                         if (data.details.length > 0) {
                             angular.forEach(data.details, function (item) {
                                 item.$selected = true;
                             });
-                            $scope.data = data;
+                            $scope.data = data.details;
                             $scope.checkboxes.checked = true;
                             $scope.getTotalMoney();
                         } else {