<template>
  <view class="page">
    34789
  </view>
</template>
<script>
import request from '@/utils/request'
export default {
  data(){return{
    channelId:'',         // ← 路由参数
    channelName:'',
    dateType:'',
    sources:[]
  }},
onLoad({dateType='',channelName='',sourceName=''}){
  this.dateType    = dateType
  this.channelName = decodeURIComponent(channelName)
  this.sourceName  = decodeURIComponent(sourceName)

  this.fetchOrders()
},
methods:{
  fetchOrders(page=1){
    const params = {
      pageNum:page,
      pageSize:20,
      timeType:this.dateType,        // 本日/本月…
      channel:this.channelName,
      source :this.sourceName
    }
    request({
      url:'/app/rescueInfo/getRescueStatisticsInfoList',
      method:'get',
      params
    }).then(r=>{
      this.orders = page===1 ? r.rows : this.orders.concat(r.rows)
      // 分页逻辑自行处理
    })
  }
}
}
</script>
