Update code: fixed bugs and added new features

This commit is contained in:
probdg
2024-02-03 16:32:05 +07:00
parent ecc64c7b61
commit 2b40b2016b
14 changed files with 275 additions and 33 deletions

View File

@ -7,7 +7,7 @@ export const useDateStore = defineStore('date', () => {
dateValue.value = value
}
const getDateValue = () => {
return dateValue.value
return dateValue.value;
}
return {
setDateValue,

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

@ -2,20 +2,20 @@ import { ref } from 'vue'
import { defineStore } from 'pinia'
export const useTotalDuration = defineStore('totalDuration', () => {
const totalMin = ref()
const totalMax = ref()
const setDataMin = (value: Number) => {
totalMax.value = value
}
const getDataMin = () => {
return totalMax.value
}
const setDataMax = (value: Number) => {
const totalMin = ref(1)
const totalMax = ref(1)
const setDataMin = (value: any) => {
totalMin.value = value
}
const getDataMax = () => {
const getDataMin = () => {
return totalMin.value
}
const setDataMax = (value: any) => {
totalMax.value = value
}
const getDataMax = () => {
return totalMax.value
}
return {
setDataMin,
getDataMin,

View File

@ -2,20 +2,20 @@ import { ref } from 'vue'
import { defineStore } from 'pinia'
export const useTotalReport = defineStore('totalReport', () => {
const totalMin = ref()
const totalMax = ref()
const setDataMin = (value: Number) => {
totalMax.value = value
}
const getDataMin = () => {
return totalMax.value
}
const setDataMax = (value: Number) => {
const totalMin = ref(1)
const totalMax = ref(1)
const setDataMin = (value: any) => {
totalMin.value = value
}
const getDataMax = () => {
const getDataMin = () => {
return totalMin.value
}
const setDataMax = (value: any) => {
totalMax.value = value
}
const getDataMax = () => {
return totalMax.value
}
return {
setDataMin,
getDataMin,