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

Make table data pagination work

Former-commit-id: 965933e6
parent d66cf512
No related branches found
No related tags found
No related merge requests found
...@@ -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