Mercurial > gemma
comparison client/src/lib/mixins.js @ 3079:57255fda7594
client: compare surveys on map
The compare survey is now displayed in a second map.
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Thu, 18 Apr 2019 12:40:42 +0200 |
parents | db890b71f070 |
children | 35c0da49eb89 |
comparison
equal
deleted
inserted
replaced
3078:71129566acdf | 3079:57255fda7594 |
---|---|
9 * Software engineering by Intevation GmbH | 9 * Software engineering by Intevation GmbH |
10 * | 10 * |
11 * Author(s): | 11 * Author(s): |
12 * Markus Kottländer <markus.kottlaender@intevation.de> | 12 * Markus Kottländer <markus.kottlaender@intevation.de> |
13 */ | 13 */ |
14 | |
15 import * as uuidGen from "uuid"; | |
16 | |
17 const sortTable = { | 14 const sortTable = { |
18 data() { | 15 data() { |
19 return { | 16 return { |
20 sortColumn: "", | 17 sortColumn: "", |
21 sortDirection: "ASC", | 18 sortDirection: "ASC", |
25 }, | 22 }, |
26 methods: { | 23 methods: { |
27 sortTable(sorting) { | 24 sortTable(sorting) { |
28 this.sortColumn = sorting.sortColumn; | 25 this.sortColumn = sorting.sortColumn; |
29 this.sortDirection = sorting.sortDirection; | 26 this.sortDirection = sorting.sortDirection; |
30 } | |
31 } | |
32 }; | |
33 | |
34 const uuid = { | |
35 computed: { | |
36 uuid() { | |
37 return uuidGen.v4(); | |
38 } | 27 } |
39 } | 28 } |
40 }; | 29 }; |
41 | 30 |
42 const pane = { | 31 const pane = { |
63 destroyed() { | 52 destroyed() { |
64 if (this.paneDestroyed) this.paneDestroyed(); | 53 if (this.paneDestroyed) this.paneDestroyed(); |
65 } | 54 } |
66 }; | 55 }; |
67 | 56 |
68 export { sortTable, uuid, pane }; | 57 export { sortTable, pane }; |