Detail.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <template>
  2. <view class="detail">
  3. <uni-popup ref="popup" type="top">
  4. <uni-section type="line" title="突发事件详情">
  5. <template v-slot:right>
  6. <uni-icons type="closeempty" size="24" color="#999" @click="close"></uni-icons>
  7. </template>
  8. </uni-section>
  9. <view class="detail-cont">
  10. <uni-list >
  11. <uni-list-item title="主题" :rightText="viewData.reportingSubject"></uni-list-item>
  12. <uni-list-item title="上报部门" :rightText="viewData.reportingGroupName"></uni-list-item>
  13. <uni-list-item title="类别" :rightText="viewData.reportingTypeTitle"></uni-list-item>
  14. <uni-list-item title="上报时间" :rightText="viewData.reportingTime"></uni-list-item>
  15. <uni-list-item title="内容" :note="viewData.reportingContent"></uni-list-item>
  16. </uni-list>
  17. </view>
  18. </uni-popup>
  19. </view>
  20. </template>
  21. <script>
  22. import disasterApi from '@/api/disaster.js'
  23. import {getVideoInfo} from '@/api/system.js'
  24. import CameraModal from '@/components/CameraModal.vue'
  25. export default{
  26. name:"DisasteDetail",
  27. components:{
  28. CameraModal
  29. },
  30. props:{
  31. type:{
  32. type:[String,Number],
  33. default:'dl'
  34. }
  35. },
  36. data(){
  37. return{
  38. viewData:{
  39. reportingId: 0,
  40. reportingTypeId: 0,
  41. reportingTypeTitle: '',
  42. reportingSubject: '',
  43. reportingContent: '',
  44. reportingGroupName: '',
  45. reportingTime:"",
  46. remark: '',
  47. }
  48. }
  49. },
  50. methods:{
  51. show(item){
  52. this.$refs.popup.open('bottom')
  53. this.viewData={...item}
  54. },
  55. close(){
  56. this.$refs.popup.close()
  57. }
  58. }
  59. }
  60. </script>
  61. <style lang="scss" scoped>
  62. .detail-cont{
  63. &{
  64. max-height: 80vh;
  65. overflow-y: auto;
  66. }
  67. }
  68. </style>