- Fare LISTA MOVIMENTI più comprensibile
- Grafica Circuiti
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
.my-custom-border {
|
||||
border: 1px solid #ccc; /* Imposta il colore del bordo (puoi personalizzare) */
|
||||
|
||||
background-color: #fff; /* Colore sfondo per il contenitore (puoi personalizzare) */
|
||||
border-radius: 10px;
|
||||
}
|
||||
@@ -11,7 +11,10 @@ import { shared_consts } from '@src/common/shared_vuejs'
|
||||
import { costanti, IMainCard } from '@store/Modules/costanti'
|
||||
|
||||
import { CMyUser } from '../CMyUser'
|
||||
import { CTitleBanner } from '../CTitleBanner'
|
||||
import { CMyGroup } from '../CMyGroup'
|
||||
import { CCopyBtn } from '../CCopyBtn'
|
||||
import { CContactUser } from '../CContactUser'
|
||||
import { CUserInfoAccount } from '../CUserInfoAccount'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import { useQuasar } from 'quasar'
|
||||
@@ -19,7 +22,10 @@ import { useQuasar } from 'quasar'
|
||||
export default defineComponent({
|
||||
name: 'CSendRISTo',
|
||||
props: {},
|
||||
components: { CMyUser, CMyGroup, CUserInfoAccount },
|
||||
components: {
|
||||
CMyUser, CMyGroup, CUserInfoAccount, CCopyBtn,
|
||||
CTitleBanner, CContactUser
|
||||
},
|
||||
setup(props) {
|
||||
|
||||
const userStore = useUserStore()
|
||||
@@ -36,6 +42,9 @@ export default defineComponent({
|
||||
|
||||
const tipoConto = ref(shared_consts.AccountType.USER)
|
||||
const loading = ref(false)
|
||||
const miolink = ref('')
|
||||
const sendRIS = ref(false)
|
||||
const riceviRIS = ref(false)
|
||||
const circuitpath = computed(() => {
|
||||
const circ = circuitStore.getCircuitByProvinceAndCard(userStore.my.profile.resid_province, userStore.my.profile.resid_card)
|
||||
return circ && circ.path ? circ.path : ''
|
||||
@@ -80,6 +89,12 @@ export default defineComponent({
|
||||
loading.value = false
|
||||
}
|
||||
|
||||
function clickRiceviRIS() {
|
||||
miolink.value = 'my/'
|
||||
riceviRIS.value = true
|
||||
}
|
||||
|
||||
|
||||
return {
|
||||
userStore,
|
||||
tools,
|
||||
@@ -95,6 +110,10 @@ export default defineComponent({
|
||||
loading,
|
||||
contact,
|
||||
circuitpath,
|
||||
sendRIS,
|
||||
riceviRIS,
|
||||
miolink,
|
||||
clickRiceviRIS,
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -4,16 +4,6 @@
|
||||
class="row text-center justify-evenly items-center"
|
||||
>
|
||||
<div class="q-mb-sm">
|
||||
<q-btn
|
||||
icon="fas fa-download"
|
||||
color="accent"
|
||||
size="md"
|
||||
rounded
|
||||
:label="$t('circuit.receive_coins')"
|
||||
@click="tools.receiveRis($q, $t)"
|
||||
>
|
||||
</q-btn>
|
||||
|
||||
<q-btn
|
||||
icon="fas fa-upload"
|
||||
color="positive"
|
||||
@@ -23,14 +13,40 @@
|
||||
@click="sendCoinsToClick"
|
||||
>
|
||||
</q-btn>
|
||||
<div class="q-mb-sm"></div>
|
||||
|
||||
<q-btn
|
||||
icon="fas fa-download"
|
||||
color="accent"
|
||||
size="md"
|
||||
rounded
|
||||
:label="$t('circuit.receive_coins')"
|
||||
@click="clickRiceviRIS"
|
||||
>
|
||||
</q-btn>
|
||||
|
||||
<CTitleBanner
|
||||
v-if="riceviRIS"
|
||||
:class="`q-pa-xs `"
|
||||
:title="$t('circuit.receive_coins')"
|
||||
bgcolor="white"
|
||||
bgcolor2="lightblue"
|
||||
:clcolor="`text-indigo`"
|
||||
:canopen="true"
|
||||
:small="true"
|
||||
:open="true"
|
||||
>
|
||||
<CCopyBtn :title="$t('reg.click_per_copiare')" :texttocopy="miolink">
|
||||
</CCopyBtn>
|
||||
</CTitleBanner>
|
||||
<!--<div class="q-mb-sm"></div>
|
||||
|
||||
|
||||
<CUserInfoAccount
|
||||
:user="contact"
|
||||
:circuitpath="circuitpath"
|
||||
:admin="false"
|
||||
:onlysaldo="true"
|
||||
/>
|
||||
/>-->
|
||||
</div>
|
||||
</div>
|
||||
<q-dialog v-model="usersList.show">
|
||||
@@ -77,12 +93,19 @@
|
||||
|
||||
<div v-if="tipoConto === shared_consts.AccountType.USER">
|
||||
<div v-for="(rec, i) in usersList.list" :key="i">
|
||||
<CMyUser
|
||||
:mycontact="rec"
|
||||
:visu="costanti.FIND_PEOPLE"
|
||||
@setCmd="tools.setCmd"
|
||||
>
|
||||
</CMyUser>
|
||||
<div class="q-pa-xs q-ma-xs q-border q-rounded my-custom-border">
|
||||
<CMyUser
|
||||
:mycontact="rec"
|
||||
:visu="costanti.FIND_PEOPLE"
|
||||
@setCmd="tools.setCmd"
|
||||
>
|
||||
</CMyUser>
|
||||
<CContactUser
|
||||
:myuser="rec"
|
||||
:showBtnActivities="false"
|
||||
:sendRIS="tools.isUserOk() ? sendRIS : false"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user