| 12345678910111213141516171819202122232425262728293031323334353637 |
- import { usePagging } from "@/hook/pagging";
- // import { SceneType, getScenePagging } from "@/store/scene";
- import { CameraType } from "@/store/camera";
- import { getcameraVersionAppList } from '@/store/cameraVersionApp'
- import { computed, reactive, watch, watchEffect } from "vue";
- export const useScenePaggingParams = () => {
- const pagging = usePagging({
- get: getcameraVersionAppList,
- paramsTemlate: {
- type: 1,
- version: '',
- },
- });
- watchEffect(() => {
- });
- watch(
- () => pagging.state.query.type,
- () => {
- pagging.state.pag.currentPage = 1;
- }
- );
- const queryResetRaw = pagging.queryReset;
- pagging.queryReset = () => {
- const type = pagging.state.query.type;
- queryResetRaw();
- pagging.state.query.type = type;
- };
- return reactive({ pagging });
- };
- export type ScenePagging = ReturnType<typeof useScenePaggingParams>["pagging"];
|