12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- $(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('commentExpertCtrl',function($scope,$http){
- //获取评审列表
- $scope.reviewtasksParm = {
- "type":1,
- "pageIndex":1,
- "pageSize":20
- }
- $scope.getReviewTasksData = function(){
- $http.get(main_host + '/api/EvalCalibrationReviewTasks/'+8,{params:$scope.reviewtasksParm}).success(function(data){
- console.log(data);
- if(data.success){
- $scope.reviewtaskslists = 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');
- }]);
|