From 33831ecad3449603233b2b6b62f95e585f0938d1 Mon Sep 17 00:00:00 2001 From: tcy <1193318383@qq.com> Date: Wed, 24 Sep 2025 20:04:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E5=92=8C=E9=A2=84=E7=BD=AE=E7=82=B9=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在spjk.vue中添加isflow参数确保分页请求正确 在presetAdd.vue中使用ElLoading替代原有loading实现更好的用户体验 --- src/views/camera/components/presetAdd.vue | 9 ++++++++- src/views/securitySurveillance/components/spjk.vue | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/views/camera/components/presetAdd.vue b/src/views/camera/components/presetAdd.vue index 8884302..405bff1 100644 --- a/src/views/camera/components/presetAdd.vue +++ b/src/views/camera/components/presetAdd.vue @@ -113,6 +113,12 @@ function addPre() { inputErrorMessage: '请输入预置点名称' }) .then(({ value }) => { + // 加载动画 + const loading = ElLoading.service({ + lock: true, + text: '添加中', + background: 'rgba(0, 0, 0, 0.7)', + }) formData.value.presetName = value; addDevicePreset(formData.value) .then(() => { @@ -120,7 +126,8 @@ function addPre() { busPresettingBitList(); }) .finally(() => { - loading.value = false; + // loading.value = false; + loading.close(); }); }) .catch(() => { }); diff --git a/src/views/securitySurveillance/components/spjk.vue b/src/views/securitySurveillance/components/spjk.vue index f0128ef..c573d45 100644 --- a/src/views/securitySurveillance/components/spjk.vue +++ b/src/views/securitySurveillance/components/spjk.vue @@ -192,6 +192,7 @@ const getMonitoringListData = async () => { const getNextPageData = async () => { const { data: { object, sum } } = await getMonitoringList({ pageStart: pageStart.value + 1, + isflow: true, pageSize: 3 // 只需要3个视频 }) // 确保object是数组,如果不是则使用空数组