diff --git a/src/fvcomponents/fvTable/index.vue b/src/fvcomponents/fvTable/index.vue index a0edf10..0172f61 100644 --- a/src/fvcomponents/fvTable/index.vue +++ b/src/fvcomponents/fvTable/index.vue @@ -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) diff --git a/src/views/home/index.vue b/src/views/home/index.vue index b980a6c..0b3f58a 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -6,7 +6,7 @@

历史通话记录

- +
@@ -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)