- pagine admin: Accounts, Movements e Circuits.
- add change min e max range circuiti (per tutti i record).
This commit is contained in:
@@ -9,6 +9,7 @@ import { useUserStore } from '@store/UserStore'
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import { costanti } from '@costanti'
|
||||
import { shared_consts } from '@src/common/shared_vuejs'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'Dbop',
|
||||
@@ -24,11 +25,17 @@ export default defineComponent({
|
||||
const date_start = ref(new Date())
|
||||
const col = ref(0)
|
||||
const placca = ref('')
|
||||
const valmin = ref(200)
|
||||
const valmax = ref(400)
|
||||
const defmin = ref(shared_consts.CIRCUIT_PARAMS.SCOPERTO_MIN_GRP)
|
||||
const defmax = ref(shared_consts.CIRCUIT_PARAMS.SCOPERTO_MAX_GRP)
|
||||
const defpersmin = ref(100)
|
||||
const defpersmax = ref(200)
|
||||
const search_username = ref('')
|
||||
const replace_username = ref('')
|
||||
const incaricamento = ref(false)
|
||||
|
||||
function EseguiFunz(miafunz: string, search_username?: string, replace_username?: string) {
|
||||
function EseguiFunz(miafunz: string, search_username?: string, replace_username?: string, valmin?: number, valmax?: number) {
|
||||
const userStore = useUserStore()
|
||||
const globalStore = useGlobalStore()
|
||||
|
||||
@@ -51,6 +58,8 @@ export default defineComponent({
|
||||
numpersone: numpersone,
|
||||
search_username,
|
||||
replace_username,
|
||||
valmin: valmin,
|
||||
valmax: valmax,
|
||||
}
|
||||
|
||||
incaricamento.value = true
|
||||
@@ -82,7 +91,13 @@ export default defineComponent({
|
||||
tools,
|
||||
costanti,
|
||||
search_username,
|
||||
replace_username
|
||||
replace_username,
|
||||
valmin,
|
||||
valmax,
|
||||
defmin,
|
||||
defmax,
|
||||
defpersmin,
|
||||
defpersmax,
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,23 +1,27 @@
|
||||
<template>
|
||||
<div>
|
||||
<CTitleBanner title="Operazioni su DB:"></CTitleBanner>
|
||||
<div class="row justify-center q-gutter-sm q-list--bordered center_img" style="max-width: 600px">
|
||||
<div
|
||||
class="row justify-center q-gutter-sm q-list--bordered center_img"
|
||||
style="max-width: 600px"
|
||||
>
|
||||
<CMyFieldDb
|
||||
title="SITO_ONLINE"
|
||||
mykey="SITO_ONLINE"
|
||||
:serv="false"
|
||||
:type="costanti.FieldType.boolean">
|
||||
:type="costanti.FieldType.boolean"
|
||||
>
|
||||
</CMyFieldDb>
|
||||
<br>
|
||||
<br />
|
||||
|
||||
<CMyFieldDb
|
||||
title="ABILITA CRONTAB (1 ora)"
|
||||
mykey="CRONTAB"
|
||||
:serv="false"
|
||||
:type="costanti.FieldType.boolean">
|
||||
:type="costanti.FieldType.boolean"
|
||||
>
|
||||
</CMyFieldDb>
|
||||
<br>
|
||||
|
||||
<br />
|
||||
|
||||
<!--
|
||||
<div class="row">
|
||||
@@ -203,101 +207,196 @@
|
||||
|
||||
<div class="row">
|
||||
<q-btn
|
||||
label="Correggi Tabella Hours con userId" color="negative"
|
||||
@click="EseguiFunz('CorreggiTabHours')"></q-btn>
|
||||
<br>
|
||||
label="Correggi Tabella Hours con userId"
|
||||
color="negative"
|
||||
@click="EseguiFunz('CorreggiTabHours')"
|
||||
></q-btn>
|
||||
<br />
|
||||
</div>
|
||||
<div class="row">
|
||||
<q-btn
|
||||
label="setVerifiedByAportadorToALL" color="negative"
|
||||
@click="EseguiFunz('setVerifiedByAportadorToALL')"></q-btn>
|
||||
<br>
|
||||
label="setVerifiedByAportadorToALL"
|
||||
color="negative"
|
||||
@click="EseguiFunz('setVerifiedByAportadorToALL')"
|
||||
></q-btn>
|
||||
<br />
|
||||
</div>
|
||||
<div class="row">
|
||||
<q-btn
|
||||
label="1. Cancella Tabelle (Sectors, SectorGoods, Skills, Goods)" color="negative"
|
||||
@click="EseguiFunz('emptyTabCatServiziBeni')"></q-btn>
|
||||
<br>
|
||||
label="1. Cancella Tabelle (Sectors, SectorGoods, Skills, Goods)"
|
||||
color="negative"
|
||||
@click="EseguiFunz('emptyTabCatServiziBeni')"
|
||||
></q-btn>
|
||||
<br />
|
||||
</div>
|
||||
<div class="row">
|
||||
<q-btn
|
||||
label="1. Cancella e Ricrea tutte le Tabelle (Sector, Skill, SubSkill, Contribtype, AdType)" color="negative"
|
||||
@click="EseguiFunz('emptyDbSkill')"></q-btn>
|
||||
<br>
|
||||
label="1. Cancella e Ricrea tutte le Tabelle (Sector, Skill, SubSkill, Contribtype, AdType)"
|
||||
color="negative"
|
||||
@click="EseguiFunz('emptyDbSkill')"
|
||||
></q-btn>
|
||||
<br />
|
||||
</div>
|
||||
<div class="row">
|
||||
<q-btn
|
||||
label="1. Cancella e Ricrea le Tabelle (City, Province)" color="negative"
|
||||
@click="EseguiFunz('ricreaTabCitiesProvinces')"></q-btn>
|
||||
<br>
|
||||
label="1. Cancella e Ricrea le Tabelle (City, Province)"
|
||||
color="negative"
|
||||
@click="EseguiFunz('ricreaTabCitiesProvinces')"
|
||||
></q-btn>
|
||||
<br />
|
||||
</div>
|
||||
<div class="row">
|
||||
<q-btn
|
||||
label="2. Popola Tutte le Tabelle vuote (o incomplete)" color="negative"
|
||||
@click="EseguiFunz('PopulateTables')"></q-btn>
|
||||
<br>
|
||||
label="2. Popola Tutte le Tabelle vuote (o incomplete)"
|
||||
color="negative"
|
||||
@click="EseguiFunz('PopulateTables')"
|
||||
></q-btn>
|
||||
<br />
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<q-btn
|
||||
label="copyFrom1To14" color="negative"
|
||||
@click="EseguiFunz('copyFrom1To14')"></q-btn>
|
||||
<br>
|
||||
label="copyFrom1To14"
|
||||
color="negative"
|
||||
@click="EseguiFunz('copyFrom1To14')"
|
||||
></q-btn>
|
||||
<br />
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<q-btn
|
||||
label="Rewrite Cities Table" color="negative"
|
||||
@click="EseguiFunz('RewriteCitiesTable')"></q-btn>
|
||||
<br>
|
||||
label="Rewrite Cities Table"
|
||||
color="negative"
|
||||
@click="EseguiFunz('RewriteCitiesTable')"
|
||||
></q-btn>
|
||||
<br />
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<q-btn
|
||||
label="Rewrite Levels Table" color="negative"
|
||||
@click="EseguiFunz('RewriteLevelsTable')"></q-btn>
|
||||
<br>
|
||||
label="Rewrite Levels Table"
|
||||
color="negative"
|
||||
@click="EseguiFunz('RewriteLevelsTable')"
|
||||
></q-btn>
|
||||
<br />
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<q-btn
|
||||
label="Rewrite Provinces Table" color="negative"
|
||||
@click="EseguiFunz('RewriteProvincesTable')"></q-btn>
|
||||
<br>
|
||||
label="Rewrite Provinces Table"
|
||||
color="negative"
|
||||
@click="EseguiFunz('RewriteProvincesTable')"
|
||||
></q-btn>
|
||||
<br />
|
||||
</div>
|
||||
<div class="row">
|
||||
<q-btn
|
||||
label="Rewrite ContribType" color="negative"
|
||||
@click="EseguiFunz('RewriteContribType')"></q-btn>
|
||||
<br>
|
||||
label="Rewrite ContribType"
|
||||
color="negative"
|
||||
@click="EseguiFunz('RewriteContribType')"
|
||||
></q-btn>
|
||||
<br />
|
||||
</div>
|
||||
<div class="row">
|
||||
<q-input v-model="search_username" label="Username Search" style="width: 300px;"></q-input>
|
||||
<q-input v-model="replace_username" label="Username Replace" style="width: 300px;"></q-input>
|
||||
<q-input
|
||||
v-model="search_username"
|
||||
label="Username Search"
|
||||
style="width: 300px"
|
||||
></q-input>
|
||||
<q-input
|
||||
v-model="replace_username"
|
||||
label="Username Replace"
|
||||
style="width: 300px"
|
||||
></q-input>
|
||||
|
||||
<q-btn
|
||||
label="Replace Username" color="primary"
|
||||
@click="EseguiFunz('ReplaceUsername', search_username, replace_username)"></q-btn>
|
||||
<br>
|
||||
label="Replace Username"
|
||||
color="primary"
|
||||
@click="
|
||||
EseguiFunz('ReplaceUsername', search_username, replace_username)
|
||||
"
|
||||
></q-btn>
|
||||
<br />
|
||||
</div>
|
||||
<div class="row">
|
||||
<q-btn
|
||||
label="Create Account Circuits" color="primary"
|
||||
@click="EseguiFunz('CreateAccountCircuits', search_username, replace_username)"></q-btn>
|
||||
<br>
|
||||
label="Create Account Circuits"
|
||||
color="primary"
|
||||
@click="
|
||||
EseguiFunz('CreateAccountCircuits', search_username, replace_username)
|
||||
"
|
||||
></q-btn>
|
||||
<br />
|
||||
</div>
|
||||
<div class="row">
|
||||
<q-input
|
||||
v-model="valmin"
|
||||
label="Fiducia Concessa"
|
||||
style="width: 300px"
|
||||
></q-input>
|
||||
<q-input v-model="valmax" label="Max Qta" style="width: 300px"></q-input>
|
||||
</div>
|
||||
<div class="row">
|
||||
<q-btn
|
||||
label="Imposta Min e Max per TUTTI i Conti Personali"
|
||||
color="primary"
|
||||
@click="EseguiFunz('ImpostaMinMaxPersonali', '', '', valmin, valmax)"
|
||||
></q-btn>
|
||||
</div>
|
||||
<div class="row">
|
||||
<q-btn
|
||||
label="Imposta Min e Max per TUTTI i Conti Comunitari"
|
||||
color="primary"
|
||||
@click="EseguiFunz('ImpostaMinMaxComunitari', '', '', valmin, valmax)"
|
||||
></q-btn>
|
||||
</div>
|
||||
<div class="row">
|
||||
<q-btn
|
||||
label="Imposta Min e Max per TUTTI i Conti Collettivi"
|
||||
color="primary"
|
||||
@click="EseguiFunz('ImpostaMinMaxCollettivi', '', '', valmin, valmax)"
|
||||
></q-btn>
|
||||
<br />
|
||||
</div>
|
||||
<div class="row">
|
||||
<q-input
|
||||
v-model="defpersmin"
|
||||
label="DEFAULT Fiducia Concessa"
|
||||
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)"
|
||||
></q-btn>
|
||||
</div>
|
||||
<div class="row">
|
||||
<q-input
|
||||
v-model="defmin"
|
||||
label="DEFAULT Fiducia Concessa"
|
||||
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)"
|
||||
></q-btn>
|
||||
<br />
|
||||
</div>
|
||||
|
||||
|
||||
<q-field
|
||||
stack-label
|
||||
dense
|
||||
>
|
||||
<q-field stack-label dense>
|
||||
<template v-slot:control>
|
||||
<div class="self-center full-width no-outline text-center" tabindex="0">{{ ris }}</div>
|
||||
<div class="self-center full-width no-outline text-center" tabindex="0">
|
||||
{{ ris }}
|
||||
</div>
|
||||
</template>
|
||||
|
||||
</q-field>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts" src="./dbop.ts">
|
||||
|
||||
@@ -221,11 +221,10 @@
|
||||
></q-tab>
|
||||
<q-tab
|
||||
v-if="
|
||||
costanti.ENABLE_CONTI_COMUNITARI &&
|
||||
tools.iAmAdminCircuit(circuit.name)
|
||||
costanti.ENABLE_CONTI_COLLETTIVI
|
||||
"
|
||||
:label="t('circuit.conticollettivi')"
|
||||
name="gruppicom"
|
||||
name="gruppicollettivi"
|
||||
icon="fas fa-users"
|
||||
></q-tab>
|
||||
<q-tab
|
||||
@@ -243,7 +242,7 @@
|
||||
</q-tabs>
|
||||
|
||||
<q-tab-panels v-model="tabcircuit" animated>
|
||||
<q-tab-panel name="gruppicom">
|
||||
<q-tab-panel name="gruppicollettivi">
|
||||
<div class="row justify-center">
|
||||
<q-btn rounded icon="fas fa-user-plus" class="text-center">
|
||||
<q-menu>
|
||||
@@ -260,6 +259,7 @@
|
||||
<q-item-section>
|
||||
<q-btn
|
||||
v-if="
|
||||
userStore.IsMyCircuitByName(circuit.name) &&
|
||||
group.groupname &&
|
||||
!circuitStore.IsAskedCircuitByNameAndGroup(
|
||||
circuit.name,
|
||||
@@ -703,8 +703,7 @@
|
||||
>
|
||||
</CSaldo>
|
||||
</span>
|
||||
<div class=""
|
||||
v-if="tools.iAmAdminCircuit(circuit.name)">
|
||||
<div class="">
|
||||
<q-btn
|
||||
icon="fas fa-coins"
|
||||
color="green"
|
||||
@@ -952,6 +951,7 @@
|
||||
<div v-if="showsendCoinTo">
|
||||
<CSendCoins
|
||||
:showprop="showsendCoinTo"
|
||||
:circuitname="circuit.name"
|
||||
:to_contocom="circuit.path"
|
||||
@close="showsendCoinTo = false"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user