building.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <FlexCol :padding="30" :gap="10">
  3. <Image
  4. src="https://mn.wenlvti.net/app_static/xiangan/banner_dig_building.jpg"
  5. :radius="20"
  6. mode="widthFix"
  7. :width="690"
  8. />
  9. <FlexCol :gap="20">
  10. <TaskList
  11. icon="icon-task-building-1"
  12. title="建筑分布"
  13. desc="村落内传统建筑分布情况"
  14. :enable="canCollect('distribution')"
  15. @click="goForm('distribution', 0, undefined, undefined, '建筑分布')"
  16. />
  17. <TaskList
  18. icon="icon-task-building-2"
  19. title="文物建筑"
  20. desc="历史、艺术、科学价值"
  21. :enable="canCollect('building')"
  22. @click="goForm('building', 1, 'nature', undefined, '文物建筑')"
  23. />
  24. <TaskList
  25. icon="icon-task-building-3"
  26. title="历史建筑"
  27. desc="重大历史事件记录"
  28. :enable="canCollect('building')"
  29. @click="goForm('building', 2, 'nature', undefined, '历史建筑')"
  30. />
  31. <TaskList
  32. icon="icon-task-building-4"
  33. title="重要传统建筑"
  34. desc="重要传统建筑的信息"
  35. :enable="canCollect('building')"
  36. @click="goForm('building', 3, 'nature', undefined, '重要传统建筑')"
  37. />
  38. </FlexCol>
  39. </FlexCol>
  40. </template>
  41. <script setup lang="ts">
  42. import { useCollectStore } from '@/store/collect';
  43. import { useTaskEntryForm } from '../composeable/TaskEntryForm';
  44. import FlexCol from '@/components/layout/FlexCol.vue';
  45. import Image from '@/components/basic/Image.vue';
  46. import TaskList from '../components/TaskList.vue';
  47. const { goForm } = useTaskEntryForm();
  48. const { canCollect } = useCollectStore();
  49. </script>