1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- angular.module('push')
- .controller('activityFeedBackListContentCtrl', function ($scope, $stateParams, ActivityService, $ionicActionSheet, UserService) {
- /* $scope.setStatusBar(1);*/
- var folupid = $stateParams.folupid;
- $scope.userid = UserService.id;
- $scope.roleid = UserService.role[0];
- var getFollowupDetail = function () {
- $scope.showLoadingToast();
- ActivityService.getFollowupDetail(folupid,1).then(function (response) {
- // console.log(response);
- $scope.followup = response;
- $scope.hideLoadingToast();
- }, function () {
- $scope.hideLoadingToast();
- })
- };
- getFollowupDetail();
- $scope.moreActivitySchedule = function () {
- $ionicActionSheet.show({
- buttons: [
- {text: '<a class="action-sheet-push">编辑需求详情</a>'},
- {text: '<a class="action-sheet-push">添加状态</a>'},
- {text: '<a class="action-sheet-push deleteBtnDetail">删除需求详情</a>'}
- ],
- cancelText: '取消',
- buttonClicked: function (index) {
- if (index == 0) {
- } else if (index == 1) {
- } else if (index == 2) {
- }
- return true;
- }
- });
- };
- // 添加反馈状态
- $scope.addState = function () {
- $scope.go("addState",{folupid: $scope.followup.id});
- };
- });
|