|
|
@@ -39,14 +39,37 @@ define(['app/app', 'calendar'], function(app) {
|
|
|
param.spaceUU = $scope.userInfo.enterprise.uu;
|
|
|
// 状态为申请中
|
|
|
param.status = 311;
|
|
|
- Enterprise.findApplyToMall(param, {}, function (page) {
|
|
|
- $scope.totalPages = page.totalPages;
|
|
|
- $scope.content = page.content;
|
|
|
- $scope.totalElements = page.totalElements;
|
|
|
- }, function (error) {
|
|
|
- $scope.totalPages = 0;
|
|
|
- toaster.pop('error', '数据获取失败,请重新刷新页面!');
|
|
|
- });
|
|
|
+ if ($rootScope.userInfo.enterprise.enAdminuu === $rootScope.userInfo.userUU ? true : false) {
|
|
|
+
|
|
|
+ User.isDevOrProd(null, function (data) {
|
|
|
+ // $scope.isProd = data.data;
|
|
|
+ $scope.urlPrex = data.data == 'success' ? 'https://sso.ubtob.com' : 'http://192.168.253.6:32323';
|
|
|
+ $http({
|
|
|
+ method: 'get',
|
|
|
+ dataType: 'json',
|
|
|
+ url: $scope.urlPrex + '/api/userspace/apply/info/mall',
|
|
|
+ params: {spaceUU: param.spaceUU, page: param.page, size: param.size, status: param.status, keyword: null}
|
|
|
+ }).success(function (page) {
|
|
|
+ console.log(page);
|
|
|
+ $scope.totalPages = page.totalPages;
|
|
|
+ $scope.content = page.content;
|
|
|
+ $scope.totalElements = page.totalElements;
|
|
|
+ }).error(function (response) {
|
|
|
+ toaster.pop('error', '获取未处理审批数据失败');
|
|
|
+ });
|
|
|
+ }, function (response) {
|
|
|
+ toaster.pop('error', '获取运行环境失败');
|
|
|
+ });
|
|
|
+
|
|
|
+ // Enterprise.findApplyToMall(param, {}, function (page) {
|
|
|
+ // $scope.totalPages = page.totalPages;
|
|
|
+ // $scope.content = page.content;
|
|
|
+ // $scope.totalElements = page.totalElements;
|
|
|
+ // }, function (error) {
|
|
|
+ // $scope.totalPages = 0;
|
|
|
+ // toaster.pop('error', '数据获取失败,请重新刷新页面!');
|
|
|
+ // });
|
|
|
+ }
|
|
|
}
|
|
|
applyToEnterpriseTableParams();
|
|
|
|