Poter modificare i limiti min e max su di 1 circuito specifico
This commit is contained in:
@@ -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,
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -339,9 +339,7 @@
|
||||
<q-btn
|
||||
label="Replace All Circuits with 'Circuito RIS nomeprovincia'"
|
||||
color="primary"
|
||||
@click="
|
||||
EseguiFunz('ReplaceAllCircuits')
|
||||
"
|
||||
@click="EseguiFunz('ReplaceAllCircuits')"
|
||||
></q-btn>
|
||||
<br />
|
||||
</div>
|
||||
@@ -360,6 +358,32 @@
|
||||
@click="EseguiFunz('ImpostaMinMaxPersonali', '', '', valmin, valmax)"
|
||||
></q-btn>
|
||||
</div>
|
||||
<div class="row">
|
||||
<q-select
|
||||
rounded
|
||||
outlined
|
||||
v-model="circuitId"
|
||||
:options="circuitStore.getCircuitsLabelValue()"
|
||||
label="Circuiti"
|
||||
emit-value
|
||||
map-options
|
||||
>
|
||||
</q-select>
|
||||
<q-btn
|
||||
label="Imposta Min e Max per TUTTI i Conti Personali di un Circuito"
|
||||
color="primary"
|
||||
@click="
|
||||
EseguiFunz(
|
||||
'ImpostaMinMaxPersonaliCircuito',
|
||||
'',
|
||||
'',
|
||||
valmin,
|
||||
valmax,
|
||||
circuitId
|
||||
)
|
||||
"
|
||||
></q-btn>
|
||||
</div>
|
||||
<div class="row">
|
||||
<q-btn
|
||||
label="Imposta Min e Max per TUTTI i Conti Comunitari"
|
||||
@@ -381,13 +405,25 @@
|
||||
label="DEFAULT Fiducia Concessa"
|
||||
style="width: 300px"
|
||||
></q-input>
|
||||
<q-input v-model="defpersmax" label="DEFAULT Max Qta" style="width: 300px"></q-input>
|
||||
<q-input
|
||||
v-model="defpersmax"
|
||||
label="DEFAULT Max Qta"
|
||||
style="width: 300px"
|
||||
></q-input>
|
||||
</div>
|
||||
<div class="row">
|
||||
<q-btn
|
||||
label="Imposta Min e Max per i Circuiti Personali di DEFAULT"
|
||||
color="primary"
|
||||
@click="EseguiFunz('ImpostaDefMinMaxPersonali', '', '', defpersmin, defpersmax)"
|
||||
@click="
|
||||
EseguiFunz(
|
||||
'ImpostaDefMinMaxPersonali',
|
||||
'',
|
||||
'',
|
||||
defpersmin,
|
||||
defpersmax
|
||||
)
|
||||
"
|
||||
></q-btn>
|
||||
</div>
|
||||
<div class="row">
|
||||
@@ -396,13 +432,19 @@
|
||||
label="DEFAULT Fiducia Concessa"
|
||||
style="width: 300px"
|
||||
></q-input>
|
||||
<q-input v-model="defmax" label="DEFAULT Max Qta" style="width: 300px"></q-input>
|
||||
<q-input
|
||||
v-model="defmax"
|
||||
label="DEFAULT Max Qta"
|
||||
style="width: 300px"
|
||||
></q-input>
|
||||
</div>
|
||||
<div class="row">
|
||||
<q-btn
|
||||
label="Imposta Min e Max per i Circuiti Collettivi di DEFAULT"
|
||||
color="primary"
|
||||
@click="EseguiFunz('ImpostaDefMinMaxCollettivi', '', '', defmin, defmax)"
|
||||
@click="
|
||||
EseguiFunz('ImpostaDefMinMaxCollettivi', '', '', defmin, defmax)
|
||||
"
|
||||
></q-btn>
|
||||
<br />
|
||||
</div>
|
||||
@@ -446,11 +488,11 @@
|
||||
</div>
|
||||
</template>
|
||||
</q-field>
|
||||
<q-btn
|
||||
label="Set strProv by IdCity (table circuits)"
|
||||
color="negative"
|
||||
@click="EseguiFunz('setstrProvByIdCityCircuits')"
|
||||
></q-btn>
|
||||
<q-btn
|
||||
label="Set strProv by IdCity (table circuits)"
|
||||
color="negative"
|
||||
@click="EseguiFunz('setstrProvByIdCityCircuits')"
|
||||
></q-btn>
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts" src="./dbop.ts">
|
||||
|
||||
Reference in New Issue
Block a user