|
92 | 92 | });
|
93 | 93 | }
|
94 | 94 |
|
95 |
| - function showQueryGroup(time) { |
96 |
| - return data.showTime.includes(time); |
97 |
| - } |
98 |
| -
|
99 |
| - function toggleQueryGroup(time) { |
100 |
| - if (data.showTime.includes(time)) { |
101 |
| - data.showTime = data.showTime.filter(val => val !== time); |
102 |
| - return; |
103 |
| - } |
104 |
| - data.showTime.push(time); |
105 |
| - } |
106 |
| -
|
107 |
| - function groupTitle(value) { |
108 |
| - if (data.listType === "time") { |
109 |
| - return new Date(value * 1000).toISOString(); |
110 |
| - } |
111 |
| - return value; |
112 |
| - } |
113 |
| -
|
114 | 95 | function getUniqueValuesByKey(key) {
|
115 | 96 | return [...new Set(flattenedCachedKeys.value.map(val => val[key]))];
|
116 | 97 | }
|
|
144 | 125 | return cdata;
|
145 | 126 | }
|
146 | 127 |
|
147 |
| - function showFilterMenu() { |
148 |
| - router.push({name: 'session-order-menu'}) |
149 |
| - } |
150 |
| -
|
151 | 128 | function close() {
|
152 | 129 | router.push({
|
153 | 130 | name: 'sessions'
|
|
188 | 165 | return Object.values(data.sessionData).flat();
|
189 | 166 | });
|
190 | 167 |
|
191 |
| - const totalQueryTime = computed(() => { |
192 |
| - if (flattenedCachedKeys.value.length === 0) { |
193 |
| - return 0; |
194 |
| - } |
195 |
| - return flattenedCachedKeys.value.reduce((total, time, index) => { |
196 |
| - if (index === 1) { |
197 |
| - total = total.queryTime; |
198 |
| - } |
199 |
| - return total + time.queryTime; |
200 |
| - }); |
201 |
| - }) |
202 |
| -
|
203 |
| - const totalAmountOfQueries = computed(() => { |
204 |
| - flattenedCachedKeys.value.length; |
205 |
| - }); |
206 |
| -
|
207 |
| - const amountOfRoutes = computed( () => { |
208 |
| - return getUniqueRoutes.value.length; |
209 |
| - }); |
210 |
| -
|
211 |
| - const getUniqueRoutes = computed( () => { |
212 |
| - return getUniqueValuesByKey('url'); |
213 |
| - }) |
214 |
| -
|
215 |
| - const getUniqueRawSql = computed( () => { |
216 |
| - return getUniqueValuesByKey('rawSql'); |
217 |
| - }) |
218 | 168 |
|
219 |
| - const getRawQueryList = computed( () => { |
220 |
| - return groupValuesByKey('rawSql'); |
221 |
| - }); |
222 | 169 |
|
223 |
| - const getRouteQueryList= computed( () => { |
224 |
| - return groupValuesByKey('url'); |
225 |
| - }); |
226 | 170 |
|
227 | 171 | function sortMenu()
|
228 | 172 | {
|
|
0 commit comments