Browse Source

Merge branch 'feature-v1.0.0' of ssh://gitlab.datameta.com:2224/project/water/data-board-2025 into feature-v1.0.0

feature-v1.0.0
chenhaojie 1 month ago
parent
commit
9a84bce81c
  1. 7
      src/views/Main/DailyPatrolCard/index.vue
  2. 2
      src/views/Main/RiskInspectionCard/index.vue

7
src/views/Main/DailyPatrolCard/index.vue

@ -41,7 +41,7 @@ const handleResize = () => {
const dailyData: any = ref([]); const dailyData: any = ref([]);
const dailyCount = ref(0); const dailyCount = ref(0);
const getChartData = async (time: any) => { const getChartData = async (time: any) => {
dailyCount.value = 0 dailyCount.value = 0;
dailyData.value = []; dailyData.value = [];
const pramas = { const pramas = {
// endTime: '', // endTime: '',
@ -219,14 +219,15 @@ const initChart = () => {
// Set options and render chart // Set options and render chart
chart.setOption(option); chart.setOption(option);
};watch( };
watch(
() => props.timeRange, () => props.timeRange,
(newVal) => { (newVal) => {
getChartData(newVal); getChartData(newVal);
} }
); );
onMounted(() => { onMounted(() => {
getChartData(props.timeRange); // getChartData(props.timeRange);
window.addEventListener('resize', handleResize); window.addEventListener('resize', handleResize);
}); });

2
src/views/Main/RiskInspectionCard/index.vue

@ -445,7 +445,7 @@ watch(
} }
); );
onMounted(() => { onMounted(() => {
getChartData(props.timeRange); // getChartData(props.timeRange);
window.addEventListener('resize', handleResize); window.addEventListener('resize', handleResize);
}); });

Loading…
Cancel
Save