angular.module('push') .controller('ActivtyScheduleHomeCtrl', function ($scope, $stateParams, DockingService, UtilService, UserService) { var infoid = $stateParams.infoid; var companylist = $stateParams.companylist; var reqlist = $stateParams.reqlist; $scope.user = UserService.user.user; //获取我的跟进列表 var getMyActivityFollowUpList = function () { $scope.showLoadingToast(); DockingService.getMyActivityFollowUpList(infoid).then(function (response) { $scope.myactfoluplist = response.list; $scope.hideLoadingToast(); }, function () { UtilService.showMess("网络不给力,请重试"); $scope.hideLoadingToast(); }) }; getMyActivityFollowUpList(); //修改跟进信息 $scope.goActivitySchedule = function (folupid) { $scope.go("ActivityScheduleEdit", {folupid: folupid, companylist: companylist, reqlist: reqlist}); }; //查看跟进信息 $scope.goActivityScheduleDetail = function (id) { $scope.go("ActivityLogisty", {folupid: id, role: 0}); }; //添加跟进状态信息 $scope.addScheduleInfo = function (id) { $scope.go("addState", {folupid: id}); }; //新建跟进信息 $scope.creageActivtySchedule = function () { $scope.go("ActivitySchedule", {infoid: infoid, companylist: companylist, reqlist: reqlist}); }; });