Skip to content

Commit 3103e48

Browse files
committed
1 parent 50637dd commit 3103e48

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export default {
172172
watch: {
173173
completeUri: {
174174
handler(newVal, oldVal) {
175-
console.log("RRRRRRRRRRRRRRRRRR - " + JSON.stringify(newVal))
175+
console.log("RRRRRRRRRRRRRRRRRR")
176176
},
177177
deep: true,
178178
},

src/main/malewicz/src/main.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,12 @@ const store = new Vuex.Store({
7070
state: {
7171
host: '',
7272
// host: 'http://localhost:8007/',
73+
pageCount: 1,
7374
uri: {
7475
connections: [],
7576
type: 'table',
7677
path: [],
77-
page: { 'number': 1, 'size': 15, 'count': 1 },
78+
page: { number: 1, size: 15 },
7879
orderby: {}
7980
}
8081
},
@@ -102,7 +103,7 @@ const store = new Vuex.Store({
102103
return state.uri.page
103104
},
104105
getPageCount: state => {
105-
return state.uri.page.count
106+
return state.pageCount
106107
},
107108
getPageNumber: state => {
108109
return state.uri.page.number
@@ -117,7 +118,7 @@ const store = new Vuex.Store({
117118
},
118119
skipObjectUri (state, type) {
119120
const c = state.uri.connections
120-
state.uri = { "connections": c, "type": type, "path": [], "orderby": {}, page: { 'number': 1, 'size': 15, 'count': 1 }}
121+
state.uri = { connections: c, type: type, path: [], orderby: {}, page: { number: 1, size: 15 }}
121122
},
122123
setType (state, typeName) {
123124
state.uri.type = typeName
@@ -142,10 +143,10 @@ const store = new Vuex.Store({
142143
state.uri.page.size = parseInt(val.split(',')[1])
143144
},
144145
setPageCount (state, count) {
145-
state.uri.page.count = count
146+
state.pageCount = count
146147
},
147148
increasePageCount (state) {
148-
state.uri.page.count++
149+
state.pageCount++
149150
},
150151
changeUri (state, uriString) {
151152
const parse = require('url-parse')

0 commit comments

Comments
 (0)