tasks.ts 11 KB

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