Mercurial > gemma
comparison client/src/lib/mixins.js @ 4155:552ea22ed266 improvepdf
merge default into improvepdf
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Fri, 02 Aug 2019 13:30:29 +0200 |
parents | 33deb8634783 7c44af0b9370 |
children | 92c2f93fef3c |
comparison
equal
deleted
inserted
replaced
4140:4d7569cca5e6 | 4155:552ea22ed266 |
---|---|
42 }, | 42 }, |
43 methods: { | 43 methods: { |
44 sortTable(sorting) { | 44 sortTable(sorting) { |
45 this.sortColumn = sorting.sortColumn; | 45 this.sortColumn = sorting.sortColumn; |
46 this.sortDirection = sorting.sortDirection; | 46 this.sortDirection = sorting.sortDirection; |
47 } | |
48 } | |
49 }; | |
50 /** | |
51 * Since the names of LDC and HDC aren't normalized, we have to do guesswork | |
52 * best fit is key with HDC or LDC in it | |
53 */ | |
54 export const refwaterlevels = { | |
55 methods: { | |
56 determineLDCHDC(refWaterLevels) { | |
57 let HDC = | |
58 refWaterLevels[Object.keys(refWaterLevels).find(e => /HDC/.test(e))]; | |
59 let LDC = | |
60 refWaterLevels[Object.keys(refWaterLevels).find(e => /LDC/.test(e))]; | |
61 return { LDC, HDC }; | |
47 } | 62 } |
48 } | 63 } |
49 }; | 64 }; |
50 | 65 |
51 export const diagram = { | 66 export const diagram = { |