-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathyelt.jl.html
More file actions
executable file
·51 lines (48 loc) · 3.93 KB
/
Copy pathyelt.jl.html
File metadata and controls
executable file
·51 lines (48 loc) · 3.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<header
style="
background-color: #4a5568;
color: white;
padding: 1rem;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
"
>
<div style="max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center;">
<div style="font-size: 1.5rem; font-weight: bold;">Year-Event Loss Table Analysis</div>
<nav>
<a href="/" style="color: white; text-decoration: none; padding: 0.5rem 1rem; margin-left: 1rem; border-radius: 4px; transition: background-color 0.3s;">Contracts</a>
<a href="/yelt" style="color: white; text-decoration: none; padding: 0.5rem 1rem; margin-left: 1rem; border-radius: 4px; transition: background-color 0.3s; background-color: #5a6978;">Yelt</a>
</nav>
</div>
</header>
<main style="max-width: 95%; margin: 2rem auto; padding: 0 1rem">
<div style="display: flex; gap: 2rem; margin-bottom: 2rem;">
<div style=" background-color: white; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); padding: 1.5rem; width=60%; min-width=60%; overflow:hidden">
<q-table row-key="__id" :columns="yelt_data_table.columns" v-model="yelt_data_table" title="YELT" :data="yelt_data_table.data" :loading="loading" v-on:request="function (event) { handle_event(event, 'requestyelt'); }" :pagination="pagination" :pagination.sync="pagination" :filter="filteryelt">
<template v-slot:top-right>
<q-select id="ig55" label="Filter columns" v-model="select_filter_columns" :multiple="true" :options="columns" :use-chips="true" dense style="margin-right:30px;min-width:100px" ></q-select>
<q-input v-model="filteryelt" debounce="0" label="Filter" dense style="width: 200px;" v-on:keyup.enter="function (event) { handle_event(event, 'requestyelt'); }">
<template v-slot:append>
<q-icon name="search"></q-icon>
</template>
</q-input>
</template>
</q-table>
<p style="color: darkred; margin-top: 0.5rem;">Press Enter to submit the filter query.</p>
</div>
<div style="flex: 1; background-color: white; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); padding: 1.5rem;width=40%">
<h6 style="font-size: 1.1rem; font-weight: 600; margin-top: 0; margin-bottom: 1rem;">Yearly losses</h6>
<q-table id="idphq" :columns="yearly_losses_table.columns" :data="yearly_losses_table.data" row-key="id" :flat="true" :bordered="true" :pagination="yearly_losses_pagination" :virtual-scroll="true" dense></q-table>
</div>
</div>
<div style="display: flex; gap: 2rem;">
<div style="flex: 1; background-color: white; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); padding: 1.5rem;">
<h6 style="font-size: 1.1rem; font-weight: 600; margin-top: 0; margin-bottom: 1rem;">Return periods</h6>
<q-table id="iht3t" v-on:row-click="function(event,row){selected_return_period=row.ReturnPeriod}" :columns="return_periods_table.columns" :data="return_periods_table.data" row-key="id" :flat="true" :bordered="true" dense></q-table>
<p style="color: darkred; margin-top: 0.5rem;">Click an entry in the ReturnPeriod column to view its perils on the right table.</p>
</div>
<div style="flex: 1; background-color: white; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); padding: 1.5rem;">
<h6 style="font-size: 1.1rem; font-weight: 600; margin-top: 0; margin-bottom: 1rem;">Top perils for RP {{selected_return_period}}</h6>
<q-table id="ig9eh" :columns="top_perils_rp_table.columns" :data="top_perils_rp_table.data" row-key="id" :flat="true" :bordered="true" dense></q-table>
</div>
</div>
</main>