Aggiunto la pagina dei Beni e Servizi della persona singola, separata dal profilo.
This commit is contained in:
@@ -40,6 +40,7 @@ import { CMyCardGrpPopup } from '@/components/CMyCardGrpPopup'
|
||||
import { CMyCardCircuitPopup } from '@/components/CMyCardCircuitPopup'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { table } from 'console'
|
||||
import { globals } from 'jest.config'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'CBarSelection',
|
||||
@@ -249,17 +250,7 @@ export default defineComponent({
|
||||
|
||||
function mounted() {
|
||||
|
||||
optionsMainCards.value = []
|
||||
let obj = { label: '', value: '', icon: '' }
|
||||
for (let i = 0; i < costanti.MAINCARDS.length - 1; i++) {
|
||||
let rec: any = costanti.MAINCARDS[i]
|
||||
if (rec.table) {
|
||||
obj.label = rec.title
|
||||
obj.value = rec.table
|
||||
obj.icon = rec.icon
|
||||
optionsMainCards.value.push({...obj})
|
||||
}
|
||||
}
|
||||
optionsMainCards.value = tools.getoptionsMainCards(false)
|
||||
|
||||
tablesel.value = props.table
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<template v-slot:append>
|
||||
<div v-if="!small" :class="small ? `text-h7-dense` : `text-h5`">
|
||||
<div v-if="!small" :class="small ? `text-h7-dense` : `text-h7`">
|
||||
<em class="q-px-sm text-white rounded-borders" :style="`background-color: ` + (color ? color : '#ff5500')">{{ symbol }}</em>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -2,7 +2,7 @@ import { computed, defineComponent, onMounted, PropType, ref, watch } from 'vue'
|
||||
import { useUserStore } from '@store/UserStore'
|
||||
import { useCircuitStore } from '@store/CircuitStore'
|
||||
|
||||
import { ICircuit, IImgGallery, IUserFields, IUserProfile, IFriends, IAccount } from 'model'
|
||||
import { ICircuit, IImgGallery, IUserFields, IUserProfile, IFriends, IAccount, IMyCircuit } from 'model'
|
||||
import { costanti } from '@costanti'
|
||||
import { shared_consts } from '@/common/shared_vuejs'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
@@ -46,7 +46,7 @@ export default defineComponent({
|
||||
|
||||
const globalStore = useGlobalStore()
|
||||
|
||||
const circuit = ref(<ICircuit | null>null)
|
||||
const circuit = ref(<ICircuit | IMyCircuit | null>null)
|
||||
const account = computed(() => circuit.value ? userStore.getAccountByCircuitId(circuit.value._id) : null )
|
||||
|
||||
const qtarem = computed(() => account.value ? circuitStore.getRemainingCoinsToSend(account.value) : 0)
|
||||
@@ -70,6 +70,14 @@ export default defineComponent({
|
||||
circuit.value = props.mycircuit
|
||||
}
|
||||
}
|
||||
if (circuit.value && circuit.value.hasOwnProperty('circuitname')) {
|
||||
// @ts-ignore
|
||||
const rectofind = circuitStore.listcircuits.find((circ: ICircuit) => circ.name === circuit.value.circuitname!)
|
||||
if (rectofind) {
|
||||
console.log('rectofind', rectofind)
|
||||
circuit.value = rectofind
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getImgCircuit(circuit: ICircuit) {
|
||||
|
||||
@@ -586,6 +586,9 @@
|
||||
>
|
||||
</CChartMap>-->
|
||||
</div>
|
||||
<div v-else-if="myel.type === shared_consts.ELEMTYPE.FOOTER">
|
||||
<LandingFooter />
|
||||
</div>
|
||||
<div v-if="editOn">
|
||||
<div class="q-ma-md"></div>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
|
||||
symbol: {{symbol}}
|
||||
<CCurrencyValue
|
||||
v-if="small"
|
||||
:small="true"
|
||||
|
||||
Reference in New Issue
Block a user