Merge pull request 'fix : 工作台历史通话记录定时刷新' (#159) from dj into master
Reviewed-on: http://git.feashow.cn/feashow/SmartOpsWeb/pulls/159
This commit is contained in:
@@ -125,6 +125,11 @@ const props = defineProps({
|
|||||||
isSettingCol: {
|
isSettingCol: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true
|
default: true
|
||||||
|
},
|
||||||
|
//表格是否刷新
|
||||||
|
isLoading: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -217,7 +222,7 @@ const getList = async () => {
|
|||||||
const { api, params } = props.tableConfig
|
const { api, params } = props.tableConfig
|
||||||
const queryParmas = {...localData.query, ...params}
|
const queryParmas = {...localData.query, ...params}
|
||||||
if(api) {
|
if(api) {
|
||||||
localData.loading = true
|
localData.loading = props.isLoading
|
||||||
try {
|
try {
|
||||||
const {code, data, msg} = await requestList(api, queryParmas).then(res=>{
|
const {code, data, msg} = await requestList(api, queryParmas).then(res=>{
|
||||||
// console.log(res)
|
// console.log(res)
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="call-history">
|
<div class="call-history">
|
||||||
<h3>历史通话记录</h3>
|
<h3>历史通话记录</h3>
|
||||||
<fvTable ref="tableIns" :tableConfig="tableConfig"></fvTable>
|
<fvTable ref="tableIns" :tableConfig="tableConfig" :isLoading="isLoading"></fvTable>
|
||||||
<voice ref="voiceRef" title="语音详情" :rowUrl="rowUrl" />
|
<voice ref="voiceRef" title="语音详情" :rowUrl="rowUrl" />
|
||||||
<infoLiveCall ref="infoLiveCallRef" v-model:value="orderNumber" />
|
<infoLiveCall ref="infoLiveCallRef" v-model:value="orderNumber" />
|
||||||
</div>
|
</div>
|
||||||
@@ -20,6 +20,7 @@ import InfoLiveCall from '@/components/infoLiveCall/index.vue'
|
|||||||
const orderNumber = ref('')
|
const orderNumber = ref('')
|
||||||
const rowUrl = ref()
|
const rowUrl = ref()
|
||||||
const infoLiveCallRef = ref()
|
const infoLiveCallRef = ref()
|
||||||
|
const isLoading = ref(false)
|
||||||
const voiceRef = ref()
|
const voiceRef = ref()
|
||||||
const tableIns = ref()
|
const tableIns = ref()
|
||||||
const auths = reactive({
|
const auths = reactive({
|
||||||
@@ -141,10 +142,12 @@ const handleVoice = (row) => {
|
|||||||
|
|
||||||
}
|
}
|
||||||
const handleInfo = (row) => {
|
const handleInfo = (row) => {
|
||||||
console.log('fefe',row.orderNumber);
|
|
||||||
orderNumber.value = row.orderNumber
|
orderNumber.value = row.orderNumber
|
||||||
infoLiveCallRef.value.open()
|
infoLiveCallRef.value.open()
|
||||||
}
|
}
|
||||||
|
window.setInterval(() => {
|
||||||
|
setTimeout(tableIns.value.refresh(), 0)
|
||||||
|
}, 2000)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user