fix Registrazione data

fix linkref
fix controllo login
fix pagination CGridTableRec
added CstatusReg e Cstatus
This commit is contained in:
Paolo Arena
2020-01-20 01:50:45 +01:00
parent 5153c143dd
commit 7104f7d1e0
33 changed files with 1558 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
.climg {
border-radius: 5px;
}

View File

@@ -0,0 +1,41 @@
import Vue from 'vue'
import { Component, Prop } from 'vue-property-decorator'
import { GlobalStore, UserStore } from '@store'
import { tools } from '@src/store/Modules/tools'
import { toolsext } from '@src/store/Modules/toolsext'
@Component({
name: 'CMyImg'
})
export default class CMyImg extends Vue {
@Prop({ required: true, default: '' }) public src: string
@Prop({ required: false, default: '' }) public alt: string
@Prop({ required: false, default: '' }) public width: string
public srcbase: string = ''
public mystyle: string = ''
public mounted() {
console.log('mounted')
console.log(this.src)
if (this.width)
this.mystyle = 'max-width: ' + this.width + 'px; '
else
this.mystyle = ''
}
public created() {
console.log('created')
}
get getalt() {
if (this.alt) {
return this.alt
} else {
return tools.getimgFullpathbysize(this.src)
}
}
}

View File

@@ -0,0 +1,12 @@
<template>
<div v-if="src" class="text-center">
<q-img :src="src" class="myimg" :style="mystyle" :alt="getalt">
</q-img>
</div>
</template>
<script lang="ts" src="./CMyImg.ts">
</script>
<style lang="scss" scoped>
@import './CMyImg.scss';
</style>

View File

@@ -0,0 +1 @@
export {default as CMyImg} from './CMyImg.vue'