Merge branch 'IntegrationTableWithFilter' of https://github.com/defuj/eis into development

This commit is contained in:
Dede Fuji Abdul
2024-02-19 08:31:24 +07:00
123 changed files with 8562 additions and 10821 deletions

16
src/stores/date.ts Normal file
View 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,
}
})

View File

@ -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 => {

View 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
View 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
View 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,
}
})

View File

@ -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
View 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,
}
})

View 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
View 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
View 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
View 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,
}
})