tasks.ts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  1. export type TaskMenuDefGroup = {
  2. banner: string;
  3. list: TaskMenuDefItem[];
  4. }
  5. export type TaskMenuDefGoForm = [string, number, string|undefined, string|undefined, string|undefined, number|undefined];
  6. export type TaskMenuDefItem = {
  7. title: string;
  8. desc: string;
  9. icon: string;
  10. enable: string|boolean;
  11. name?: string;
  12. extra?: string;
  13. goForm?: {
  14. title: string;
  15. name: string;
  16. }|TaskMenuDefGoForm;
  17. onClick?: () => void;
  18. }
  19. export const TaskRootDef : TaskMenuDefItem[] = [
  20. {
  21. title: '村落概况',
  22. desc: '探索村落的历史渊源与发生轨迹',
  23. icon: 'icon-task-summary',
  24. enable: 'overview',
  25. name: 'overview',
  26. goForm: {
  27. title: '村落概况',
  28. name: 'overview',
  29. }
  30. },
  31. {
  32. title: '历史文化',
  33. desc: '传承百年文化遗产和精神财富',
  34. icon: 'icon-task-history',
  35. enable: true,
  36. name: 'history',
  37. goForm: {
  38. title: '历史文化',
  39. name: 'history',
  40. }
  41. },
  42. {
  43. title: '非物质文化遗产项目',
  44. desc: '维护文化多样性',
  45. icon: 'icon-task-custom-1',
  46. enable: 'ich',
  47. name: 'ich',
  48. goForm: [ 'ich', 0, undefined, undefined, '非物质文化遗产项目', undefined ],
  49. },
  50. {
  51. title: '环境格局',
  52. desc: '感受自然人文环境之美',
  53. icon: 'icon-task-environment',
  54. enable: 'environment',
  55. name: 'environment',
  56. goForm: {
  57. title: '环境格局',
  58. name: 'environment',
  59. }
  60. },
  61. {
  62. title: '传统建筑',
  63. desc: '领略古建筑的独特魅力',
  64. icon: 'icon-task-building',
  65. enable: true,
  66. name: 'building',
  67. goForm: {
  68. title: '传统建筑',
  69. name: 'building',
  70. }
  71. },
  72. {
  73. title: '民俗文化',
  74. desc: '体验民间传统习俗与节庆',
  75. icon: 'icon-task-custom',
  76. enable: 'folk_culture',
  77. name: 'folk_culture',
  78. goForm: {
  79. title: '民俗文化',
  80. name: 'custom',
  81. }
  82. },
  83. {
  84. title: '地道美食',
  85. desc: '正宗、传统地方特色美食',
  86. icon: 'icon-task-food',
  87. enable: 'food_product',
  88. name: 'food',
  89. goForm: {
  90. title: '地道美食',
  91. name: 'food',
  92. }
  93. },
  94. {
  95. title: '物产资源',
  96. desc: '特定地域的植物、矿物或工艺品',
  97. icon: 'icon-task-mine',
  98. enable: 'food_product',
  99. name: 'product',
  100. goForm: {
  101. title: '物产资源',
  102. name: 'product',
  103. }
  104. },
  105. {
  106. title: '旅游路线',
  107. desc: '体验独特的文化魅力',
  108. icon: 'icon-task-trip',
  109. enable: true,
  110. name: 'trip',
  111. goForm: {
  112. title: '旅游路线',
  113. name: 'trip',
  114. }
  115. }
  116. ]
  117. export const TaskMenuDef : Record<string, TaskMenuDefGroup> = {
  118. 'building': {
  119. banner: 'https://mn.wenlvti.net/app_static/xiangan/banner_dig_building.jpg',
  120. list: [
  121. {
  122. title: '建筑分布',
  123. desc: '村落内传统建筑分布情况',
  124. icon: 'icon-task-building-1',
  125. enable: 'distribution',
  126. goForm: [ 'distribution', 0, undefined, undefined, '建筑分布', undefined ],
  127. },
  128. {
  129. title: '文物建筑',
  130. desc: '历史、艺术、科学价值',
  131. icon: 'icon-task-building-2',
  132. enable: 'building',
  133. goForm: [ 'building', 1, 'nature', undefined, '文物建筑', undefined ],
  134. },
  135. {
  136. title: '历史建筑',
  137. desc: '重大历史事件记录',
  138. icon: 'icon-task-building-3',
  139. enable: 'building',
  140. goForm: [ 'building', 2, 'nature', undefined, '历史建筑', undefined ],
  141. },
  142. {
  143. title: '重要传统建筑',
  144. desc: '重要传统建筑的信息',
  145. icon: 'icon-task-building-4',
  146. enable: 'building',
  147. goForm: [ 'building', 3, 'nature', undefined, '重要传统建筑', undefined ],
  148. },
  149. ],
  150. },
  151. 'custom': {
  152. banner: 'https://mn.wenlvti.net/app_static/xiangan/banner_dig_custom.jpg',
  153. list: [
  154. {
  155. title: '节庆活动',
  156. desc: '欢庆与传承并重的文化盛宴',
  157. icon: 'icon-task-custom-2',
  158. enable: 'folk_culture',
  159. goForm: [ 'folk_culture', 1, 'folkCultureType', undefined, '节庆活动', undefined ],
  160. },
  161. {
  162. title: '祭祀崇礼',
  163. desc: '对先贤与自然的崇高致敬',
  164. icon: 'icon-task-custom-3',
  165. enable: 'folk_culture',
  166. goForm: [ 'folk_culture', 2, 'folkCultureType', undefined, '祭祀崇礼', undefined ],
  167. },
  168. {
  169. title: '婚丧嫁娶',
  170. desc: '生命礼赞与文化传承的双重奏鸣',
  171. icon: 'icon-task-custom-4',
  172. enable: 'folk_culture',
  173. goForm: [ 'folk_culture', 3, 'folkCultureType', undefined, '婚丧嫁娶', undefined ],
  174. },
  175. {
  176. title: '地方方言',
  177. desc: '历史沉淀的语言瑰宝',
  178. icon: 'icon-task-custom-5',
  179. enable: 'folk_culture',
  180. goForm: [ 'folk_culture', 4, 'folkCultureType', undefined, '地方方言', undefined ],
  181. },
  182. {
  183. title: '特色文化',
  184. desc: '民族精神的鲜明烙印',
  185. icon: 'icon-task-custom-6',
  186. enable: 'folk_culture',
  187. goForm: [ 'folk_culture', 5, 'folkCultureType', undefined, '特色文化', undefined ],
  188. },
  189. ],
  190. },
  191. 'environment': {
  192. banner: 'https://mn.wenlvti.net/app_static/xiangan/banner_dig_environment.jpg',
  193. list: [
  194. {
  195. title: '自然环境',
  196. desc: '村落建立与发展历程',
  197. icon: 'icon-task-environment-1',
  198. enable: 'environment',
  199. goForm: [ 'environment', 0, undefined, undefined, '自然环境', undefined ],
  200. },
  201. {
  202. title: '文物古迹',
  203. desc: '重要历史文献资料',
  204. icon: 'icon-task-environment-5',
  205. enable: 'relic',
  206. goForm: [ 'relic', 0, undefined, undefined, '文物古迹', undefined ],
  207. },
  208. {
  209. title: '历史环境要素',
  210. desc: '村民口述历史记录',
  211. icon: 'icon-task-environment-6',
  212. enable: 'element',
  213. goForm: [ 'element', 0, undefined, undefined, '历史环境要素', undefined ],
  214. },
  215. ],
  216. },
  217. 'food': {
  218. banner: 'https://mn.wenlvti.net/app_static/xiangan/banner_dig_food.jpg',
  219. list: [
  220. {
  221. title: '农副产品',
  222. desc: '乡村繁荣的多元支柱',
  223. icon: 'icon-task-food-1',
  224. enable: 'food_product',
  225. goForm: [ 'food_product', 1, 'productType', undefined, '农副产品', undefined ],
  226. },
  227. {
  228. title: '特色美食',
  229. desc: '给味蕾探索带来无限惊喜',
  230. icon: 'icon-task-food-2',
  231. enable: 'food_product',
  232. goForm: [ 'food_product', 3, 'productType', undefined, '特色美食', undefined ],
  233. },
  234. ],
  235. },
  236. 'history': {
  237. banner: 'https://mn.wenlvti.net/app_static/xiangan/banner_dig_history.jpg',
  238. list: [
  239. {
  240. title: '建村历史',
  241. desc: '村落建立与发展历程',
  242. icon: 'icon-task-history-1',
  243. enable: 'cultural',
  244. goForm: [ 'cultural', 1, 'culturalType', undefined, '建村历史', undefined ],
  245. },
  246. {
  247. title: '历史人物',
  248. desc: '重要历史人物事迹',
  249. icon: 'icon-task-history-2',
  250. enable: 'cultural',
  251. goForm: [ 'figure', 0, undefined, undefined, '历史人物', undefined ],
  252. },
  253. {
  254. title: '历史事件',
  255. desc: '重大历史事件记录',
  256. icon: 'icon-task-history-3',
  257. enable: 'cultural',
  258. goForm: [ 'cultural', 2, 'culturalType', undefined, '历史事件', undefined ],
  259. },
  260. {
  261. title: '掌故轶事',
  262. desc: '民间传说与历史故事',
  263. icon: 'icon-task-history-4',
  264. enable: 'story',
  265. goForm: [ 'story', 0, undefined, undefined, '掌故轶事', undefined ],
  266. },
  267. {
  268. title: '历史文献',
  269. desc: '重要历史文献资料',
  270. icon: 'icon-task-history-5',
  271. enable: 'cultural',
  272. goForm: [ 'cultural', 3, 'culturalType', undefined, '历史文献', undefined ],
  273. },
  274. {
  275. title: '口述历史',
  276. desc: '村民口述历史记录',
  277. icon: 'icon-task-history-6',
  278. enable: 'cultural',
  279. goForm: [ 'cultural', 4, 'culturalType', undefined, '口述历史', undefined ],
  280. },
  281. {
  282. title: '口述人管理',
  283. desc: '口述人管理登记',
  284. icon: 'icon-task-history-1',
  285. enable: 'cultural',
  286. goForm: [ 'speaker', 1, undefined, undefined, '口述人管理', undefined ],
  287. },
  288. ],
  289. },
  290. 'product': {
  291. banner: 'https://mn.wenlvti.net/app_static/xiangan/banner_dig_mine.jpg',
  292. list: [
  293. {
  294. title: '商业集市',
  295. desc: '文化交流的开放窗口',
  296. icon: 'icon-task-mine-1',
  297. enable: 'food_product',
  298. goForm: [ 'food_product', 4, 'productType', undefined, '商业集市', undefined ],
  299. },
  300. {
  301. title: '服装服饰',
  302. desc: '艺术与功能交织的时尚篇章',
  303. icon: 'icon-task-mine-2',
  304. enable: 'food_product',
  305. goForm: [ 'food_product', 5, 'productType', undefined, '服装服饰', undefined ],
  306. },
  307. {
  308. title: '运输工具',
  309. desc: '历史的运输工具',
  310. icon: 'icon-task-mine-2',
  311. enable: 'food_product',
  312. goForm: [ 'food_product', 6, 'productType', undefined, '运输工具', undefined ],
  313. },
  314. ],
  315. },
  316. 'overview': {
  317. banner: 'https://mn.wenlvti.net/app_static/xiangan/banner_dig_summary.jpg',
  318. list: [
  319. {
  320. title: '行政区划',
  321. desc: '村落行政区域划分及变迁',
  322. icon: 'icon-task-summary-1',
  323. enable: 'overview',
  324. goForm: [ 'overview', 1, undefined, 'common', '行政区划', undefined ],
  325. },
  326. {
  327. title: '村落综述',
  328. desc: '村落整体概况介绍',
  329. icon: 'icon-task-summary-5',
  330. enable: 'overview',
  331. goForm: [ 'overview', 5, undefined, 'common', '村落综述', undefined ],
  332. },
  333. {
  334. title: '地理信息',
  335. desc: '地理位置和自然环境特征',
  336. icon: 'icon-task-summary-2',
  337. enable: 'overview',
  338. goForm: [ 'overview', 2, undefined, 'common', '地理信息', undefined ],
  339. },
  340. {
  341. title: '建设与保护',
  342. desc: '村落发展与文化遗产保护',
  343. icon: 'icon-task-summary-3',
  344. enable: 'overview',
  345. goForm: [ 'overview', 3, undefined, 'common', '建设与保护', undefined ],
  346. },
  347. {
  348. title: '人口与经济',
  349. desc: '人口与经济情况',
  350. icon: 'icon-task-summary-4',
  351. enable: 'overview',
  352. goForm: [ 'overview', 4, undefined, 'common', '人口与经济', undefined ],
  353. },
  354. ],
  355. },
  356. 'trip': {
  357. banner: 'https://mn.wenlvti.net/app_static/xiangan/banner_dig_trip.jpg',
  358. list: [
  359. {
  360. title: '旅游导览',
  361. desc: '',
  362. icon: 'icon-task-trip-3',
  363. enable: 'travel_guide',
  364. goForm: [ 'travel_guide', 0, undefined, undefined, '旅游导览', undefined ],
  365. },
  366. {
  367. title: '旅游路线',
  368. desc: '',
  369. icon: 'icon-task-trip-1',
  370. enable: 'route',
  371. goForm: [ 'route', 0, undefined, undefined, '旅游路线', undefined ],
  372. },
  373. ],
  374. },
  375. }