- Aggiornato grafica Pagina Gruppi
- Lista Utenti appartenenti al gruppo - Lista richieste gruppo - Nome e Cognome tolti
This commit is contained in:
@@ -126,6 +126,10 @@ export default defineComponent({
|
||||
type: String,
|
||||
required: false,
|
||||
default: '',
|
||||
},
|
||||
filter: {
|
||||
type: Function,
|
||||
required: false,
|
||||
}
|
||||
},
|
||||
components: {},
|
||||
@@ -194,7 +198,7 @@ export default defineComponent({
|
||||
// console.log('----------- arrtempOpt.value', arrtempOpt.value)
|
||||
|
||||
localStorage.setItem(props.tablesel + num + props.optval, id)
|
||||
localStorage.setItem(props.tablesel + num + props.optlab, rec[`${props.optlab}`])
|
||||
localStorage.setItem(props.tablesel + num + props.optlab, tools.getValueByFunzOrVal(rec, props.optlab))
|
||||
|
||||
num += 1
|
||||
localStorage.setItem(props.tablesel + 'NUM', num.toString())
|
||||
@@ -320,7 +324,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
if (props.tablesel === 'friendsandme') {
|
||||
debugger;
|
||||
// debugger;
|
||||
}
|
||||
|
||||
if (props.multiple) {
|
||||
@@ -349,7 +353,7 @@ export default defineComponent({
|
||||
if (props.funcgetvaluebyid)
|
||||
myvalue.value = props.funcgetvaluebyid(rec[`${props.optval}`])
|
||||
else
|
||||
myvalue.value = rec[`${props.optlab}`]
|
||||
myvalue.value = tools.getValueByFunzOrVal(rec, props.optlab)
|
||||
} else {
|
||||
// if (!props.useinput) {
|
||||
if (props.value) {
|
||||
@@ -372,13 +376,16 @@ export default defineComponent({
|
||||
function updateArrOptions() {
|
||||
let myarr: any = []
|
||||
|
||||
// console.log(props.col.jointable, props.filter)
|
||||
if (props.col.jointable) {
|
||||
optionsreal.value = globalStore.getTableJoinByName(props.col.jointable, props.col.addall, props.col.filter)
|
||||
optionsreal.value = globalStore.getTableJoinByName(props.col.jointable, props.col.addall, props.filter)
|
||||
// console.log('optionsreal.value', optionsreal.value)
|
||||
} else {
|
||||
optionsreal.value = props.options
|
||||
}
|
||||
|
||||
// console.log('optionsreal.value', optionsreal.value)
|
||||
|
||||
myarr = optionsreal.value
|
||||
if (!fieldsTable.tableRemotePickup.includes(props.tablesel)) {
|
||||
|
||||
@@ -386,7 +393,7 @@ export default defineComponent({
|
||||
|
||||
// console.log('needle', needle, 'props.multiple', props.multiple)
|
||||
if (props.filter_table) {
|
||||
console.log(' FILTERTABLE', props.filter_field, myarr)
|
||||
// console.log(' FILTERTABLE', props.filter_field, myarr)
|
||||
if (props.multiple) {
|
||||
myarr = myarr.filter((rec: any) => rec[props.filter_field] === needle)
|
||||
} else {
|
||||
@@ -578,6 +585,7 @@ export default defineComponent({
|
||||
abortFilterFn,
|
||||
newvaluefuncfirst,
|
||||
getIcon,
|
||||
tools,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
<template v-slot:option="scope">
|
||||
<q-item v-bind="scope.itemProps">
|
||||
<q-item-section>
|
||||
<q-item-label> {{ scope.opt[optlab] }}</q-item-label>
|
||||
<q-item-label> {{ tools.getValueByFunzOrVal(scope.opt,optlab) }}</q-item-label>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
</template>
|
||||
@@ -139,7 +139,7 @@
|
||||
</template>
|
||||
<template
|
||||
v-slot:selected-item="scope">
|
||||
<div v-if="scope.opt[optlab]">
|
||||
<div v-if="tools.getValueByFunzOrVal(scope.opt,optlab)">
|
||||
<q-chip
|
||||
removable
|
||||
dense
|
||||
@@ -149,7 +149,7 @@
|
||||
class="q-my-none q-ml-xs q-mr-none"
|
||||
>
|
||||
<q-avatar color="primary" text-color="white" :icon="scope.opt.icon ? scope.opt.icon : ''" size="12px"/>
|
||||
{{ scope.opt[optlab] }}
|
||||
{{ tools.getValueByFunzOrVal(scope.opt, optlab) }}
|
||||
</q-chip>
|
||||
</div>
|
||||
</template>
|
||||
@@ -158,7 +158,7 @@
|
||||
v-slot:option="{ itemProps, opt, selected, toggleOption }">
|
||||
<q-item v-bind="itemProps">
|
||||
<q-item-section>
|
||||
<q-item-label>{{ opt[optlab] }}</q-item-label>
|
||||
<q-item-label>{{ tools.getValueByFunzOrVal(opt,optlab) }}</q-item-label>
|
||||
<q-item-label v-if="'hint' in opt" class="hint">{{ opt['hint'] }}</q-item-label>
|
||||
</q-item-section>
|
||||
<q-item-section side>
|
||||
@@ -200,7 +200,7 @@
|
||||
<q-icon :name="scope.opt.icon ? scope.opt.icon : ''"/>
|
||||
</q-item-section>
|
||||
<q-item-section>
|
||||
<q-item-label>{{ scope.opt[optlab] }}</q-item-label>
|
||||
<q-item-label>{{ tools.getValueByFunzOrVal(scope.opt,optlab) }}</q-item-label>
|
||||
<q-item-label v-if="'hint' in scope.opt" class="hint">{{ scope.opt['hint'] }}</q-item-label>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
|
||||
Reference in New Issue
Block a user