From dbc73373c7f7235d09d5a5e78249c1d6364b9ca0 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期五, 28 十一月 2025 14:20:26 +0800
Subject: [PATCH] fix: bug
---
src/views/DataBoard/components/DataBoardCenterMap.vue | 29 +++++++++++++++++++++--------
1 files changed, 21 insertions(+), 8 deletions(-)
diff --git a/src/views/DataBoard/components/DataBoardCenterMap.vue b/src/views/DataBoard/components/DataBoardCenterMap.vue
index 5a784c8..f88f456 100644
--- a/src/views/DataBoard/components/DataBoardCenterMap.vue
+++ b/src/views/DataBoard/components/DataBoardCenterMap.vue
@@ -4,22 +4,22 @@
<DataBoardDataInfoItem
:backgroundImage="DataBoardDataInfoBg5"
label="浼佷笟鏁伴噺"
- :value="form.totalCustomerCount"
+ v-model:value="totalCustomerCountValue"
></DataBoardDataInfoItem>
<DataBoardDataInfoItem
:backgroundImage="DataBoardDataInfoBg6"
label="鍙戞斁棰�"
- :value="form.sumBountyReleaseAmount"
+ v-model:value="sumBountyReleaseAmountValue"
></DataBoardDataInfoItem>
<DataBoardDataInfoItem
:backgroundImage="DataBoardDataInfoBg7"
label="浣跨敤棰�"
- :value="form.sumBountyUseAmount"
+ v-model:value="sumBountyUseAmountValue"
></DataBoardDataInfoItem>
<DataBoardDataInfoItem
:backgroundImage="DataBoardDataInfoBg8"
label="鎶曚繚浜烘暟"
- :value="form.insurePeopleCount"
+ v-model:value="insurePeopleCountValue"
></DataBoardDataInfoItem>
</div>
<div class="data-board-home-content-center-map-img">
@@ -44,12 +44,11 @@
import DataBoardDataInfoBg8 from '@/assets/dataBoard/data-board-data-info-bg8.png';
import DataBoardDataInfoItem from './DataBoardDataInfoItem.vue';
import DataBoardCenterMapMark from './DataBoardCenterMapMark.vue';
-import { useIntervalFn } from '@vueuse/core';
import * as dataBoardServices from '@/services/api/DataBoard';
import { useQuery, useQueryClient } from '@tanstack/vue-query';
import { useIndustrialParkDropDownList } from '@/hooks';
import _ from 'lodash';
-import { on } from 'events';
+import { useIntervalValue } from '../hooks';
defineOptions({
name: 'DataBoardCenterMap',
@@ -68,8 +67,6 @@
sumBountyUseAmount: 0,
insurePeopleCount: 0,
});
-
-// const { value } = useIntervalValue(12222);
function handleClick(id: string) {
form.mapList.forEach((item, index) => {
@@ -93,9 +90,13 @@
enabled: () => !!form.industrialParkId,
onSuccess(data) {
form.totalCustomerCount = data.totalCustomerCount;
+ changeTotalCustomerCount(form.totalCustomerCount);
form.sumBountyReleaseAmount = data.sumBountyReleaseAmount;
+ changeSumBountyReleaseAmount(form.sumBountyReleaseAmount);
form.sumBountyUseAmount = data.sumBountyUseAmount;
+ changeSumBountyUseAmount(form.sumBountyUseAmount);
form.insurePeopleCount = data.insurePeopleCount;
+ changeInsurePeopleCount(form.insurePeopleCount);
},
});
@@ -107,6 +108,18 @@
refetch();
}
});
+
+const { value: totalCustomerCountValue, changeValue: changeTotalCustomerCount } = useIntervalValue(
+ form.totalCustomerCount
+);
+const { value: sumBountyReleaseAmountValue, changeValue: changeSumBountyReleaseAmount } =
+ useIntervalValue(form.sumBountyReleaseAmount);
+const { value: sumBountyUseAmountValue, changeValue: changeSumBountyUseAmount } = useIntervalValue(
+ form.sumBountyUseAmount
+);
+const { value: insurePeopleCountValue, changeValue: changeInsurePeopleCount } = useIntervalValue(
+ form.insurePeopleCount
+);
</script>
<style lang="scss" scoped>
@use '@/style/common.scss' as *;
--
Gitblit v1.9.1