controlReport.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <view class="site-wrapper">
  3. <view style="height: calc(100vh - 200rpx);overflow:scroll">
  4. <view class="cu-list menu-avatar">
  5. <view class="cu-item" :class="modalName=='move-box-'+ index?'move-cur':''" v-for="(item,index) in controlReport"
  6. :key="index" :data-target="'move-box-' + index" @tap="goDeviceDetail(item)">
  7. <view class="cu-avatar round lg" style="background-image:url(../../../static/controlReportIcon.png)"></view>
  8. <view class="content" >
  9. <view class="pro-title">
  10. <view class="cut">{{item.supervision_title}}</view>
  11. </view>
  12. <view class="pro-date ">{{item.create_time}}</view>
  13. </view>
  14. <view class="nav-right num">
  15. <view class="text-grey">
  16. <text class="icon iconfont margin-right-sm margin-left-lg">&#xe629;</text>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. <!-- 新增按钮start -->
  23. <view class="plus">
  24. <image src="../../../static/plus.png" style="width:125rpx;height:125rpx" @tap="goAddPage()"></image>
  25. </view>
  26. <!-- 新增按钮end -->
  27. </view>
  28. </template>
  29. <script>
  30. export default {
  31. data() {
  32. return {
  33. controlReport: [],
  34. modalName: null,
  35. };
  36. },
  37. onLoad:function(option){
  38. this.getDataList()
  39. },
  40. methods: {
  41. // 页面跳转
  42. goAddPage(item) {
  43. uni.navigateTo({
  44. url: '/pages/eleControl/controlReport/controlReportAdd/controlReportAdd',
  45. });
  46. },
  47. //数据请求
  48. async getDataList(params = {}) {
  49. const res = await this.$myRequest({
  50. url: 'MonitoringReporting/getMonitoringReportingList',
  51. showLoading: true,
  52. data: params
  53. })
  54. console.log('res.data.data')
  55. console.log(res.data.data)
  56. this.controlReport = res.data.data
  57. }
  58. }
  59. }
  60. </script>
  61. <style lang="scss">
  62. .cu-item{
  63. height:160rpx!important
  64. }
  65. </style>