Aggiornamenti
This commit is contained in:
32
src/rootgen/admin/listaflotte/listaflotte.scss
Executable file
32
src/rootgen/admin/listaflotte/listaflotte.scss
Executable file
@@ -0,0 +1,32 @@
|
||||
.DoniMancanti{
|
||||
color: red;
|
||||
}
|
||||
|
||||
.DoniAttesaDiConferma{
|
||||
color: blue;
|
||||
}
|
||||
|
||||
.DoniConfermati{
|
||||
color: green;
|
||||
}
|
||||
|
||||
.cont_donatore {
|
||||
border: solid 2px #4198ef;
|
||||
padding: 2px 8px;
|
||||
margin: 2px 4px;
|
||||
font-size: 1rem;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
.donatore, .mediatore, .sognatore, .title-nave, .intermedio2, .intermedio3 {
|
||||
padding: 2px 4px;
|
||||
margin: 2px 4px;
|
||||
color: white;
|
||||
font-size: 1rem;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
.donatore {
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
59
src/rootgen/admin/listaflotte/listaflotte.ts
Executable file
59
src/rootgen/admin/listaflotte/listaflotte.ts
Executable file
@@ -0,0 +1,59 @@
|
||||
import { Component, Watch } from 'vue-property-decorator'
|
||||
import { tools } from '@src/store/Modules/tools'
|
||||
import { func_tools } from 'store/Modules/toolsext'
|
||||
import { CalendarStore, GlobalStore, UserStore } from '@store'
|
||||
import { CGridTableRec, CMyFieldDb, CTitleBanner } from '@components'
|
||||
import { colnewstosent, coltemplemail, colopzemail, colmailinglist } from '@src/store/Modules/fieldsTable'
|
||||
import { DefaultNewsState, INewsState } from '@src/model/index'
|
||||
import translate from '../../../globalroutines/util'
|
||||
import { getCookie } from 'utils/auth'
|
||||
import { CTitle } from '../../../components/CTitle'
|
||||
import { CMyPage } from '../../../components/CMyPage'
|
||||
import MixinBase from '../../../mixins/mixin-base'
|
||||
import { CMyNave } from '../../../components/CMyNave'
|
||||
import { lists } from '../../../store/Modules/lists'
|
||||
import { CMyFlotta } from '../../../components/CMyFlotta'
|
||||
|
||||
const namespace = 'CalendarModule'
|
||||
|
||||
@Component({
|
||||
components: { CTitle, CTitleBanner, CMyNave, CMyFlotta },
|
||||
mixins: []
|
||||
})
|
||||
export default class Listaflotte extends MixinBase {
|
||||
public $t: any
|
||||
public $q
|
||||
public incaricamento: boolean = false
|
||||
public loading: boolean = false
|
||||
public showall: boolean = false
|
||||
public tutteleflotte: boolean = false
|
||||
public mostratemporanee: boolean = false
|
||||
public arrflotte = []
|
||||
public async mounted() {
|
||||
|
||||
this.Ricalcola(false)
|
||||
}
|
||||
|
||||
public async Ricalcola(ricalcola) {
|
||||
this.loading = true
|
||||
// this.$q.loading.show({ message: this.$t('otherpages.update') })
|
||||
|
||||
this.arrflotte = await GlobalStore.actions.GetFlotte({ ricalcola, showall: this.showall })
|
||||
|
||||
console.log('this.arrflotte', this.arrflotte)
|
||||
|
||||
// this.$q.loading.hide()
|
||||
|
||||
this.loading = false
|
||||
}
|
||||
|
||||
public SaveField(rec, table, myfield) {
|
||||
if (!!rec) {
|
||||
const mydata = {}
|
||||
mydata[myfield] = rec[myfield]
|
||||
// console.log('mydata', mydata, 'id', rec._id)
|
||||
tools.saveFieldToServer(this, table, rec._id, mydata)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
39
src/rootgen/admin/listaflotte/listaflotte.vue
Executable file
39
src/rootgen/admin/listaflotte/listaflotte.vue
Executable file
@@ -0,0 +1,39 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="q-my-xs q-gutter-xs q-py-xs text-center">
|
||||
<CTitleBanner class="q-pa-xs"
|
||||
title="Flotte"
|
||||
bgcolor="bg-primary"
|
||||
clcolor="text-white"
|
||||
mystyle="" myclass="myshad" canopen="true">
|
||||
|
||||
<q-toggle v-model="tutteleflotte"
|
||||
label="Tutte le Flotte">
|
||||
|
||||
</q-toggle>
|
||||
|
||||
<q-toggle v-model="mostratemporanee"
|
||||
label="Flotte Temporanee">
|
||||
|
||||
</q-toggle>
|
||||
|
||||
<div v-for="(flotta, index) in arrflotte" :key="index">
|
||||
|
||||
<div v-if="!tutteleflotte && ((flotta.DoniTotali !== flotta.DoniConfermati) || (flotta.DoniTotali === 0 && !flotta.provvisoria)) || tutteleflotte || (mostratemporanee && flotta.provvisoria)">
|
||||
|
||||
<CMyFlotta :flottaprop="flotta">
|
||||
|
||||
</CMyFlotta>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</CTitleBanner>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts" src="./listaflotte.ts">
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
@import './listaflotte.scss';
|
||||
</style>
|
||||
0
src/rootgen/admin/msg_template/msg_template.scss
Executable file
0
src/rootgen/admin/msg_template/msg_template.scss
Executable file
47
src/rootgen/admin/msg_template/msg_template.ts
Executable file
47
src/rootgen/admin/msg_template/msg_template.ts
Executable file
@@ -0,0 +1,47 @@
|
||||
import Vue from 'vue'
|
||||
import { Component, Prop } from 'vue-property-decorator'
|
||||
import { GlobalStore, UserStore } from '@store'
|
||||
|
||||
import { tools } from '../../../store/Modules/tools'
|
||||
import { toolsext } from '../../../store/Modules/toolsext'
|
||||
import { static_data } from '../../../db/static_data'
|
||||
import { Screen } from 'quasar'
|
||||
|
||||
import { CImgText } from '../../../components/CImgText/index'
|
||||
import { CCard, CGridTableRec, CMyPage, CTitleBanner } from '@components'
|
||||
import MixinMetaTags from '../../../mixins/mixin-metatags'
|
||||
import MixinBase from '@src/mixins/mixin-base'
|
||||
import { colmsg_templates } from '../../../store/Modules/fieldsTable'
|
||||
|
||||
@Component({
|
||||
mixins: [MixinBase],
|
||||
components: { CImgText, CCard, CMyPage, CTitleBanner, CGridTableRec }
|
||||
})
|
||||
export default class Msgtemplate extends MixinMetaTags {
|
||||
public pagination = {
|
||||
sortBy: 'name',
|
||||
descending: false,
|
||||
page: 2,
|
||||
rowsPerPage: 5
|
||||
// rowsNumber: xx if getting data from a server
|
||||
}
|
||||
|
||||
public selected = []
|
||||
public dataMsg_Templates = []
|
||||
|
||||
public async mounted() {
|
||||
this.dataMsg_Templates = await GlobalStore.actions.GetMsgTemplates()
|
||||
}
|
||||
|
||||
get getcolmsg_templates() {
|
||||
return colmsg_templates
|
||||
}
|
||||
|
||||
public meta() {
|
||||
return tools.metafunc(this)
|
||||
}
|
||||
|
||||
get static_data() {
|
||||
return static_data
|
||||
}
|
||||
}
|
||||
27
src/rootgen/admin/msg_template/msg_template.vue
Executable file
27
src/rootgen/admin/msg_template/msg_template.vue
Executable file
@@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<CMyPage title="Template Messaggi" imgbackground="../../statics/images/calendario_eventi.jpg" sizes="max-height: 100px">
|
||||
<span>{{ setmeta({
|
||||
title: 'Template Messaggi',
|
||||
description: "",
|
||||
keywords: '' } ) }}
|
||||
</span>
|
||||
|
||||
<div class="q-ma-sm q-gutter-sm q-pa-xs">
|
||||
<CTitleBanner title="Template Messaggi"></CTitleBanner>
|
||||
<CGridTableRec prop_mytable="msg_templates"
|
||||
prop_mytitle="Lista Messaggi"
|
||||
:prop_mycolumns="getcolmsg_templates"
|
||||
prop_colkey="title"
|
||||
nodataLabel="Nessun Messaggio"
|
||||
noresultLabel="Il filtro selezionato non ha trovato nessun risultato">
|
||||
|
||||
</CGridTableRec>
|
||||
</div>
|
||||
</CMyPage>
|
||||
</template>
|
||||
<script lang="ts" src="./msg_template.ts">
|
||||
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
@import 'msg_template.scss';
|
||||
</style>
|
||||
Reference in New Issue
Block a user