'use strict'; 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) { //保存报修主体 $scope.repairMain = JSON.parse(sessionStorage.getItem("repair_main")); $scope.wxIncidentWithCmdb = JSON.parse(sessionStorage.getItem("wxIncidentWithCmdb"));//资产 $scope.incidentWithConsumable = JSON.parse(sessionStorage.getItem("incidentWithConsumable"));//耗材 //切换报修主体 // $scope.repairMain.valueconfig = 2; $scope.model=JSON.parse($stateParams.model); console.log($scope.model) $scope.fileUrls=[]; $scope.process=[]; api_wechatfile.listAttachment('wechatRequesterIncident',$scope.model.id).then(function(res){ $scope.fileUrls=res.data }); if($scope.model.incident){ api_bpm_domain.flowTracingCustom($scope.model.incident.processInstanceId).then(function(res){ console.log(res); $scope.process=res.data }) } $scope.back=function(){ $state.go('app.desk.chart',{}) } $scope.showBigImg=false; $scope.showBigImgCli=function(data){ $scope.showBigImg=true; $scope.bigImgUrl=$rootScope.attachmentAddressSplicing(data) } $scope.closeBigImg=function(){ $scope.showBigImg=false } }]);