Pagina con i link dei Canali territoriali di RISO

Lista Tabelle "Aggiungi" da errore userId...
Aggiunto "Servizi" e alcune sue sottocategorie
Aggiunto anche la conversione della foto piccola alla Foto Profilo
This commit is contained in:
paoloar77
2022-03-09 14:53:17 +01:00
parent 267dca3f15
commit 00939b053a
38 changed files with 722 additions and 741 deletions

View File

@@ -32,6 +32,7 @@ export default defineComponent({
const inputfile = ref('')
const risultato = ref('')
const risraw = ref('')
const caricaDatiToggle = ref(false)
@@ -395,6 +396,32 @@ export default defineComponent({
userStore.importToServerCmd($q, t, cosafare.value, null)
}
function createProvLink() {
let str = ''
const arr = globalStore.provinces
let regione = ''
let regid = ''
for (const prov of arr) {
if (prov.link_grp) {
if (prov.reg !== regid) {
const myreg = shared_consts.Regions.find((rec: any) => rec.value === prov.reg)
if (myreg) {
regid = myreg.value
regione = myreg.label
str += '<br><div class="text-subtitle1">' + regione + '</div>'
}
}
str += '<a class="prov" href="' + prov.link_grp + '" target="_blank">' + prov.descr + '</a><br>'
}
}
risultato.value = str
risraw.value = str
}
onMounted(created)
return {
@@ -407,6 +434,8 @@ export default defineComponent({
eseguiCmd,
caricaDatiToggle,
caricadati,
createProvLink,
risraw,
}
}
})