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/, ""),
},