wangcz 7 лет назад
Родитель
Сommit
deead0e193

+ 3 - 3
src/main/webapp/resources/js/sso/controllers/b2b/LogCtrl.js

@@ -2,6 +2,9 @@ define(['app/app'], function(app) {
     app.register.controller('LogCtrl', ['$scope', '$rootScope', 'BaseService', 'ngTableParams', 'B2bErpLog', 'B2bUsageLog',
         function ($scope, $rootScope, BaseService, ngTableParams, ErpLog, UsageLog) {
         $rootScope.active = 'approvalflow_log';
+        $scope.exportXls = function () {
+           window.open(BaseService.getB2bUrl() + '/log/erp/xls');
+        };
         $scope.erpParams = new ngTableParams({
             page: 1,
             count: 20,
@@ -25,9 +28,6 @@ define(['app/app'], function(app) {
                 });
             }
         });
-        $scope.export = function () {
-            window.open(BaseService.getB2bUrl() + '/log/erp/xls');
-        }
         $scope.usageParams = new ngTableParams({
             page: 1,
             count: 20,

+ 1 - 1
src/main/webapp/resources/view/sso/b2b/log.html

@@ -62,7 +62,7 @@
 		<div class="title-div">
 			<span class="f14 bold">数据传输日志</span>
 			<div class="pull-right">
-				<a ng-click="export()" target="_self" class="text-simple"><i class="fa fa-file-text fa-fw"></i>导出</a>
+				<a ng-click="exportXls()" target="_self" class="text-simple"><i class="fa fa-file-text fa-fw"></i>导出</a>
 			</div>
 		</div>
 		<div class="pane-body clearfix" id="order-detail-list" style="width: 100%;">