|
24 | 24 | /> |
25 | 25 | </div> |
26 | 26 |
|
27 | | - <template v-if="hasCronData"> |
28 | | - <table class="table-auto w-full"> |
29 | | - <thead> |
30 | | - <tr> |
31 | | - <th |
32 | | - class="text-left" |
33 | | - v-text="$t('instances.scheduledtasks.cron.runnable')" |
34 | | - /> |
35 | | - <th v-text="$t('instances.scheduledtasks.cron.expression')" /> |
36 | | - </tr> |
37 | | - </thead> |
38 | | - <tbody v-for="task in cron" :key="task.runnable.target"> |
39 | | - <tr> |
40 | | - <td v-text="task.runnable.target" /> |
41 | | - <td |
42 | | - class="font-mono text-center text-sm" |
43 | | - v-text="task.expression" |
44 | | - /> |
45 | | - </tr> |
46 | | - </tbody> |
47 | | - </table> |
48 | | - </template> |
| 27 | + <div class="flex flex-col"> |
| 28 | + <template v-if="hasCronData"> |
| 29 | + <sba-panel :title="$t('instances.scheduledtasks.cron.title')"> |
| 30 | + <table class="table w-full"> |
| 31 | + <thead> |
| 32 | + <tr> |
| 33 | + <th |
| 34 | + class="text-left" |
| 35 | + v-text="$t('instances.scheduledtasks.cron.runnable')" |
| 36 | + /> |
| 37 | + <th v-text="$t('instances.scheduledtasks.cron.expression')" /> |
| 38 | + <th v-text="$t('instances.scheduledtasks.next_execution')" /> |
| 39 | + <th v-text="$t('instances.scheduledtasks.last_execution')" /> |
| 40 | + <th |
| 41 | + v-text=" |
| 42 | + $t('instances.scheduledtasks.last_execution_status') |
| 43 | + " |
| 44 | + /> |
| 45 | + </tr> |
| 46 | + </thead> |
| 47 | + <tbody v-for="task in cron" :key="task.runnable.target"> |
| 48 | + <tr> |
| 49 | + <td v-text="task.runnable.target" /> |
| 50 | + <td class="font-mono text-sm" v-text="task.expression" /> |
| 51 | + <scheduled-task-executions :task="task" /> |
| 52 | + </tr> |
| 53 | + </tbody> |
| 54 | + </table> |
| 55 | + </sba-panel> |
| 56 | + </template> |
49 | 57 |
|
50 | | - <template v-if="hasFixedDelayData"> |
51 | | - <h3 |
52 | | - class="title" |
53 | | - v-text="$t('instances.scheduledtasks.fixed_delay.title')" |
54 | | - /> |
55 | | - <table class="metrics table is-fullwidth"> |
56 | | - <thead> |
57 | | - <tr> |
58 | | - <th |
59 | | - v-text="$t('instances.scheduledtasks.fixed_delay.runnable')" |
60 | | - /> |
61 | | - <th |
62 | | - v-text=" |
63 | | - $t('instances.scheduledtasks.fixed_delay.initial_delay_ms') |
64 | | - " |
65 | | - /> |
66 | | - <th |
67 | | - v-text="$t('instances.scheduledtasks.fixed_delay.interval_ms')" |
68 | | - /> |
69 | | - </tr> |
70 | | - </thead> |
71 | | - <tbody v-for="task in fixedDelay" :key="task.runnable.target"> |
72 | | - <tr> |
73 | | - <td v-text="task.runnable.target" /> |
74 | | - <td v-text="task.initialDelay" /> |
75 | | - <td v-text="task.interval" /> |
76 | | - </tr> |
77 | | - </tbody> |
78 | | - </table> |
79 | | - </template> |
| 58 | + <template v-if="hasFixedDelayData"> |
| 59 | + <sba-panel :title="$t('instances.scheduledtasks.fixed_delay.title')"> |
| 60 | + <table class="table w-full"> |
| 61 | + <thead> |
| 62 | + <tr> |
| 63 | + <th |
| 64 | + v-text="$t('instances.scheduledtasks.fixed_delay.runnable')" |
| 65 | + /> |
| 66 | + <th |
| 67 | + v-text=" |
| 68 | + $t( |
| 69 | + 'instances.scheduledtasks.fixed_delay.initial_delay_ms', |
| 70 | + ) |
| 71 | + " |
| 72 | + /> |
| 73 | + <th |
| 74 | + v-text=" |
| 75 | + $t('instances.scheduledtasks.fixed_delay.interval_ms') |
| 76 | + " |
| 77 | + /> |
| 78 | + <th v-text="$t('instances.scheduledtasks.next_execution')" /> |
| 79 | + <th v-text="$t('instances.scheduledtasks.last_execution')" /> |
| 80 | + <th |
| 81 | + v-text=" |
| 82 | + $t('instances.scheduledtasks.last_execution_status') |
| 83 | + " |
| 84 | + /> |
| 85 | + </tr> |
| 86 | + </thead> |
| 87 | + <tbody v-for="task in fixedDelay" :key="task.runnable.target"> |
| 88 | + <tr> |
| 89 | + <td v-text="task.runnable.target" /> |
| 90 | + <td v-text="task.initialDelay" /> |
| 91 | + <td v-text="task.interval" /> |
| 92 | + <scheduled-task-executions :task="task" /> |
| 93 | + </tr> |
| 94 | + </tbody> |
| 95 | + </table> |
| 96 | + </sba-panel> |
| 97 | + </template> |
80 | 98 |
|
81 | | - <template v-if="hasFixedRateData"> |
82 | | - <h3 |
83 | | - class="title" |
84 | | - v-text="$t('instances.scheduledtasks.fixed_rate.title')" |
85 | | - /> |
86 | | - <table class="metrics table is-fullwidth"> |
87 | | - <thead> |
88 | | - <tr> |
89 | | - <th |
90 | | - v-text="$t('instances.scheduledtasks.fixed_delay.runnable')" |
91 | | - /> |
92 | | - <th |
93 | | - v-text=" |
94 | | - $t('instances.scheduledtasks.fixed_delay.initial_delay_ms') |
95 | | - " |
96 | | - /> |
97 | | - <th |
98 | | - v-text="$t('instances.scheduledtasks.fixed_delay.interval_ms')" |
99 | | - /> |
100 | | - </tr> |
101 | | - </thead> |
102 | | - <tbody v-for="task in fixedRate" :key="task.runnable.target"> |
103 | | - <tr> |
104 | | - <td v-text="task.runnable.target" /> |
105 | | - <td v-text="task.initialDelay" /> |
106 | | - <td v-text="task.interval" /> |
107 | | - </tr> |
108 | | - </tbody> |
109 | | - </table> |
110 | | - </template> |
| 99 | + <template v-if="hasFixedRateData"> |
| 100 | + <sba-panel :title="$t('instances.scheduledtasks.fixed_rate.title')"> |
| 101 | + <table class="table w-full"> |
| 102 | + <thead> |
| 103 | + <tr> |
| 104 | + <th |
| 105 | + v-text="$t('instances.scheduledtasks.fixed_delay.runnable')" |
| 106 | + /> |
| 107 | + <th |
| 108 | + v-text=" |
| 109 | + $t( |
| 110 | + 'instances.scheduledtasks.fixed_delay.initial_delay_ms', |
| 111 | + ) |
| 112 | + " |
| 113 | + /> |
| 114 | + <th |
| 115 | + v-text=" |
| 116 | + $t('instances.scheduledtasks.fixed_delay.interval_ms') |
| 117 | + " |
| 118 | + /> |
| 119 | + <th v-text="$t('instances.scheduledtasks.next_execution')" /> |
| 120 | + <th v-text="$t('instances.scheduledtasks.last_execution')" /> |
| 121 | + <th |
| 122 | + v-text=" |
| 123 | + $t('instances.scheduledtasks.last_execution_status') |
| 124 | + " |
| 125 | + /> |
| 126 | + </tr> |
| 127 | + </thead> |
| 128 | + <tbody v-for="task in fixedRate" :key="task.runnable.target"> |
| 129 | + <tr> |
| 130 | + <td v-text="task.runnable.target" /> |
| 131 | + <td v-text="task.initialDelay" /> |
| 132 | + <td v-text="task.interval" /> |
| 133 | + <scheduled-task-executions :task="task" /> |
| 134 | + </tr> |
| 135 | + </tbody> |
| 136 | + </table> |
| 137 | + </sba-panel> |
| 138 | + </template> |
| 139 | + </div> |
111 | 140 | </sba-panel> |
112 | 141 | </sba-instance-section> |
113 | 142 | </template> |
114 | 143 |
|
115 | 144 | <script> |
| 145 | +import SbaPanel from '@/components/sba-panel.vue'; |
| 146 | +
|
116 | 147 | import Instance from '@/services/instance'; |
117 | 148 | import { VIEW_GROUP } from '@/views/ViewGroup'; |
| 149 | +import ScheduledTaskExecutions from '@/views/instances/scheduledtasks/scheduled-task-executions.vue'; |
118 | 150 | import SbaInstanceSection from '@/views/instances/shell/sba-instance-section'; |
119 | 151 |
|
120 | 152 | export default { |
121 | | - components: { SbaInstanceSection }, |
| 153 | + components: { |
| 154 | + ScheduledTaskExecutions, |
| 155 | + SbaPanel, |
| 156 | + SbaInstanceSection, |
| 157 | + }, |
122 | 158 | props: { |
123 | 159 | instance: { |
124 | 160 | type: Instance, |
|
0 commit comments