Skip to content

Commit 176f053

Browse files
committed
1 parent 88a982b commit 176f053

3 files changed

Lines changed: 19 additions & 11 deletions

File tree

src/main/malewicz/src/components/ConnectionsListPanel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
}
2626
},
2727
created: function () {
28-
this.$http.get(this.$store.state.uri.host + '/endpoints').then(
28+
this.$http.get(this.$store.state.host + '/endpoints').then(
2929
response => {
3030
this.connections = response.body.filter(v => { return v.properties.visible !== false })
3131
}

src/main/malewicz/src/components/ObjectsTablePanel.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ export default {
151151
return this.meta.metadata
152152
}
153153
},
154+
uri123() {
155+
console.log("AAAAAAAAAAAAA")
156+
return this.$store.getters.getUri
157+
},
154158
typeUri () {
155159
return this.$store.getters.preparedTypeUri
156160
},
@@ -176,6 +180,12 @@ export default {
176180
this.$store.commit('setSort', {})
177181
}
178182
},
183+
uri123: {
184+
handler(newVal, oldVal) {
185+
console.log("EEEEEEEEEEEEEEEEEEEEEEEEEEEEE " + newVal)
186+
},
187+
deep: true,
188+
},
179189
typeUri (newValue) {
180190
this.meta = []
181191
this.$http.get(newValue).then(

src/main/malewicz/src/main.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,30 +68,28 @@ Vue.filter('formatDate', function(value) {
6868

6969
const store = new Vuex.Store({
7070
state: {
71+
host: '',
72+
// host: 'http://localhost:8007/',
7173
uri: {
72-
host: '',
73-
// host: 'http://localhost:8007/',
74-
newConnections: [],
74+
connections: [],
7575
type: 'table',
7676
path: [],
7777
page: { 'number': 1, 'size': 15, 'count': 1 },
78-
orderby: {},
79-
where: '',
80-
cache: false,
78+
orderby: {}
8179
}
8280
},
8381
getters: {
84-
uri: state => {
82+
getUri: state => {
8583
return state.uri
8684
},
8785
preparedTypesUri: state => {
88-
return state.uri.host + '/api/' + state.uri.connections[0] + '/types'
86+
return state.host + '/api/' + state.uri.connections[0] + '/types'
8987
},
9088
preparedTypeUri: state => {
91-
return state.uri.host + '/api/' + state.uri.connections[0] + '/types' + '/' + state.uri.type
89+
return state.host + '/api/' + state.uri.connections[0] + '/types' + '/' + state.uri.type
9290
},
9391
preparedUri: state => {
94-
return state.uri.host + '/api/' + state.uri.connections.join('|') + '/' + state.uri.type + '/' + state.uri.path +
92+
return state.host + '/api/' + state.uri.connections.join('|') + '/' + state.uri.type + '/' + state.uri.path +
9593
'?page=' + state.uri.page.number + ',' + state.uri.page.size +
9694
(state.uri.orderby.field ? ('&orderby=' + state.uri.orderby.field + '-' + state.uri.orderby.ord) : '')
9795
},

0 commit comments

Comments
 (0)