fix Registrazione data
fix linkref fix controllo login fix pagination CGridTableRec
This commit is contained in:
@@ -6,3 +6,33 @@
|
||||
max-width: 250px;
|
||||
min-width: 200px;
|
||||
}
|
||||
|
||||
.my-sticky-header-table {
|
||||
/* max height is important */
|
||||
/* this is when the loading indicator appears */
|
||||
|
||||
}
|
||||
.my-sticky-header-table .q-table__middle {
|
||||
max-height: 650px !important;
|
||||
@media (max-width: 718px) {
|
||||
// PER VERSIONE MOBILE
|
||||
max-height: 400px !important;
|
||||
}
|
||||
}
|
||||
.my-sticky-header-table .q-table__top,
|
||||
.my-sticky-header-table .q-table__bottom,
|
||||
.my-sticky-header-table thead tr:first-child th {
|
||||
/* bg color is important for th; just specify one */
|
||||
background-color: #f0ffff;
|
||||
}
|
||||
.my-sticky-header-table thead tr th {
|
||||
position: sticky;
|
||||
z-index: 1;
|
||||
}
|
||||
.my-sticky-header-table thead tr:first-child th {
|
||||
top: 0;
|
||||
}
|
||||
.my-sticky-header-table.q-table--loading thead tr:last-child th {
|
||||
/* height of all previous header rows */
|
||||
top: 48px;
|
||||
}
|
||||
|
||||
@@ -206,7 +206,7 @@ export default class CGridTableRec extends Vue {
|
||||
const startRow = (page - 1) * rowsPerPage
|
||||
const endRow = startRow + fetchCount
|
||||
|
||||
console.log('startRow', startRow, 'endRow', endRow)
|
||||
// console.log('startRow', startRow, 'endRow', endRow)
|
||||
|
||||
this.serverData = []
|
||||
|
||||
@@ -233,7 +233,7 @@ export default class CGridTableRec extends Vue {
|
||||
this.pagination.sortBy = sortBy
|
||||
this.pagination.descending = descending
|
||||
|
||||
console.log('this.pagination', this.pagination)
|
||||
// console.log('this.pagination', this.pagination)
|
||||
|
||||
// ...and turn of loading indicator
|
||||
this.loading = false
|
||||
@@ -350,7 +350,7 @@ export default class CGridTableRec extends Vue {
|
||||
}
|
||||
|
||||
public saveFieldValue(mydata) {
|
||||
console.log('saveFieldValue', mydata)
|
||||
// console.log('saveFieldValue', mydata)
|
||||
|
||||
// Save on Server
|
||||
GlobalStore.actions.saveFieldValue(mydata).then((esito) => {
|
||||
@@ -541,7 +541,7 @@ export default class CGridTableRec extends Vue {
|
||||
return this.selected.length === 0 ? '' : `${this.selected.length} record${this.selected.length > 1 ? 's' : ''} selected of ${this.serverData.length}`
|
||||
}
|
||||
public selectionclick(details) {
|
||||
console.log('selectionclick this.selected', this.selected, 'details', details)
|
||||
// console.log('selectionclick this.selected', this.selected, 'details', details)
|
||||
if (details.added) {
|
||||
this.rowclicksel = details.rows[0]
|
||||
this.colclicksel = details.keys[0]
|
||||
|
||||
@@ -3,6 +3,9 @@
|
||||
|
||||
|
||||
<q-table
|
||||
flat
|
||||
bordered
|
||||
class="my-sticky-header-table"
|
||||
:data="serverData"
|
||||
:columns="mycolumns"
|
||||
:filter="myfilter"
|
||||
@@ -176,6 +179,6 @@
|
||||
<script lang="ts" src="./CGridTableRec.ts">
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
<style lang="scss" >
|
||||
@import './CGridTableRec.scss';
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user