%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/ugotscom/3vfm3/resources/js/components/properties/
Upload File :
Create Path :
Current File : /home/ugotscom/3vfm3/resources/js/components/properties/properties.vue

<template>
<div>
  <section>

  </section>
  <router-view/>

</div>
</template>
   
<script>
    
    export default {

           data(){
            return {
              packages:[],
              tasks:[],
              searchQuery:'',
              isTyping: false,
              isLoading: false,
              property_type:null,
              property_for:null,
     itemId:this.$route.params.id,
          city: [],
          test:[],
         
          
      themes: [],
      products: [
        {name:'test1', color:'red', size:'XL'},
        {name:'test2', color:'black', size:'L'},
        {name:'test3', color:'red', size:'L'},
        {name:'test4', color:'black', size:'XL'},
        {name:'test5', color:'red', size:'L'},
        {name:'test6', color:'yellow', size:'XL'},
        {name:'test7', color:'black', size:'L'}
      ],
      sortBy: 'name',
      keyword: '',     
              
            }
        },
          watch: {
    searchQuery: _.debounce(function() {
      this.isTyping = false;
    }, 500),
    isTyping: function(value) {
      if (!value) {
        this.searchUser(this.searchQuery);
      }
    }
  },
        methods:{
        searchUser: function(searchQuery) {
    	this.isLoading = true;
        axios.get('client/searchquery?q=' + searchQuery)
        .then(response => {
        	this.isLoading = false;
          this.users = response.data;
        });
        },
            getResults:function(page = 1) {
			axios.get('properties?page=' + page)
				.then(response => {
					this.properties = response.data;
				});
		        },
            loadusers:function(){
             axios.get('/packages').then(response => {
                this.packages = response.data
                this.test=this.packages.data
             })
            },
             loadtotalcount(){
                axios.get('/client/totalcount') .then(response => {
                this.tasks = response.data
             })
            }, 
            getPosts:function () {
                axios.get('/client').then(function(response){
                    this.rows = response.data;
                }.bind(this));
            },
           searchProperty:function (){
               axios.post('/properties/searchproperty', {
              property_for: this.property_for,   
            }).then(response => {
                        this.properties = response.data})
   
           }
        },
          computed:{
  
       computedProducts: function () {
      return this.test.filter((item) => {
        return (this.keyword.length === 0 || item.package_name.match(this.keyword)) &&
        (this.city.length === 0 || this.city == item.destination) &&
        (this.themes.length === 0 || this.themes.includes(item.themes))
      })
    }
  },
    
        created: function(){
            this.loadusers(),
            this.loadtotalcount()
          
         
        },
       
    }
</script>
<style scoped>
.filterTitle{
font-weight: 700;
color: #000;
margin-bottom: 14px;
font-size: 16px;
line-height: 16px;
margin-top: 22px;
}
.searchHeader{
  background: #f9c11e;
  height: 60px;
  margin-bottom: 20px;
}
#yellow{
  background: #f9c11e;
  height:20px;
}
</style>

Zerion Mini Shell 1.0