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

587
Views
Quasar Q-table no se actualiza con la matriz ref ()

Cuando actualizo la matriz ref (), q-table no se actualiza. Estoy iniciando la referencia de filas con la función "getApplications()". Luego, cuando llamo a la función revisada () desde una línea en la tabla q, la tabla no se actualiza con nuevos datos después de actualizar las filas ref.

 <q-table v-model:selected="selected" :loading="loading" title="Applications" :rows="rows" :columns="columns" row-key="id" ></q-table> <script setup> import { api } from "boot/axios"; import { ref } from "vue"; const columns = ref([ ........}); let rows = ref([]); getApplications(); function getApplications() { api({ method: "get", url: "/webdata/_partition/apply/_design/apply-list/_view/apply-list", }) .then((response) => { var row = fncArrayAll(response.data.rows); rows.value = row; }) .catch((e) => { console.log("e: ", e); alert(e); }) .finally(() => { loading.value = false; }); } function reviewed(prop) { loading.value = true; api({ method: "get", url: "/webdata/" + prop.row._id, }) .then((response) => { var newData = response.data; newData.office.reviewed = !newData.office.reviewed; api({ method: "put", url: "/webdata/" + prop.row._id, data: newData, }) .then((response) => { console.log("new response: ", response); }) .catch((e) => { console.log("e: ", e); alert(e); }) .finally(() => { loading.value = false; }); }) .catch((e) => { console.log("e: ", e); alert(e); }) .finally(() => { loading.value = false; }); } function fncArrayAll(items) { var filtered = []; for (var i = 0; i < items.length; i++) { filtered.push(items[i].value); } // console.log(filtered); return filtered; } </script>

Cuando las filas se actualizan en la función revisada, la tabla q no se actualiza.

Gracias por cualquier ayuda

about 4 years ago · Juan Pablo Isaza
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!