5 * @name opnfvdashBoardAngularApp.controller:CaseController
8 * Controller of the opnfvdashBoardAngularApp
10 angular.module('opnfvApp')
11 .controller('CaseController', ['$scope', '$state', '$stateParams', 'TableFactory', function($scope, $state, $stateParams, TableFactory) {
14 $scope.projectSelect = "";
15 $scope.funcTestCase = ['test1func', 'test2func', 'test3func', 'test4func'];
16 $scope.yardStickCase = ['test1yard', 'test2yard', 'test3yard', 'test4yard'];
17 $scope.bottleNeckCase = ['test1bottle', 'test2bottle', 'test3bottle', 'test4bottle',
18 'test5bottle', 'test6bottle', 'test7bottle', 'test8bottle',
19 'test9bottle', 'test10bottle', 'test11bottle', 'test12bottle',
20 'test13bottle', 'test14bottle', 'test15bottle', 'test16bottle',
21 'test17bottle', 'test18bottle', 'test19bottle', 'test20bottle'
23 $scope.selectedFunc = ["test1func"];
24 $scope.selectBottle = ["test8bottle"];
25 $scope.versionlist = ["Colorado", "Master"];
26 $scope.VersionOption = [
27 { title: 'Colorado' },
30 $scope.VersionConfig = {
36 placeholder: 'Version',
37 onChange: function(value) {
38 checkElementArrayValue($scope.selection, $scope.VersionOption);
39 $scope.selection.push(value);
40 // console.log($scope.selection);
47 $scope.toggleSelection = toggleSelection;
48 $scope.toggleSelectionMulti = toggleSelectionMulti;
52 function toggleSelection(status) {
53 // var idx = $scope.weekselection.indexOf(status);
54 $scope.projectSelect = status;
58 function toggleSelectionMulti(status) {
59 var idx = $scope.selection.indexOf(status);
62 $scope.selection.splice(idx, 1);
64 $scope.selection.push(status);
66 console.log($scope.selection);