Merge remote-tracking branch 'origin/main' into zxy
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { ref } from 'vue';
|
import { ref, watch } from 'vue';
|
||||||
import type { XianHiddenDangerSpots } from '@/types/base/XianHiddenDangerSpots';
|
import type { XianHiddenDangerSpots } from '@/types/base/XianHiddenDangerSpots';
|
||||||
import type { PaginationType } from '@/types/common/PaginationType';
|
import type { PaginationType } from '@/types/common/PaginationType';
|
||||||
import { PointType } from '@/types/common/DisasterType';
|
import { PointType } from '@/types/common/DisasterType';
|
||||||
@@ -305,6 +305,15 @@ export const useRainDisasterChain = () => {
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 监听条件变化
|
||||||
|
watch(
|
||||||
|
conditions,
|
||||||
|
() => {
|
||||||
|
console.log('条件改变');
|
||||||
|
},
|
||||||
|
{ deep: true }
|
||||||
|
);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
conditions,
|
conditions,
|
||||||
selectOptions,
|
selectOptions,
|
||||||
|
|||||||
@@ -71,13 +71,11 @@
|
|||||||
import { useRainDisasterChain } from '@/hooks/rainstorm/useRainDisasterChain';
|
import { useRainDisasterChain } from '@/hooks/rainstorm/useRainDisasterChain';
|
||||||
import { useStatusStore } from '@/stores/useStatusStore';
|
import { useStatusStore } from '@/stores/useStatusStore';
|
||||||
import { DisasterType } from '@/types/common/DisasterType.ts';
|
import { DisasterType } from '@/types/common/DisasterType.ts';
|
||||||
import { watch } from 'vue';
|
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
|
||||||
const {
|
const {
|
||||||
conditions,
|
|
||||||
selectOptions,
|
selectOptions,
|
||||||
tableDatas,
|
tableDatas,
|
||||||
tableColumns,
|
tableColumns,
|
||||||
@@ -89,15 +87,6 @@
|
|||||||
changeConditions,
|
changeConditions,
|
||||||
changeCurrentPage,
|
changeCurrentPage,
|
||||||
} = useRainDisasterChain();
|
} = useRainDisasterChain();
|
||||||
|
|
||||||
// 监听条件变化
|
|
||||||
watch(
|
|
||||||
conditions,
|
|
||||||
() => {
|
|
||||||
console.log('条件改变');
|
|
||||||
},
|
|
||||||
{ deep: true }
|
|
||||||
);
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped></style>
|
<style scoped></style>
|
||||||
|
|||||||
Reference in New Issue
Block a user