This commit is contained in:
LORENZO\pacio 2025-06-04 17:48:47 +02:00
parent 070093b945
commit 194239b6c5
5 changed files with 63 additions and 9 deletions

View File

@ -150,8 +150,8 @@ onMounted(async () => {
async function getLoginToken(username, password) {
const credentials = btoa(`${username}:${password}`); // base64 encoding
const response = await fetch('/ahi/servlet/oauth/token?scope=logintoken', {
//const response = await fetch('/unilab/servlet/oauth/token?scope=logintoken', {
method: 'POST',
headers: {
'Authorization': `Basic ${credentials}`,
@ -169,6 +169,7 @@ async function getLoginToken(username, password) {
async function fetchReportDataWithToken(token, pSERCER) {
const response = await fetch(`/ahi/servlet/api/pi_flabreportapi?pSERCER=${encodeURIComponent(pSERCER)}`, {
//const response = await fetch(`/unilab/servlet/api/pi_flabreportapi?pSERCER=${encodeURIComponent(pSERCER)}`, {
headers: {
'Authorization': `Bearer ${token}`
},

View File

@ -95,4 +95,15 @@
}
</script>
<style>
table:first-of-type thead tr:first-child > th:nth-child(6),
table:first-of-type tbody tr > td:nth-child(6) {
max-width: 150px; /* imposta qui la larghezza massima desiderata */
overflow-wrap: break-word;
word-wrap: break-word;
}
</style>

View File

@ -98,4 +98,14 @@
}
</script>
<style>
table:first-of-type thead tr:first-child > th:nth-child(6),
table:first-of-type tbody tr > td:nth-child(6) {
max-width: 150px; /* imposta qui la larghezza massima desiderata */
overflow-wrap: break-word;
word-wrap: break-word;
}
</style>

View File

@ -27,8 +27,8 @@
<td>{{ row.contrassegno }}</td>
<td>{{ row.verbale }}</td>
<td>{{ formatDate(row.dataPrelievo) }}</td>
<td>{{ formatNumber(row.diaNom,2) }}</td>
<td>{{ formatNumber(row.dimA,0) }}</td>
<td>{{ formatNumber(row.diaNom,0) }}</td>
<td>{{ formatNumber(row.lunBase,2) }}</td>
<td>{{ formatNumber(row.masG,2) }}</td>
<td>{{ formatNumber(row.diaEff,2) }}</td>
<td>{{ row.ferriera }}</td>
@ -93,4 +93,18 @@
: '—'
}
</script>
</script>
<style>
/* Seleziona il 10° <th> nella riga di intestazione */
table:first-of-type thead tr:first-child > th:nth-child(10),
/* Seleziona tutte le celle <td> in posizione 10 nei body */
table:first-of-type tbody tr > td:nth-child(10) {
max-width: 150px; /* imposta qui la larghezza massima desiderata */
overflow-wrap: break-word;
word-wrap: break-word;
}
</style>

View File

@ -27,8 +27,8 @@
<td>{{ row.contrassegno }}</td>
<td>{{ row.verbale }}</td>
<td>{{ formatDate(row.dataPrelievo) }}</td>
<td>{{ formatNumber(row.diaNom,2) }}</td>
<td>{{ formatNumber(row.dimA,2) }}</td>
<td>{{ formatNumber(row.diaNom,0) }}</td>
<td>{{ formatNumber(row.lunBase,2) }}</td>
<td>{{ formatNumber(row.masG,2) }}</td>
<td>{{ formatNumber(row.diaEff,2) }}</td>
<td>{{ row.ferriera }}</td>
@ -96,4 +96,22 @@
: '—'
}
</script>
</script>
<style>
/* Seleziona il 10° <th> nella riga di intestazione */
table:first-of-type thead tr:first-child > th:nth-child(10),
/* Seleziona tutte le celle <td> in posizione 10 nei body */
table:first-of-type tbody tr > td:nth-child(10) {
max-width: 150px; /* imposta qui la larghezza massima desiderata */
overflow-wrap: break-word;
word-wrap: break-word;
}
</style>