resourceLibraryTempData.js 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. angular.module('push')
  2. .factory('resourceLibraryTempData', function () {
  3. var resourcelibrarylist = [];
  4. var categoryindex = 0;
  5. var categorylist = [];//行业列表
  6. var achievementlist = [];//1:成果库
  7. var requirementlist = [];//2:需求库
  8. var enterpriselist = [];//6:企业库
  9. var personnellist = [];//8:人才库
  10. var privatelist = [];//私人库
  11. var checked = {
  12. SortType: 0,
  13. classificationType: 1001,
  14. starType: 0,
  15. MaturityType: 0,
  16. RightType: 0,
  17. ModelType: 0,
  18. BudgetType: 0,
  19. ScaleType: 0,
  20. EnterpriseType: 0,
  21. DegreeType: 0,
  22. sexType: 0,
  23. TitleType: 0,
  24. UniversityType: 0
  25. };
  26. return {
  27. //初始化资源库列表
  28. initContent: function (libtype, channelList) {
  29. var tempcontentlist = [];
  30. angular.forEach(channelList, function () {
  31. tempcontentlist.push({isload: false, currentPage: 1, reslist: []});
  32. });
  33. // console.log(tempcontentlist);
  34. achievementlist = angular.copy(tempcontentlist);
  35. requirementlist = angular.copy(tempcontentlist);
  36. enterpriselist = angular.copy(tempcontentlist);
  37. personnellist = angular.copy(tempcontentlist);
  38. },
  39. getResourceLibraryList: function () {
  40. return resourcelibrarylist;
  41. },
  42. setResourceLibraryList: function (templist) {
  43. resourcelibrarylist = templist;
  44. },
  45. getCategoryIndex: function () {
  46. return categoryindex;
  47. },
  48. setCategoryIndex: function (index) {
  49. categoryindex = index;
  50. },
  51. getCategoryList: function () {
  52. return categorylist;
  53. },
  54. setCategoryList: function (templist1) {
  55. categorylist = templist1;
  56. },
  57. getAchievementList: function () {
  58. return achievementlist;
  59. },
  60. setAchievementList: function (templist2) {
  61. achievementlist = templist2;
  62. },
  63. getRequirementList: function () {
  64. return requirementlist;
  65. },
  66. setRequirementList: function (templist3) {
  67. requirementlist = templist3;
  68. },
  69. getEenterpriseList: function () {
  70. return enterpriselist;
  71. },
  72. setEenterpriseList: function (templist4) {
  73. enterpriselist = templist4;
  74. },
  75. getPersonnelList: function () {
  76. return personnellist;
  77. },
  78. setPersonnelList: function (templist5) {
  79. personnellist = templist5;
  80. },
  81. getPrivateList: function () {
  82. return privatelist;
  83. },
  84. setPrivateList: function (templist6) {
  85. privatelist = templist6;
  86. },
  87. getChecked: function () {
  88. return checked;
  89. },
  90. setChecked: function (tempobj) {
  91. checked = tempobj;
  92. },
  93. resetChecked: function () {
  94. checked = {
  95. SortType: 0,
  96. classificationType: 1001,
  97. starType: 0,
  98. MaturityType: 0,
  99. RightType: 0,
  100. ModelType: 0,
  101. BudgetType: 0,
  102. ScaleType: 0,
  103. EnterpriseType: 0,
  104. DegreeType: 0,
  105. sexType: 0,
  106. TitleType: 0,
  107. UniversityType: 0
  108. };
  109. },
  110. test:function () {
  111. // console.log(requirementlist);
  112. // console.log(achievementlist);
  113. // console.log(enterpriselist);
  114. // console.log(personnellist);
  115. }
  116. }
  117. });