Skip to content
Snippets Groups Projects
Verified Commit 965933e6 authored by Kirill Stytsenko's avatar Kirill Stytsenko
Browse files

Make table data pagination work

parent ee99e914
No related branches found
No related tags found
3 merge requests!81New stable release,!43Merge dev to master,!41UI March
...@@ -121,6 +121,9 @@ export default { ...@@ -121,6 +121,9 @@ export default {
version (newVersion, oldVersion) { version (newVersion, oldVersion) {
console.info('selected new version', newVersion) console.info('selected new version', newVersion)
this.loadData() this.loadData()
},
options () {
this.loadData()
} }
}, },
mounted () { mounted () {
...@@ -154,7 +157,7 @@ export default { ...@@ -154,7 +157,7 @@ export default {
} }
const res = await this.$axios.get(url) const res = await this.$axios.get(url)
console.debug('version', this.datetime, 'table data', res.data) console.debug('version', this.datetime, 'table data', res.data)
this.total = res.headers['fda-count'] this.total = parseInt(res.headers['fda-count'])
this.rows = res.data.result this.rows = res.data.result
} catch (err) { } catch (err) {
console.error('failed to load data', err) console.error('failed to load data', err)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment