Update code: fixed bugs and added new features
This commit is contained in:
@ -7,7 +7,7 @@ export const useDateStore = defineStore('date', () => {
|
||||
dateValue.value = value
|
||||
}
|
||||
const getDateValue = () => {
|
||||
return dateValue.value
|
||||
return dateValue.value;
|
||||
}
|
||||
return {
|
||||
setDateValue,
|
||||
|
@ -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 => {
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user