|
|
|
@ -125,7 +125,6 @@ Vue.component('modal', { |
|
|
|
|
this.individual.scrape_candidate = something.target.value |
|
|
|
|
}, |
|
|
|
|
setTest() { |
|
|
|
|
console.log('in here') |
|
|
|
|
this.test = JSON.parse(this.individual.scrape_json).filter(item => { |
|
|
|
|
return item['id'] == this.individual.scrape_candidate |
|
|
|
|
})[0] |
|
|
|
@ -217,6 +216,7 @@ Vue.component('directories', { |
|
|
|
|
v-for="directory in filteredList" |
|
|
|
|
v-bind:directory="directory" |
|
|
|
|
v-bind:key="directory.scrape_id" |
|
|
|
|
ref="filteredList" |
|
|
|
|
></directory> |
|
|
|
|
</ul> |
|
|
|
|
<div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasRight" aria-labelledby="offcanvasRightLabel"> |
|
|
|
@ -346,8 +346,11 @@ var app = new Vue({ |
|
|
|
|
axios.get('{{ url_for('api.api_get_directories_candidates', scrape_id='SCRAPEID') }}'.replace('SCRAPEID', this.individual.scrape_id)) |
|
|
|
|
.then(res => { |
|
|
|
|
if (res.data.status_code == 200) { |
|
|
|
|
this.directories = []; |
|
|
|
|
this.getDirectories(); |
|
|
|
|
item = this.directories |
|
|
|
|
.filter(directory => { return directory.scrape_id == this.individual.scrape_id}) |
|
|
|
|
item[0].scrape_json = res.data.results; |
|
|
|
|
item[0].scrape_candidate = JSON.parse(res.data.results)[0]['id']; |
|
|
|
|
this.individual = item[0] |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|