a7b64c032dbb1d874792dcdf9ca75a7dfd59850c.svn-base 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /*稽察*/
  2. import request from '@util/gw_ajax_request'
  3. const state = {
  4. //库别
  5. groupTypeData: [
  6. {
  7. label: "一般库",
  8. value: "1"
  9. },
  10. {
  11. label: "备用库",
  12. value: "2"
  13. },
  14. {
  15. label: "退役库",
  16. value: "3"
  17. },
  18. {
  19. label: "金名单",
  20. value: "4"
  21. },
  22. {
  23. label: "红名单",
  24. value: "5"
  25. },
  26. {
  27. label: "蓝名单",
  28. value: "6"
  29. },
  30. {
  31. label: "见习专家库",
  32. value: "7"
  33. }
  34. ],
  35. //角色
  36. roleTypeData: [
  37. {
  38. label: "前期专家",
  39. value: "11"
  40. },
  41. {
  42. label: "建管专家",
  43. value: "12"
  44. },
  45. {
  46. label: "计划专家",
  47. value: "13"
  48. },
  49. {
  50. label: "财务专家",
  51. value: "14"
  52. },
  53. {
  54. label: "质量专家",
  55. value: "15"
  56. },
  57. {
  58. label: "安全专家",
  59. value: "16"
  60. },
  61. {
  62. label: "助理",
  63. value: "19"
  64. },
  65. {
  66. label: "专家组长",
  67. value: "20"
  68. },
  69. {
  70. label: "特派员",
  71. value: "21"
  72. }
  73. ],
  74. provList: [],
  75. adCode: localStorage.getItem('currentRlcode')
  76. };
  77. const mutations = {
  78. changeAdCode(state, adCode) {
  79. state.adCode = adCode;
  80. },
  81. getAreaList() {
  82. request.get('/dc/ad/base/getAdData', {params: {'adCode': state.adCode}}).then(res => {
  83. if (res.success) {
  84. state.provList = res.data;
  85. }
  86. })
  87. }
  88. };
  89. const actions = {};
  90. const getters = {};
  91. // 不要忘记把state, mutations等暴露出去。
  92. export default {
  93. state,
  94. mutations,
  95. actions,
  96. getters
  97. }