diff --git a/src/api/terminal.js b/src/api/terminal.js
index a575df8d..5c1721fc 100644
--- a/src/api/terminal.js
+++ b/src/api/terminal.js
@@ -29,6 +29,10 @@ function __dataToDTO(data) {
'county': data.address.county,
'country': data.address.country,
'postCode': data.address.postCode,
- 'identifier': data.identifier
+ 'identifier': data.identifier,
+ 'contactNumber': data.contactNumber,
+ 'fullName': data.fullName,
+ 'meta': data.meta,
+ 'regionId': data.region_id
}
}
diff --git a/src/views/terminals/components/TerminalDetail.vue b/src/views/terminals/components/TerminalDetail.vue
index 275bc789..4591338d 100644
--- a/src/views/terminals/components/TerminalDetail.vue
+++ b/src/views/terminals/components/TerminalDetail.vue
@@ -32,7 +32,21 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -71,6 +85,13 @@
+
+
+
+
+
+
+
@@ -99,6 +120,8 @@ const fetchRegionList = require('@/api/region').fetchList
const defaultForm = {
id: '',
name: '',
+ fullName: '',
+ contactNumber: '',
region_id: '',
address: {
line1: '',
@@ -106,6 +129,9 @@ const defaultForm = {
county: '',
postCode: '',
country: ''
+ },
+ meta: {
+ openingHours: ''
}
}
@@ -173,7 +199,15 @@ export default {
methods: {
fetchData(id) {
fetchTerminal(id).then(response => {
- this.postForm = response.data
+ const terminal = response.data
+
+ if (!terminal.meta) {
+ terminal.meta = {
+ openingHours: ''
+ }
+ }
+
+ this.postForm = terminal
// // set tagsview title
this.setTagsViewTitle()