1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- $(function() {
- var ww = $(window).width();
- var wh = $(window).height();
- var mainbox = $('.ui_mainbox');
- if (wh - 76 < 425) {
- mainbox.height(425);
- } else {
- mainbox.height(wh - 76);
- }
- if (ww > 1600) {
- mainbox.width(1600);
- $('.ui_button').width(1580);
- } else {
- mainbox.width(1200);
- $('.ui_button').width(1180);
- }
- //$('.cb,.rb').inputbox();
- $(window).resize(function() {
- ww = $(window).width();
- wh = $(window).height();
- if (wh - 76 < 425) {
- mainbox.height(425);
- } else {
- mainbox.height(wh - 76);
- }
- if (ww > 1600) {
- mainbox.width(1600);
- } else {
- mainbox.width(1200);
- }
- });
- });
- angular.module('app',[]).controller('arbitrationExpertCtrl',function($scope,$http){
- //获取评审列表
- $scope.arbitrationParm = {
- "pageIndex":1,
- "pageSize":20
- }
- $scope.getReviewTasksData = function(){
- $http.get(main_host + '/api/EvalStudentZCTasks',{params:$scope.arbitrationParm}).success(function(data){
- if(data.success){
- $scope.arbitrationlists = data.map.data.list;
- $scope.pageData = {
- "pageIndex": data.map.data.pageIndex,
- "pageSize": data.map.data.pageSize,
- "totalCounts": data.map.data.totalCounts,
- "totalPages": data.map.data.totalPages
- }
- }
-
- });
- }
- }).factory('frameAjaxInterceptor', function($q, $rootScope) {
- return {
- 'request': function(config) {
- return config;
- },
- 'requestError': function(rejection) {
- return $q.reject(rejection);
- },
- 'response': function(response) {
- return response;
- },
- 'responseError': function(rejection) {
- if (rejection.status == 504) {
- var d = dialog({
- title: '错误提示',
- content: "您超时间未操作,请重新登录本系统",
- ok: function() {
- document.location.href = '';
- },
- okValue: '确定'
- });
- d.showModal();
- return $q.reject(rejection);
- } else {
- return $q.reject(rejection);
- }
- }
- };
- }).config(['$httpProvider', function($httpProvider) {
- $httpProvider.interceptors.push('frameAjaxInterceptor');
- }]);
|