Mercurial > gemma
comparison client/src/components/map/contextbox/Staging.vue @ 1549:b03db5726ca5
importqueue detail view
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Mon, 10 Dec 2018 17:10:30 +0100 |
parents | 6b3756676bbe |
children |
comparison
equal
deleted
inserted
replaced
1548:ccf4fc8a6402 | 1549:b03db5726ca5 |
---|---|
25 <a @click="zoomTo(data.id)" href="#">{{ | 25 <a @click="zoomTo(data.id)" href="#">{{ |
26 data.summary.bottleneck | 26 data.summary.bottleneck |
27 }}</a> | 27 }}</a> |
28 </td> | 28 </td> |
29 <td>{{ data.kind.toUpperCase() }}</td> | 29 <td>{{ data.kind.toUpperCase() }}</td> |
30 <td>{{ data.summary.date }}</td> | 30 <td>{{ formatSurveyDate(data.summary.date) }}</td> |
31 <td>{{ data.enqueued.split("T")[0] }}</td> | 31 <td>{{ formatSurveyDate(data.enqueued.split("T")[0]) }}</td> |
32 <td>{{ data.user }}</td> | 32 <td>{{ data.user }}</td> |
33 <td> | 33 <td> |
34 <button | 34 <button |
35 :class="{ | 35 :class="{ |
36 btn: true, | 36 btn: true, |
94 */ | 94 */ |
95 import { mapState } from "vuex"; | 95 import { mapState } from "vuex"; |
96 import { HTTP } from "../../../lib/http.js"; | 96 import { HTTP } from "../../../lib/http.js"; |
97 import { STATES } from "../../../store/imports.js"; | 97 import { STATES } from "../../../store/imports.js"; |
98 import { displayError, displayInfo } from "../../../lib/errors.js"; | 98 import { displayError, displayInfo } from "../../../lib/errors.js"; |
99 import { formatSurveyDate } from "../../../lib/date.js"; | |
99 | 100 |
100 export default { | 101 export default { |
101 data() { | 102 data() { |
102 return {}; | 103 return {}; |
103 }, | 104 }, |
116 }); | 117 }); |
117 } | 118 } |
118 }, | 119 }, |
119 STATES: STATES, | 120 STATES: STATES, |
120 methods: { | 121 methods: { |
122 formatSurveyDate(date) { | |
123 return formatSurveyDate(date); | |
124 }, | |
121 loadData() { | 125 loadData() { |
122 this.$store.dispatch("imports/getStaging").catch(error => { | 126 this.$store.dispatch("imports/getStaging").catch(error => { |
123 const { status, data } = error.response; | 127 const { status, data } = error.response; |
124 displayError({ | 128 displayError({ |
125 title: "Backend Error", | 129 title: "Backend Error", |