fix :修复分页问题
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
</div>
|
||||
<div class="call-history">
|
||||
<h3>历史通话记录</h3>
|
||||
<fvTable ref="tableIns" :tableConfig="tableConfig" :data="currentHistoryData" :total="currentHistoryTotal" :isLoading="isLoading"></fvTable>
|
||||
<fvTable ref="tableIns" :tableConfig="tableConfig" :data="currentHistoryData" :total="currentHistoryTotal" :isLoading="isLoading" @getBaseQuery="getBaseQuery"></fvTable>
|
||||
<voice ref="voiceRef" title="语音详情" :rowUrl="rowUrl" />
|
||||
<infoLiveCall ref="infoLiveCallRef" v-model:value="historyData" />
|
||||
</div>
|
||||
@@ -149,18 +149,29 @@ const tableConfig = reactive({
|
||||
params: {
|
||||
}
|
||||
})
|
||||
const getOrder=()=>{
|
||||
const getOrder=(pageNum=1,pageSize=10)=>{
|
||||
// isLoading.value=true
|
||||
nextTick(()=>{
|
||||
tableIns.value.updateLoading(true)
|
||||
})
|
||||
orderGetList({
|
||||
pageNum: 1,
|
||||
pageSize: 10
|
||||
pageNum: pageNum,
|
||||
pageSize: pageSize
|
||||
}).then(res=>{
|
||||
console.log('res',res)
|
||||
currentHistoryData.value=res.data.rows
|
||||
currentHistoryTotal.value=res.data.total
|
||||
// isLoading.value=false
|
||||
nextTick(()=>{
|
||||
tableIns.value.updateLoading(false)
|
||||
})
|
||||
})
|
||||
}
|
||||
getOrder()
|
||||
const getBaseQuery=(params)=>{
|
||||
console.log('params',params)
|
||||
// tableConfig.params=params
|
||||
getOrder(params.pageNum,params.pageSize)
|
||||
}
|
||||
const handleVoice = (row) => {
|
||||
if (row.recordUrl !== null) {
|
||||
voiceRef.value.open(true)
|
||||
|
||||
Reference in New Issue
Block a user