From 3a382087442cae8eb5865bbd169401e754137b24 Mon Sep 17 00:00:00 2001 From: dj <1042039504@qq.com> Date: Sat, 22 Feb 2025 11:41:30 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=E4=BF=AE=E5=A4=8D=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auto-imports.d.ts | 1 - src/views/home/index.vue | 21 ++++++++++++++++----- vite.config.js | 5 +++-- 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/auto-imports.d.ts b/auto-imports.d.ts index 2a75f2e..fd24bdc 100644 --- a/auto-imports.d.ts +++ b/auto-imports.d.ts @@ -6,7 +6,6 @@ export {} declare global { const EffectScope: typeof import('vue')['EffectScope'] const ElMessage: typeof import('element-plus/es')['ElMessage'] - const ElMessageBox: typeof import('element-plus/es')['ElMessageBox'] const computed: typeof import('vue')['computed'] const createApp: typeof import('vue')['createApp'] const customRef: typeof import('vue')['customRef'] diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 8912d1c..2067d12 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -6,7 +6,7 @@

历史通话记录

- +
@@ -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) diff --git a/vite.config.js b/vite.config.js index 13ff68e..3f4f710 100644 --- a/vite.config.js +++ b/vite.config.js @@ -76,8 +76,9 @@ export default defineConfig({ // rewrite: (path) => path.replace(/^\/api/, ""), // }, "/api": { - // target: "http://frp.feashow.cn:31800/", - target: "http://10.8.105.91:28080/", + target: "http://frp.feashow.cn:31800/", + // target: "http://10.8.105.91:28080/", + // target: "http://112.19.165.99:20002/", changeOrigin: true, rewrite: (path) => path.replace(/^\/api/, ""), },