bartmango2 commited on
Commit
fae546e
·
verified ·
1 Parent(s): 1dc4417

melhore o layout da tabela html...deixe-a mais visualmente agravel.... e alterne a cord de fundo das linhas, sutilmente mas que facilite diferenciar cada linha

Browse files
Files changed (1) hide show
  1. index.html +25 -25
index.html CHANGED
@@ -114,66 +114,66 @@
114
  </div>
115
 
116
  <div class="table-container">
117
- <table class="min-w-full divide-y divide-gray-200">
118
- <thead class="bg-gray-50 sticky-header">
119
- <tr>
120
- <th v-for="column in columns" :key="column.key" scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
121
  {{ column.label }}
122
  </th>
123
  </tr>
124
  </thead>
125
- <tbody class="bg-white divide-y divide-gray-200">
126
- <tr v-for="alert in paginatedAlerts" :key="alert.ID_FLAlerts"
127
  @contextmenu.prevent="openContextMenu($event, alert)"
128
- class="hover:bg-gray-50 cursor-pointer">
129
- <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">
130
  {{ alert.ID_FLAlerts }}
131
  </td>
132
- <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
133
  {{ alert.DT_Alert }}
134
  </td>
135
- <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
136
  {{ alert.Compliance }}
137
  </td>
138
- <td class="px-6 py-4 text-sm text-gray-500">
139
- <div class="max-w-xs truncate" :title="alert.DS_Alert">{{ alert.DS_Alert }}</div>
140
  </td>
141
- <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
142
  {{ alert.Assigned_DBA }}
143
  </td>
144
- <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
145
  {{ alert.DT_AlertResponse }}
146
  </td>
147
- <td class="px-6 py-4 text-sm text-gray-500">
148
- <div class="max-w-xs truncate" :title="alert.DS_ActionTaken">{{ alert.DS_ActionTaken }}</div>
149
  </td>
150
- <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
151
  {{ alert.FL_RootCauseAdressed ? 'Yes' : 'No' }}
152
  </td>
153
- <td class="px-6 py-4 whitespace-nowrap">
154
- <span :class="`px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-${getStatusColor(alert.Alert_Status)}-100 text-${getStatusColor(alert.Alert_Status)}-800`">
155
  {{ alert.Alert_Status }}
156
  </span>
157
  </td>
158
- <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
159
  {{ alert.DS_Category }}
160
  </td>
161
- <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
162
  {{ alert.DS_Server }}
163
  </td>
164
- <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
165
  <div class="flex items-center">
166
- <i :data-feather="getSourceIcon(alert.ID_Source)" class="w-4 h-4 mr-1"></i>
167
  {{ alert.ID_Source }}
168
  </div>
169
  </td>
170
- <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
171
  {{ alert.ID_Stage }}
172
  </td>
173
  </tr>
174
  </tbody>
175
  </table>
176
- </div>
177
 
178
  <div class="flex items-center justify-between mt-4">
179
  <div class="text-sm text-gray-500">
 
114
  </div>
115
 
116
  <div class="table-container">
117
+ <table class="min-w-full">
118
+ <thead class="sticky-header">
119
+ <tr class="bg-indigo-50">
120
+ <th v-for="column in columns" :key="column.key" scope="col" class="px-4 py-3 text-left text-xs font-semibold text-indigo-700 uppercase tracking-wider border-b border-indigo-100">
121
  {{ column.label }}
122
  </th>
123
  </tr>
124
  </thead>
125
+ <tbody>
126
+ <tr v-for="(alert, index) in paginatedAlerts" :key="alert.ID_FLAlerts"
127
  @contextmenu.prevent="openContextMenu($event, alert)"
128
+ :class="['cursor-pointer', index % 2 === 0 ? 'bg-white' : 'bg-gray-50', 'hover:bg-indigo-50']">
129
+ <td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-indigo-600 border-b border-indigo-50">
130
  {{ alert.ID_FLAlerts }}
131
  </td>
132
+ <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-700 border-b border-indigo-50">
133
  {{ alert.DT_Alert }}
134
  </td>
135
+ <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-700 border-b border-indigo-50">
136
  {{ alert.Compliance }}
137
  </td>
138
+ <td class="px-4 py-3 text-sm text-gray-700 border-b border-indigo-50">
139
+ <div class="max-w-xs truncate hover:text-clip" :title="alert.DS_Alert">{{ alert.DS_Alert }}</div>
140
  </td>
141
+ <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-700 border-b border-indigo-50">
142
  {{ alert.Assigned_DBA }}
143
  </td>
144
+ <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-700 border-b border-indigo-50">
145
  {{ alert.DT_AlertResponse }}
146
  </td>
147
+ <td class="px-4 py-3 text-sm text-gray-700 border-b border-indigo-50">
148
+ <div class="max-w-xs truncate hover:text-clip" :title="alert.DS_ActionTaken">{{ alert.DS_ActionTaken }}</div>
149
  </td>
150
+ <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-700 border-b border-indigo-50">
151
  {{ alert.FL_RootCauseAdressed ? 'Yes' : 'No' }}
152
  </td>
153
+ <td class="px-4 py-3 whitespace-nowrap border-b border-indigo-50">
154
+ <span :class="`px-2 py-1 inline-flex text-xs leading-4 font-semibold rounded-full bg-${getStatusColor(alert.Alert_Status)}-100 text-${getStatusColor(alert.Alert_Status)}-800 border border-${getStatusColor(alert.Alert_Status)}-200`">
155
  {{ alert.Alert_Status }}
156
  </span>
157
  </td>
158
+ <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-700 border-b border-indigo-50">
159
  {{ alert.DS_Category }}
160
  </td>
161
+ <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-700 border-b border-indigo-50">
162
  {{ alert.DS_Server }}
163
  </td>
164
+ <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-700 border-b border-indigo-50">
165
  <div class="flex items-center">
166
+ <i :data-feather="getSourceIcon(alert.ID_Source)" class="w-4 h-4 mr-1 text-indigo-500"></i>
167
  {{ alert.ID_Source }}
168
  </div>
169
  </td>
170
+ <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-700 border-b border-indigo-50">
171
  {{ alert.ID_Stage }}
172
  </td>
173
  </tr>
174
  </tbody>
175
  </table>
176
+ </div>
177
 
178
  <div class="flex items-center justify-between mt-4">
179
  <div class="text-sm text-gray-500">