Merge branch 'IntegrationTableWithFilter' of https://github.com/defuj/eis into development
This commit is contained in:
16
src/stores/date.ts
Normal file
16
src/stores/date.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import { ref } from 'vue'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
export const useDateStore = defineStore('date', () => {
|
||||
const dateValue = ref('')
|
||||
const setDateValue = (value: string) => {
|
||||
dateValue.value = value
|
||||
}
|
||||
const getDateValue = () => {
|
||||
return dateValue.value;
|
||||
}
|
||||
return {
|
||||
setDateValue,
|
||||
getDateValue,
|
||||
}
|
||||
})
|
@ -19,6 +19,7 @@ import {
|
||||
Type15,
|
||||
Type16,
|
||||
Type17,
|
||||
Type18
|
||||
} from '@/components/Form/FiltersType'
|
||||
|
||||
const test1: { [key: string]: any } = {
|
||||
@ -38,7 +39,8 @@ const test1: { [key: string]: any } = {
|
||||
'type-14': Type14,
|
||||
'type-15': Type15,
|
||||
'type-16': Type16,
|
||||
'type-17': Type17
|
||||
'type-17': Type17,
|
||||
'type-18': Type18
|
||||
}
|
||||
|
||||
const getFilters = (type: string): VueElement => {
|
||||
|
9
src/stores/filtersAction.ts
Normal file
9
src/stores/filtersAction.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import { ref } from 'vue'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
|
||||
export const useSearchStore = defineStore('dateTest', () => {
|
||||
return {
|
||||
isTriggerChange: ref(false),
|
||||
}
|
||||
})
|
16
src/stores/media.ts
Normal file
16
src/stores/media.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import { ref } from 'vue'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
export const useMediaStore = defineStore('media', () => {
|
||||
const media = ref('')
|
||||
const setData = (value: string) => {
|
||||
media.value = value
|
||||
}
|
||||
const getData = () => {
|
||||
return media.value
|
||||
}
|
||||
return {
|
||||
setData,
|
||||
getData,
|
||||
}
|
||||
})
|
16
src/stores/posts.ts
Normal file
16
src/stores/posts.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import { ref } from 'vue'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
export const usePostsStore = defineStore('posts', () => {
|
||||
const posts = ref('')
|
||||
const setData = (value: string) => {
|
||||
posts.value = value
|
||||
}
|
||||
const getData = () => {
|
||||
return posts.value
|
||||
}
|
||||
return {
|
||||
setData,
|
||||
getData,
|
||||
}
|
||||
})
|
@ -1,7 +1,7 @@
|
||||
import { ref, computed } from 'vue'
|
||||
import { defineStore } from 'pinia'
|
||||
import gql from 'graphql-tag'
|
||||
import { useQuery } from '@apollo/client'
|
||||
import { useQuery } from '@vue/apollo-composable'
|
||||
|
||||
export const useQueryStore = defineStore('query', () => {
|
||||
const getUser = useQuery(gql`
|
||||
|
16
src/stores/region.ts
Normal file
16
src/stores/region.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import { ref } from 'vue'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
export const useRegionStore = defineStore('region', () => {
|
||||
const region = ref()
|
||||
const setData = (value: Number) => {
|
||||
region.value = value
|
||||
}
|
||||
const getData = () => {
|
||||
return region.value
|
||||
}
|
||||
return {
|
||||
setData,
|
||||
getData,
|
||||
}
|
||||
})
|
25
src/stores/totalDuration.ts
Normal file
25
src/stores/totalDuration.ts
Normal file
@ -0,0 +1,25 @@
|
||||
import { ref } from 'vue'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
export const useTotalDuration = defineStore('totalDuration', () => {
|
||||
const totalMin = ref(1)
|
||||
const totalMax = ref(1)
|
||||
const setDataMin = (value: any) => {
|
||||
totalMin.value = value
|
||||
}
|
||||
const getDataMin = () => {
|
||||
return totalMin.value
|
||||
}
|
||||
const setDataMax = (value: any) => {
|
||||
totalMax.value = value
|
||||
}
|
||||
const getDataMax = () => {
|
||||
return totalMax.value
|
||||
}
|
||||
return {
|
||||
setDataMin,
|
||||
getDataMin,
|
||||
setDataMax,
|
||||
getDataMax,
|
||||
}
|
||||
})
|
25
src/stores/totalReport.ts
Normal file
25
src/stores/totalReport.ts
Normal file
@ -0,0 +1,25 @@
|
||||
import { ref } from 'vue'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
export const useTotalReport = defineStore('totalReport', () => {
|
||||
const totalMin = ref(1)
|
||||
const totalMax = ref(1)
|
||||
const setDataMin = (value: any) => {
|
||||
totalMin.value = value
|
||||
}
|
||||
const getDataMin = () => {
|
||||
return totalMin.value
|
||||
}
|
||||
const setDataMax = (value: any) => {
|
||||
totalMax.value = value
|
||||
}
|
||||
const getDataMax = () => {
|
||||
return totalMax.value
|
||||
}
|
||||
return {
|
||||
setDataMin,
|
||||
getDataMin,
|
||||
setDataMax,
|
||||
getDataMax,
|
||||
}
|
||||
})
|
16
src/stores/ulp.ts
Normal file
16
src/stores/ulp.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import { ref } from 'vue'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
export const useUlpStore = defineStore('ulp', () => {
|
||||
const ulp = ref()
|
||||
const setData = (value: number) => {
|
||||
ulp.value = value
|
||||
}
|
||||
const getData = () => {
|
||||
return ulp.value
|
||||
}
|
||||
return {
|
||||
setData,
|
||||
getData,
|
||||
}
|
||||
})
|
16
src/stores/up3.ts
Normal file
16
src/stores/up3.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import { ref } from 'vue'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
export const useUp3Store = defineStore('up3', () => {
|
||||
const up3 = ref()
|
||||
const setData = (value: number) => {
|
||||
up3.value = value
|
||||
}
|
||||
const getData = () => {
|
||||
return up3.value
|
||||
}
|
||||
return {
|
||||
setData,
|
||||
getData,
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user