activityFeedBackListContentCtrl.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. angular.module('push')
  2. .controller('activityFeedBackListContentCtrl', function ($scope, $stateParams, ActivityService, $ionicActionSheet, UserService) {
  3. /* $scope.setStatusBar(1);*/
  4. var folupid = $stateParams.folupid;
  5. $scope.userid = UserService.id;
  6. $scope.roleid = UserService.role[0];
  7. var getFollowupDetail = function () {
  8. $scope.showLoadingToast();
  9. ActivityService.getFollowupDetail(folupid,1).then(function (response) {
  10. // console.log(response);
  11. $scope.followup = response;
  12. $scope.hideLoadingToast();
  13. }, function () {
  14. $scope.hideLoadingToast();
  15. })
  16. };
  17. getFollowupDetail();
  18. $scope.moreActivitySchedule = function () {
  19. $ionicActionSheet.show({
  20. buttons: [
  21. {text: '<a class="action-sheet-push">编辑需求详情</a>'},
  22. {text: '<a class="action-sheet-push">添加状态</a>'},
  23. {text: '<a class="action-sheet-push deleteBtnDetail">删除需求详情</a>'}
  24. ],
  25. cancelText: '取消',
  26. buttonClicked: function (index) {
  27. if (index == 0) {
  28. } else if (index == 1) {
  29. } else if (index == 2) {
  30. }
  31. return true;
  32. }
  33. });
  34. };
  35. // 添加反馈状态
  36. $scope.addState = function () {
  37. $scope.go("addState",{folupid: $scope.followup.id});
  38. };
  39. });