diff --git a/doccano/app/db.sqlite3 b/doccano/app/db.sqlite3 index 551b5495..302e3104 100644 Binary files a/doccano/app/db.sqlite3 and b/doccano/app/db.sqlite3 differ diff --git a/doccano/app/server/static/annotation.js b/doccano/app/server/static/annotation.js index e0a34c75..fdab9250 100644 --- a/doccano/app/server/static/annotation.js +++ b/doccano/app/server/static/annotation.js @@ -97,7 +97,9 @@ var vm = new Vue({ labels: [], guideline: 'Here is the Annotation Guideline Text', total: 0, - remaining: 0 + remaining: 0, + searchQuery: '', + history: [] }, methods: { @@ -149,8 +151,20 @@ var vm = new Vue({ this.cur = Math.max(this.cur - 1, 0); this.remaining += 1; }, - activeLearn: function() { + activeLearn: function () { alert('Active Learning!'); + }, + submit: function () { + console.log('submit' + this.searchQuery); + var self = this; + axios.get('/' + base_url + '/apis/search?keyword=' + this.searchQuery) + .then(function (response) { + console.log('search response'); + self.history = response.data['data']; + }) + .catch(function (error) { + console.log('ERROR!! happend by Backend.') + }); } }, created: function () { diff --git a/doccano/app/server/templates/annotation.html b/doccano/app/server/templates/annotation.html index e5ba562e..796462f5 100644 --- a/doccano/app/server/templates/annotation.html +++ b/doccano/app/server/templates/annotation.html @@ -100,7 +100,7 @@
- + Next @@ -149,7 +149,7 @@

-