Merge pull request 'fix : 工作台历史通话记录定时刷新' (#159) from dj into master

Reviewed-on: http://git.feashow.cn/feashow/SmartOpsWeb/pulls/159
This commit is contained in:
2024-11-07 03:44:12 +00:00
2 changed files with 11 additions and 3 deletions

View File

@@ -125,6 +125,11 @@ const props = defineProps({
isSettingCol: {
type: Boolean,
default: true
},
//表格是否刷新
isLoading: {
type: Boolean,
default: true
}
})
@@ -217,7 +222,7 @@ const getList = async () => {
const { api, params } = props.tableConfig
const queryParmas = {...localData.query, ...params}
if(api) {
localData.loading = true
localData.loading = props.isLoading
try {
const {code, data, msg} = await requestList(api, queryParmas).then(res=>{
// console.log(res)

View File

@@ -6,7 +6,7 @@
</div>
<div class="call-history">
<h3>历史通话记录</h3>
<fvTable ref="tableIns" :tableConfig="tableConfig"></fvTable>
<fvTable ref="tableIns" :tableConfig="tableConfig" :isLoading="isLoading"></fvTable>
<voice ref="voiceRef" title="语音详情" :rowUrl="rowUrl" />
<infoLiveCall ref="infoLiveCallRef" v-model:value="orderNumber" />
</div>
@@ -20,6 +20,7 @@ import InfoLiveCall from '@/components/infoLiveCall/index.vue'
const orderNumber = ref('')
const rowUrl = ref()
const infoLiveCallRef = ref()
const isLoading = ref(false)
const voiceRef = ref()
const tableIns = ref()
const auths = reactive({
@@ -141,10 +142,12 @@ const handleVoice = (row) => {
}
const handleInfo = (row) => {
console.log('fefe',row.orderNumber);
orderNumber.value = row.orderNumber
infoLiveCallRef.value.open()
}
window.setInterval(() => {
setTimeout(tableIns.value.refresh(), 0)
}, 2000)
</script>
<style lang="scss" scoped>