lanan-app/pages/rescue/businessManage2.vue

43 lines
927 B
Vue
Raw Normal View History

2025-10-23 13:04:29 +08:00
<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>