Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Vue.component('cn-search',{
- template: "#cn-search",
- data: function(){
- return {
- cadastrNumber: '',
- searchResult: {}
- }
- },
- methods: {
- getObjectsByCN: function() {
- let _this = this;
- axios.get('/api.php?action=get_object_by_cn', {
- params: {
- id: this.cadastrNumber
- }
- })
- .then(function (response) {
- _this.searchResult = response.data;
- console.log(response);
- })
- .catch(function (error) {
- console.log(error);
- });
- }
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement