|
|
@@ -36,42 +36,34 @@ define(['app/app', 'calendar'], function(app) {
|
|
|
var param = {};
|
|
|
param.page = params.page;
|
|
|
param.size = params.count;
|
|
|
- param.spaceUU = $scope.userInfo.enterprise.uu;
|
|
|
+ param.speaceUU = $scope.userInfo.enterprise.uu;
|
|
|
// 状态为申请中
|
|
|
param.status = 311;
|
|
|
- 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', '数据获取失败,请重新刷新页面!');
|
|
|
- // });
|
|
|
- }
|
|
|
+ $http({
|
|
|
+ method: 'get',
|
|
|
+ dataType: 'json',
|
|
|
+ url: $scope.urlPrex + '/api/userspace/apply/info/mall',
|
|
|
+ params: {speaceUU: param.speaceUU, page: param.page, size: param.size, status: param.status, keyword: null}
|
|
|
+ }).success(function (data) {
|
|
|
+ $scope.totalPages = data.content.totalPages;
|
|
|
+ $scope.content = data.content.content;
|
|
|
+ $scope.totalElements = data.content.totalElements;
|
|
|
+ }).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();
|
|
|
+ // applyToEnterpriseTableParams();
|
|
|
|
|
|
$scope.findMore = function () {
|
|
|
window.location.href = '#/account/management/';
|
|
|
@@ -133,6 +125,9 @@ define(['app/app', 'calendar'], function(app) {
|
|
|
}).error(function (response) {
|
|
|
toaster.pop('error', '获取未处理审批数据失败');
|
|
|
});
|
|
|
+
|
|
|
+ // 查询企业绑定列表
|
|
|
+ applyToEnterpriseTableParams();
|
|
|
// VendorService.getNotDealApplyCount({spaceUU: $scope.userInfo.enterprise.uu}, function (data) {
|
|
|
// console.log(data);
|
|
|
// $scope.count = data.content[311];
|