tasks.ts 11 KB

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