holidays-map.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. /* *
  2. @Author: drfu*
  3. @Description: 数据来源于国务院办公厅关于2020年部分节假日安排的通知(国办发明电〔2019〕16号)_政府信息公开专栏,http://www.gov.cn/zhengce/content/2019-11/21/content_5454164.htm
  4. @Date: 2020-10-12 14:29:45*
  5. * @Last Modified by: drfu
  6. * @Last Modified time: 2020-10-16 17:38:08
  7. */
  8. // 节日列表
  9. export const festival = {
  10. // 农历固定日期节日
  11. lunar: {
  12. 1: {
  13. 1: {
  14. type: 'festival',
  15. name: '春节',
  16. label: '春节'
  17. },
  18. 8: {
  19. type: 'festival',
  20. name: '腊八节',
  21. label: '腊八'
  22. },
  23. 15: {
  24. type: 'festival',
  25. name: '元宵节',
  26. label: '元宵'
  27. }
  28. },
  29. 7: {
  30. 7: {
  31. type: 'festival',
  32. name: '七夕节',
  33. label: '七夕'
  34. },
  35. 15: {
  36. type: 'festival',
  37. name: '中元节',
  38. label: '中元节'
  39. }
  40. },
  41. 9: {
  42. 9: {
  43. type: 'festival',
  44. name: '重阳节',
  45. label: '重阳节'
  46. }
  47. },
  48. 12: {
  49. 30: {
  50. type: 'festival',
  51. name: '除夕',
  52. label: '除夕'
  53. }
  54. }
  55. },
  56. // 阳历固定日期节日
  57. solar: {
  58. 2: {
  59. 14: {
  60. type: 'festival',
  61. name: '情人节',
  62. label: '情人节'
  63. }
  64. },
  65. 3: {
  66. 12: {
  67. type: 'festival',
  68. name: '植树节',
  69. label: '植树节'
  70. }
  71. },
  72. 4: {
  73. 1: {
  74. type: 'festival',
  75. name: '愚人节',
  76. label: '愚人节'
  77. },
  78. 5: {
  79. type: 'festival',
  80. name: '清明节',
  81. label: '清明节'
  82. }
  83. },
  84. 5: {
  85. 1: {
  86. type: 'festival',
  87. name: '劳动节',
  88. label: '劳动节'
  89. },
  90. 6: {
  91. type: 'festival',
  92. name: '立夏',
  93. label: '立夏'
  94. }
  95. },
  96. 6: {
  97. 1: {
  98. type: 'festival',
  99. name: '儿童节',
  100. label: '儿童节'
  101. }
  102. },
  103. 7: {
  104. 1: {
  105. type: 'festival',
  106. name: '建党节',
  107. label: '建党节'
  108. }
  109. },
  110. 8: {
  111. 1: {
  112. type: 'festival',
  113. name: '建军节',
  114. label: '建军节'
  115. }
  116. },
  117. 9: {
  118. 10: {
  119. type: 'festival',
  120. name: '教师节',
  121. label: '教师节'
  122. }
  123. },
  124. 10: {
  125. 1: {
  126. type: 'festival',
  127. name: '国庆节',
  128. label: '国庆节'
  129. }
  130. },
  131. 12: {
  132. 25: {
  133. type: 'festival',
  134. name: '圣诞节',
  135. label: '圣诞节'
  136. }
  137. }
  138. }
  139. }
  140. export const holidays = {
  141. 2020: {
  142. 1: {
  143. 1: {
  144. type: 'holiday',
  145. name: '元旦',
  146. label: '休'
  147. },
  148. 19: {
  149. type: 'work',
  150. name: '调班',
  151. label: '班'
  152. },
  153. '24-30': {
  154. type: 'holiday',
  155. name: '春节',
  156. label: '休'
  157. }
  158. },
  159. 2: {
  160. 1: {
  161. type: 'work',
  162. name: '调班',
  163. label: '班'
  164. }
  165. },
  166. 4: {
  167. '4-6': {
  168. type: 'holiday',
  169. name: '清明节',
  170. label: '休'
  171. },
  172. 26: {
  173. type: 'work',
  174. name: '调班',
  175. label: '班'
  176. }
  177. },
  178. 5: {
  179. '1-5': {
  180. type: 'holiday',
  181. name: '劳动节',
  182. label: '休'
  183. },
  184. 9: {
  185. type: 'work',
  186. name: '调班',
  187. label: '班'
  188. }
  189. },
  190. 6: {
  191. '25-27': {
  192. type: 'holiday',
  193. name: '端午节',
  194. label: '休'
  195. },
  196. 28: {
  197. type: 'work',
  198. name: '调班',
  199. label: '班'
  200. }
  201. },
  202. 9: {
  203. 27: {
  204. type: 'work',
  205. name: '调班',
  206. label: '班'
  207. }
  208. },
  209. 10: {
  210. '1-8': {
  211. type: 'holiday',
  212. name: '国庆节/中秋节',
  213. label: '休'
  214. },
  215. 10: {
  216. type: 'work',
  217. name: '调班',
  218. label: '班'
  219. }
  220. }
  221. }
  222. }