Poter modificare i limiti min e max su di 1 circuito specifico

This commit is contained in:
Surya Paolo
2023-06-07 12:41:10 +02:00
parent 57eb8ee203
commit 9908558bf7
2 changed files with 61 additions and 13 deletions

View File

@@ -7,6 +7,7 @@ import { useQuasar } from 'quasar'
import { useI18n } from '@/boot/i18n'
import { useUserStore } from '@store/UserStore'
import { useGlobalStore } from '@store/globalStore'
import { useCircuitStore } from '@store/CircuitStore'
import { tools } from '@store/Modules/tools'
import { costanti } from '@costanti'
import { shared_consts } from '@src/common/shared_vuejs'
@@ -18,6 +19,7 @@ export default defineComponent({
setup() {
const $q = useQuasar()
const { t } = useI18n()
const circuitStore = useCircuitStore()
const ris = ref('')
const riga = ref(0)
@@ -26,6 +28,7 @@ export default defineComponent({
const col = ref(0)
const placca = ref('')
const valmin = ref(200)
const circuitId = ref('')
const valmax = ref(400)
const defmin = ref(shared_consts.CIRCUIT_PARAMS.SCOPERTO_MIN_GRP)
const defmax = ref(shared_consts.CIRCUIT_PARAMS.SCOPERTO_MAX_GRP)
@@ -35,7 +38,7 @@ export default defineComponent({
const replace_username = ref('')
const incaricamento = ref(false)
function EseguiFunz(miafunz: string, search_username?: string, replace_username?: string, valmin?: number, valmax?: number) {
function EseguiFunz(miafunz: string, search_username?: string, replace_username?: string, valmin?: number, valmax?: number, circuitId?: string) {
const userStore = useUserStore()
const globalStore = useGlobalStore()
@@ -60,6 +63,7 @@ export default defineComponent({
replace_username,
valmin: valmin,
valmax: valmax,
circuitId,
}
incaricamento.value = true
@@ -98,6 +102,8 @@ export default defineComponent({
defmax,
defpersmin,
defpersmax,
circuitId,
circuitStore,
}
},
})