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是数组,如果不是则使用空数组