fix 优化前端代码

master
luoyang 5 years ago
parent 05b882b5f1
commit eca84799a1

@ -24,10 +24,6 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS
return $http.get('/compliance/audit/compliance/clientViewFiles/'+ $stateParams.client_moniker); return $http.get('/compliance/audit/compliance/clientViewFiles/'+ $stateParams.client_moniker);
}] }]
} }
}).state('compliance_for_audit_detail', {
url: '/partner/complianceForAudit',
templateUrl: '/static/payment/partner/templates/compliance_auth.html',
controller: 'partnerComplianceAuditCtrl'
}).state('partner_compliance_auth.partner_kyc_files_auth', { }).state('partner_compliance_auth.partner_kyc_files_auth', {
url: '/partners/KycFiles', url: '/partners/KycFiles',
templateUrl: 'static/payment/kyc/templates/compliance_audit_kyc.html', templateUrl: 'static/payment/kyc/templates/compliance_audit_kyc.html',
@ -132,7 +128,6 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS
app.controller('partnerKycFilesDetail', ['$rootScope', '$scope', '$http', '$state', '$uibModal', 'commonDialog', 'file', function ($rootScope, $scope, $http, $state, $uibModal, commonDialog, file) { app.controller('partnerKycFilesDetail', ['$rootScope', '$scope', '$http', '$state', '$uibModal', 'commonDialog', 'file', function ($rootScope, $scope, $http, $state, $uibModal, commonDialog, file) {
$scope.file = file.data || {}; $scope.file = file.data || {};
debugger;
$scope.partner = $scope.file.client; $scope.partner = $scope.file.client;
$scope.passPartnerComplianceFiles = function () { $scope.passPartnerComplianceFiles = function () {
@ -175,15 +170,5 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS
}) })
} }
}]); }]);
app.controller('partnerComplianceAuditCtrl', ['$rootScope','$state','$stateParams', function ($rootScope,$state,$stateParams) {
if ($state.is('compliance_for_audit_detail')){
$state.go('partner_detail');
}
}]);
return app; return app;
}); });

Loading…
Cancel
Save