|
|
|
@ -51,18 +51,14 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
async fetchAllItems() {
|
|
|
|
async fetchAllItems() {
|
|
|
|
const baseURL = "http://localhost:8080/api/v1";
|
|
|
|
fetch(`/api/v1/items/?limit=10000`)
|
|
|
|
|
|
|
|
|
|
|
|
fetch(`${baseURL}/items/?limit=10000`)
|
|
|
|
|
|
|
|
.then(res => res.json())
|
|
|
|
.then(res => res.json())
|
|
|
|
.then(data => this.items = data)
|
|
|
|
.then(data => this.items = data)
|
|
|
|
.catch((e) => console.log(e))
|
|
|
|
.catch((e) => console.log(e))
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
async fetchColumns(){
|
|
|
|
async fetchColumns(){
|
|
|
|
const baseURL = "http://localhost:8080/api/v1";
|
|
|
|
fetch(`/api/v1/headers/`)
|
|
|
|
|
|
|
|
|
|
|
|
fetch(`${baseURL}/headers/`)
|
|
|
|
|
|
|
|
.then(res => res.json())
|
|
|
|
.then(res => res.json())
|
|
|
|
.then(data => this.columns = data)
|
|
|
|
.then(data => this.columns = data)
|
|
|
|
.catch((e) => console.log(e))
|
|
|
|
.catch((e) => console.log(e))
|
|
|
|
|