Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

187
Views
Vue.js + Los métodos de activación de la clase independiente no funcionan en html

Tengo la siguiente clase. Las funciones de la clase no se asignan a la propiedad de datos 'this.gridFilter' cuando se instancian. Estoy llamando a 'gridFilter.set' al hacer clic en el elemento de la lista que no se activa y aparece el siguiente error en la consola 'No se pueden leer las propiedades de undefined (leyendo '_withTask')' y nada funciona. Esto sucede solo cuando llamo a la función 'establecer' desde el objeto instanciado. ¿Cómo puedo llamar a las funciones de clase desde el archivo Html? Por favor ayuda

 class GridFilters { constructor(grid) { this.grid = grid; this.filterError = false; this.isShow = false; this.currentFilter = ''; this.filters = {}; } async loadFilters() { const query = `?$select=*&$filter=mastertable eq ${window.parent.Xrm.Page.data.entity.getId().replace(/[{}]/g, "")}&$orderby=ice_name asc`; this.filters = await window.parent.Xrm.WebApi.retrieveMultipleRecords('filters', query); return this.filters; } async set() { const grid = this.grid; grid.$refs.overlay.classList.remove('customgrid-modal-hidden'); grid.$refs.filter.classList.remove('customgrid-modal-hidden'); } } export default { data() { return { gridFilter : {}; }; }, methods: {}, created () { this.gridFilter = new GridFilters(this); } };

//html

 <li><a v-on:click="gridFilter.set"><img src="../Images/ICE.Filter.svg" title="Filter" /><span>Filter</span></a></li>
about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!