fix(driverRoute): refs #6684 driverRouteHotFix

This commit is contained in:
Pablo Natek 2024-01-29 08:04:52 +01:00
parent e43210af9c
commit 4fc71b9798
3 changed files with 6 additions and 3 deletions

View File

@ -47,6 +47,9 @@ section.text-area {
padding-right: 1em; padding-right: 1em;
background-color: #e5e5e5; background-color: #e5e5e5;
} }
.text-area > p {
word-break: break-all;
}
.route-block { .route-block {
margin-bottom: 100px; margin-bottom: 100px;

View File

@ -129,7 +129,7 @@
</tbody> </tbody>
</table> </table>
<div v-if="ticket.description" class="text-area"> <div v-if="ticket.description" class="text-area">
<p style="word-break: break-all;">{{ticket.description}}</p> <p>{{ticket.description}}</p>
</div> </div>
</div> </div>
</div> </div>

View File

@ -5,12 +5,12 @@ module.exports = {
mixins: [vnReport], mixins: [vnReport],
async serverPrefetch() { async serverPrefetch() {
let ids = this.id; let ids = this.id;
console.log(typeof ids);
const hasMultipleRoutes = String(this.id).includes(','); const hasMultipleRoutes = String(this.id).includes(',');
if (hasMultipleRoutes) if (hasMultipleRoutes)
ids = this.id.split(','); ids = this.id.split(',');
const routes = await this.rawSqlFromDef('routes', [ids]); const routes = await this.rawSqlFromDef('routes', +[ids]);
const tickets = await this.rawSqlFromDef('tickets', [ids, ids]); const tickets = await this.rawSqlFromDef('tickets', [ids, ids]);
const map = new Map(); const map = new Map();