jry_wxDetailCtrl.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. 'use strict';
  2. app.controller('wxDetailCtrl', ["$scope", "i18nService", "$rootScope", "$state","$stateParams", "$timeout", "$interval", "$modal", "SweetAlert", "uiGridConstants", "uiGridGroupingConstants", "Restangular", "api_bpm_data", "api_text", "api_user_data","api_wechatfile","api_bpm_domain", function($scope, i18nService, $rootScope, $state,$stateParams, $timeout, $interval, $modal, SweetAlert, uiGridConstants, uiGridGroupingConstants, Restangular, api_bpm_data, api_text, api_user_data,api_wechatfile,api_bpm_domain) {
  3. //保存报修主体
  4. $scope.repairMain = JSON.parse(sessionStorage.getItem("repair_main"));
  5. //切换报修主体
  6. // $scope.repairMain.valueconfig = 2;
  7. $scope.model=JSON.parse($stateParams.model);
  8. console.log($scope.model)
  9. $scope.fileUrls=[];
  10. $scope.process=[];
  11. api_wechatfile.listAttachment('wechatRequesterIncident',$scope.model.id).then(function(res){
  12. $scope.fileUrls=res.data
  13. });
  14. if($scope.model.incident){
  15. api_bpm_domain.flowTracingCustom($scope.model.incident.processInstanceId).then(function(res){
  16. console.log(res);
  17. $scope.process=res.data
  18. })
  19. }
  20. $scope.back=function(){
  21. $state.go('app.desk.chart',{})
  22. }
  23. $scope.showBigImg=false;
  24. $scope.showBigImgCli=function(data){
  25. $scope.showBigImg=true;
  26. $scope.bigImgUrl=data
  27. }
  28. $scope.closeBigImg=function(){
  29. $scope.showBigImg=false
  30. }
  31. }]);