index.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <template>
  2. <ContainerBorder title="火场文书">
  3. <LineModel v-for="(item,index) in fireRecordData" :end="index === fireRecordData.length - 1" :key="index"
  4. :state="item.state"
  5. :time="item.time"
  6. :isImage="item.isImage"
  7. :content="item.content"
  8. :dept="item.dept"
  9. />
  10. </ContainerBorder>
  11. </template>
  12. <script>
  13. import { ContainerBorder } from '@/components'
  14. import LineModel from './LineModel'
  15. export default {
  16. components: {
  17. ContainerBorder,
  18. LineModel
  19. },
  20. data: () => ({
  21. fireRecordData: [
  22. {
  23. state: '立案',
  24. time: '2020-01-01 12:34',
  25. content: '上午10点多,渝中区雅兰大厦9层冒出浓烟和火光, 从大厦里外围…… ',
  26. dept: '渝中区公安局',
  27. isImage: false
  28. },
  29. {
  30. state: '出动',
  31. time: '2020-01-01 12:34',
  32. content: '上午10点多,渝中区雅兰大厦9层冒出浓烟和火光, 从大厦里外围…… ',
  33. dept: '渝中区公安局',
  34. isImage: false
  35. },
  36. {
  37. state: '到场',
  38. time: '2020-01-01 12:34',
  39. content: '',
  40. dept: '渝中区公安局',
  41. isImage: true
  42. },
  43. {
  44. state: '出水',
  45. time: '2020-01-01 12:34',
  46. content: '上午10点多,渝中区雅兰大厦9层冒出浓烟和火光, 从大厦里外围…… ',
  47. dept: '渝中区公安局',
  48. isImage: false
  49. }
  50. ]
  51. })
  52. }
  53. </script>
  54. <style lang="less" scoped>
  55. </style>