Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 1 | <template> |
Yoshie Muranaka | 3111b6f | 2020-04-21 19:48:38 -0700 | [diff] [blame] | 2 | <b-container fluid="xl"> |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 3 | <page-title /> |
SurenNeware | 787635a | 2020-11-24 22:42:42 +0530 | [diff] [blame] | 4 | <b-row class="align-items-end"> |
Sukanya Pandey | 9901096 | 2020-07-27 21:44:47 +0530 | [diff] [blame] | 5 | <b-col sm="6" md="5" xl="4"> |
SurenNeware | 71724be | 2020-06-01 15:31:00 +0530 | [diff] [blame] | 6 | <search |
| 7 | :placeholder="$t('pageSensors.searchForSensors')" |
Sandeepa Singh | b28e243 | 2021-02-10 19:26:21 +0530 | [diff] [blame] | 8 | data-test-id="sensors-input-searchForSensors" |
Sukanya Pandey | edb8a77 | 2020-10-29 11:33:42 +0530 | [diff] [blame] | 9 | @change-search="onChangeSearchInput" |
| 10 | @clear-search="onClearSearchInput" |
SurenNeware | 71724be | 2020-06-01 15:31:00 +0530 | [diff] [blame] | 11 | /> |
| 12 | </b-col> |
Sukanya Pandey | 9901096 | 2020-07-27 21:44:47 +0530 | [diff] [blame] | 13 | <b-col sm="3" md="3" xl="2"> |
| 14 | <table-cell-count |
| 15 | :filtered-items-count="filteredRows" |
| 16 | :total-number-of-cells="allSensors.length" |
| 17 | ></table-cell-count> |
| 18 | </b-col> |
| 19 | <b-col sm="3" md="4" xl="6" class="text-right"> |
Sukanya Pandey | edb8a77 | 2020-10-29 11:33:42 +0530 | [diff] [blame] | 20 | <table-filter :filters="tableFilters" @filter-change="onFilterChange" /> |
Yoshie Muranaka | 82cca54 | 2020-04-07 10:20:37 -0700 | [diff] [blame] | 21 | </b-col> |
| 22 | </b-row> |
| 23 | <b-row> |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 24 | <b-col xl="12"> |
Yoshie Muranaka | b1a7191 | 2020-04-29 10:52:39 -0700 | [diff] [blame] | 25 | <table-toolbar |
| 26 | ref="toolbar" |
| 27 | :selected-items-count="selectedRows.length" |
Sukanya Pandey | edb8a77 | 2020-10-29 11:33:42 +0530 | [diff] [blame] | 28 | @clear-selected="clearSelectedRows($refs.table)" |
Yoshie Muranaka | b1a7191 | 2020-04-29 10:52:39 -0700 | [diff] [blame] | 29 | > |
Dixsie Wolmers | 27d68af | 2021-05-02 18:20:27 -0500 | [diff] [blame] | 30 | <template #toolbar-buttons> |
Yoshie Muranaka | b1a7191 | 2020-04-29 10:52:39 -0700 | [diff] [blame] | 31 | <table-toolbar-export |
| 32 | :data="selectedRows" |
SurenNeware | 1471f8f | 2020-09-18 18:41:22 +0530 | [diff] [blame] | 33 | :file-name="exportFileNameByDate()" |
Yoshie Muranaka | b1a7191 | 2020-04-29 10:52:39 -0700 | [diff] [blame] | 34 | /> |
| 35 | </template> |
| 36 | </table-toolbar> |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 37 | <b-table |
Yoshie Muranaka | b1a7191 | 2020-04-29 10:52:39 -0700 | [diff] [blame] | 38 | ref="table" |
SurenNeware | 5e25e28 | 2020-07-08 15:57:23 +0530 | [diff] [blame] | 39 | responsive="md" |
Yoshie Muranaka | b1a7191 | 2020-04-29 10:52:39 -0700 | [diff] [blame] | 40 | selectable |
| 41 | no-select-on-click |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 42 | sort-icon-left |
Sukanya Pandey | fde429e | 2020-09-14 20:48:39 +0530 | [diff] [blame] | 43 | hover |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 44 | no-sort-reset |
| 45 | sticky-header="75vh" |
| 46 | sort-by="status" |
SurenNeware | 307382e | 2020-07-27 20:45:14 +0530 | [diff] [blame] | 47 | show-empty |
Mateusz Gapski | 1d2da29 | 2020-09-10 12:07:45 +0200 | [diff] [blame] | 48 | :no-border-collapse="true" |
Yoshie Muranaka | 82cca54 | 2020-04-07 10:20:37 -0700 | [diff] [blame] | 49 | :items="filteredSensors" |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 50 | :fields="fields" |
| 51 | :sort-desc="true" |
| 52 | :sort-compare="sortCompare" |
SurenNeware | 71724be | 2020-06-01 15:31:00 +0530 | [diff] [blame] | 53 | :filter="searchFilter" |
SurenNeware | 307382e | 2020-07-27 20:45:14 +0530 | [diff] [blame] | 54 | :empty-text="$t('global.table.emptyMessage')" |
SurenNeware | 156a0e6 | 2020-08-28 19:20:03 +0530 | [diff] [blame] | 55 | :empty-filtered-text="$t('global.table.emptySearchMessage')" |
Kenneth Fullbright | 4105785 | 2021-12-27 16:19:37 -0600 | [diff] [blame] | 56 | :busy="isBusy" |
Sukanya Pandey | 9901096 | 2020-07-27 21:44:47 +0530 | [diff] [blame] | 57 | @filtered="onFiltered" |
Yoshie Muranaka | b1a7191 | 2020-04-29 10:52:39 -0700 | [diff] [blame] | 58 | @row-selected="onRowSelected($event, filteredSensors.length)" |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 59 | > |
Yoshie Muranaka | b1a7191 | 2020-04-29 10:52:39 -0700 | [diff] [blame] | 60 | <!-- Checkbox column --> |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 61 | <template #head(checkbox)> |
Yoshie Muranaka | b1a7191 | 2020-04-29 10:52:39 -0700 | [diff] [blame] | 62 | <b-form-checkbox |
| 63 | v-model="tableHeaderCheckboxModel" |
| 64 | :indeterminate="tableHeaderCheckboxIndeterminate" |
| 65 | @change="onChangeHeaderCheckbox($refs.table)" |
Dixsie Wolmers | c42ad71 | 2020-11-19 17:29:24 -0600 | [diff] [blame] | 66 | > |
| 67 | <span class="sr-only">{{ $t('global.table.selectAll') }}</span> |
| 68 | </b-form-checkbox> |
Yoshie Muranaka | b1a7191 | 2020-04-29 10:52:39 -0700 | [diff] [blame] | 69 | </template> |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 70 | <template #cell(checkbox)="row"> |
Yoshie Muranaka | b1a7191 | 2020-04-29 10:52:39 -0700 | [diff] [blame] | 71 | <b-form-checkbox |
| 72 | v-model="row.rowSelected" |
| 73 | @change="toggleSelectRow($refs.table, row.index)" |
Dixsie Wolmers | c42ad71 | 2020-11-19 17:29:24 -0600 | [diff] [blame] | 74 | > |
| 75 | <span class="sr-only">{{ $t('global.table.selectItem') }}</span> |
| 76 | </b-form-checkbox> |
Yoshie Muranaka | b1a7191 | 2020-04-29 10:52:39 -0700 | [diff] [blame] | 77 | </template> |
| 78 | |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 79 | <template #cell(status)="{ value }"> |
Dixsie Wolmers | a04d46f | 2020-10-22 06:34:56 -0500 | [diff] [blame] | 80 | <status-icon :status="statusIcon(value)" /> {{ value }} |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 81 | </template> |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 82 | <template #cell(currentValue)="data"> |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 83 | {{ data.value }} {{ data.item.units }} |
| 84 | </template> |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 85 | <template #cell(lowerCaution)="data"> |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 86 | {{ data.value }} {{ data.item.units }} |
| 87 | </template> |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 88 | <template #cell(upperCaution)="data"> |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 89 | {{ data.value }} {{ data.item.units }} |
| 90 | </template> |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 91 | <template #cell(lowerCritical)="data"> |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 92 | {{ data.value }} {{ data.item.units }} |
| 93 | </template> |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 94 | <template #cell(upperCritical)="data"> |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 95 | {{ data.value }} {{ data.item.units }} |
| 96 | </template> |
| 97 | </b-table> |
| 98 | </b-col> |
| 99 | </b-row> |
| 100 | </b-container> |
| 101 | </template> |
| 102 | |
| 103 | <script> |
SurenNeware | 5e25e28 | 2020-07-08 15:57:23 +0530 | [diff] [blame] | 104 | import PageTitle from '@/components/Global/PageTitle'; |
| 105 | import Search from '@/components/Global/Search'; |
| 106 | import StatusIcon from '@/components/Global/StatusIcon'; |
| 107 | import TableFilter from '@/components/Global/TableFilter'; |
Yoshie Muranaka | b1a7191 | 2020-04-29 10:52:39 -0700 | [diff] [blame] | 108 | import TableToolbar from '@/components/Global/TableToolbar'; |
| 109 | import TableToolbarExport from '@/components/Global/TableToolbarExport'; |
Sukanya Pandey | 9901096 | 2020-07-27 21:44:47 +0530 | [diff] [blame] | 110 | import TableCellCount from '@/components/Global/TableCellCount'; |
Yoshie Muranaka | b1a7191 | 2020-04-29 10:52:39 -0700 | [diff] [blame] | 111 | |
SurenNeware | ba91c49 | 2020-10-27 14:18:54 +0530 | [diff] [blame] | 112 | import BVTableSelectableMixin, { |
| 113 | selectedRows, |
| 114 | tableHeaderCheckboxModel, |
| 115 | tableHeaderCheckboxIndeterminate, |
| 116 | } from '@/components/Mixins/BVTableSelectableMixin'; |
Yoshie Muranaka | 50ff183 | 2020-05-01 11:00:17 -0700 | [diff] [blame] | 117 | import LoadingBarMixin from '@/components/Mixins/LoadingBarMixin'; |
SurenNeware | 5e25e28 | 2020-07-08 15:57:23 +0530 | [diff] [blame] | 118 | import TableFilterMixin from '@/components/Mixins/TableFilterMixin'; |
Dixsie Wolmers | 9726f9a | 2021-09-07 15:33:16 -0500 | [diff] [blame] | 119 | import DataFormatterMixin from '@/components/Mixins/DataFormatterMixin'; |
Yoshie Muranaka | 202c599 | 2020-06-18 12:02:57 -0700 | [diff] [blame] | 120 | import TableSortMixin from '@/components/Mixins/TableSortMixin'; |
SurenNeware | ba91c49 | 2020-10-27 14:18:54 +0530 | [diff] [blame] | 121 | import SearchFilterMixin, { |
| 122 | searchFilter, |
| 123 | } from '@/components/Mixins/SearchFilterMixin'; |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 124 | |
| 125 | export default { |
| 126 | name: 'Sensors', |
Yoshie Muranaka | b1a7191 | 2020-04-29 10:52:39 -0700 | [diff] [blame] | 127 | components: { |
| 128 | PageTitle, |
SurenNeware | 71724be | 2020-06-01 15:31:00 +0530 | [diff] [blame] | 129 | Search, |
Yoshie Muranaka | b1a7191 | 2020-04-29 10:52:39 -0700 | [diff] [blame] | 130 | StatusIcon, |
Sukanya Pandey | 9901096 | 2020-07-27 21:44:47 +0530 | [diff] [blame] | 131 | TableCellCount, |
Yoshie Muranaka | b1a7191 | 2020-04-29 10:52:39 -0700 | [diff] [blame] | 132 | TableFilter, |
| 133 | TableToolbar, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 134 | TableToolbarExport, |
Yoshie Muranaka | b1a7191 | 2020-04-29 10:52:39 -0700 | [diff] [blame] | 135 | }, |
Yoshie Muranaka | 202c599 | 2020-06-18 12:02:57 -0700 | [diff] [blame] | 136 | mixins: [ |
| 137 | TableFilterMixin, |
| 138 | BVTableSelectableMixin, |
| 139 | LoadingBarMixin, |
Dixsie Wolmers | 9726f9a | 2021-09-07 15:33:16 -0500 | [diff] [blame] | 140 | DataFormatterMixin, |
Dixsie Wolmers | 9b22b49 | 2020-09-07 21:26:06 -0500 | [diff] [blame] | 141 | TableSortMixin, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 142 | SearchFilterMixin, |
Yoshie Muranaka | 202c599 | 2020-06-18 12:02:57 -0700 | [diff] [blame] | 143 | ], |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 144 | beforeRouteLeave(to, from, next) { |
| 145 | this.hideLoader(); |
| 146 | next(); |
| 147 | }, |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 148 | data() { |
| 149 | return { |
Kenneth Fullbright | 4105785 | 2021-12-27 16:19:37 -0600 | [diff] [blame] | 150 | isBusy: true, |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 151 | fields: [ |
| 152 | { |
Yoshie Muranaka | b1a7191 | 2020-04-29 10:52:39 -0700 | [diff] [blame] | 153 | key: 'checkbox', |
| 154 | sortable: false, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 155 | label: '', |
Yoshie Muranaka | b1a7191 | 2020-04-29 10:52:39 -0700 | [diff] [blame] | 156 | }, |
| 157 | { |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 158 | key: 'name', |
| 159 | sortable: true, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 160 | label: this.$t('pageSensors.table.name'), |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 161 | }, |
| 162 | { |
| 163 | key: 'status', |
| 164 | sortable: true, |
Dixsie Wolmers | a04d46f | 2020-10-22 06:34:56 -0500 | [diff] [blame] | 165 | label: this.$t('pageSensors.table.status'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 166 | tdClass: 'text-nowrap', |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 167 | }, |
| 168 | { |
| 169 | key: 'lowerCritical', |
Dixsie Wolmers | 9726f9a | 2021-09-07 15:33:16 -0500 | [diff] [blame] | 170 | formatter: this.dataFormatter, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 171 | label: this.$t('pageSensors.table.lowerCritical'), |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 172 | }, |
| 173 | { |
| 174 | key: 'lowerCaution', |
Dixsie Wolmers | 9726f9a | 2021-09-07 15:33:16 -0500 | [diff] [blame] | 175 | formatter: this.dataFormatter, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 176 | label: this.$t('pageSensors.table.lowerWarning'), |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 177 | }, |
| 178 | |
| 179 | { |
| 180 | key: 'currentValue', |
Dixsie Wolmers | 9726f9a | 2021-09-07 15:33:16 -0500 | [diff] [blame] | 181 | formatter: this.dataFormatter, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 182 | label: this.$t('pageSensors.table.currentValue'), |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 183 | }, |
| 184 | { |
| 185 | key: 'upperCaution', |
Dixsie Wolmers | 9726f9a | 2021-09-07 15:33:16 -0500 | [diff] [blame] | 186 | formatter: this.dataFormatter, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 187 | label: this.$t('pageSensors.table.upperWarning'), |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 188 | }, |
| 189 | { |
| 190 | key: 'upperCritical', |
Dixsie Wolmers | 9726f9a | 2021-09-07 15:33:16 -0500 | [diff] [blame] | 191 | formatter: this.dataFormatter, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 192 | label: this.$t('pageSensors.table.upperCritical'), |
| 193 | }, |
Yoshie Muranaka | 82cca54 | 2020-04-07 10:20:37 -0700 | [diff] [blame] | 194 | ], |
| 195 | tableFilters: [ |
| 196 | { |
Yoshie Muranaka | 0045400 | 2020-06-22 09:14:05 -0700 | [diff] [blame] | 197 | key: 'status', |
Yoshie Muranaka | 82cca54 | 2020-04-07 10:20:37 -0700 | [diff] [blame] | 198 | label: this.$t('pageSensors.table.status'), |
kirankumarb07 | 3bf966a | 2023-02-07 19:12:33 +0530 | [diff] [blame^] | 199 | values: [ |
| 200 | this.$t('global.action.ok'), |
| 201 | this.$t('global.action.warning'), |
| 202 | this.$t('global.action.critical'), |
| 203 | ], |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 204 | }, |
Yoshie Muranaka | 82cca54 | 2020-04-07 10:20:37 -0700 | [diff] [blame] | 205 | ], |
SurenNeware | 71724be | 2020-06-01 15:31:00 +0530 | [diff] [blame] | 206 | activeFilters: [], |
SurenNeware | ba91c49 | 2020-10-27 14:18:54 +0530 | [diff] [blame] | 207 | searchFilter: searchFilter, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 208 | searchTotalFilteredRows: 0, |
SurenNeware | ba91c49 | 2020-10-27 14:18:54 +0530 | [diff] [blame] | 209 | selectedRows: selectedRows, |
| 210 | tableHeaderCheckboxModel: tableHeaderCheckboxModel, |
| 211 | tableHeaderCheckboxIndeterminate: tableHeaderCheckboxIndeterminate, |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 212 | }; |
| 213 | }, |
| 214 | computed: { |
| 215 | allSensors() { |
| 216 | return this.$store.getters['sensors/sensors']; |
Yoshie Muranaka | 82cca54 | 2020-04-07 10:20:37 -0700 | [diff] [blame] | 217 | }, |
Sukanya Pandey | 9901096 | 2020-07-27 21:44:47 +0530 | [diff] [blame] | 218 | filteredRows() { |
| 219 | return this.searchFilter |
| 220 | ? this.searchTotalFilteredRows |
| 221 | : this.filteredSensors.length; |
| 222 | }, |
Yoshie Muranaka | 396aaab | 2020-05-20 10:11:06 -0700 | [diff] [blame] | 223 | filteredSensors() { |
| 224 | return this.getFilteredTableData(this.allSensors, this.activeFilters); |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 225 | }, |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 226 | }, |
| 227 | created() { |
Yoshie Muranaka | 50ff183 | 2020-05-01 11:00:17 -0700 | [diff] [blame] | 228 | this.startLoader(); |
Kenneth Fullbright | 4105785 | 2021-12-27 16:19:37 -0600 | [diff] [blame] | 229 | this.$store.dispatch('sensors/getAllSensors').finally(() => { |
| 230 | this.endLoader(); |
| 231 | this.isBusy = false; |
| 232 | }); |
Yoshie Muranaka | 50ff183 | 2020-05-01 11:00:17 -0700 | [diff] [blame] | 233 | }, |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 234 | methods: { |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 235 | sortCompare(a, b, key) { |
| 236 | if (key === 'status') { |
Yoshie Muranaka | 202c599 | 2020-06-18 12:02:57 -0700 | [diff] [blame] | 237 | return this.sortStatus(a, b, key); |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 238 | } |
Yoshie Muranaka | 82cca54 | 2020-04-07 10:20:37 -0700 | [diff] [blame] | 239 | }, |
| 240 | onFilterChange({ activeFilters }) { |
| 241 | this.activeFilters = activeFilters; |
SurenNeware | 71724be | 2020-06-01 15:31:00 +0530 | [diff] [blame] | 242 | }, |
Sukanya Pandey | 9901096 | 2020-07-27 21:44:47 +0530 | [diff] [blame] | 243 | onFiltered(filteredItems) { |
| 244 | this.searchTotalFilteredRows = filteredItems.length; |
SurenNeware | 1471f8f | 2020-09-18 18:41:22 +0530 | [diff] [blame] | 245 | }, |
| 246 | onChangeSearchInput(event) { |
| 247 | this.searchFilter = event; |
| 248 | }, |
| 249 | exportFileNameByDate() { |
| 250 | // Create export file name based on date |
| 251 | let date = new Date(); |
| 252 | date = |
| 253 | date.toISOString().slice(0, 10) + |
| 254 | '_' + |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 255 | date.toString().split(':').join('-').split(' ')[4]; |
SurenNeware | 1471f8f | 2020-09-18 18:41:22 +0530 | [diff] [blame] | 256 | return this.$t('pageSensors.exportFilePrefix') + date; |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 257 | }, |
| 258 | }, |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 259 | }; |
| 260 | </script> |