Guest User

Untitled

a guest
Aug 21st, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. <expand-details :atendente="{{ $id }}"></expand-details>
  2.  
  3. <template>
  4. <div>
  5. <a class="pointer blue underline" @click="$modal.show('detalhes')">Expandir</a>
  6.  
  7. <modal name="detalhes" height="auto">
  8. <div class="container p-2">
  9. <li v-for="detalhe in atendimentos">
  10. <p v-text="detalhe.atendimento_id"></p>
  11. </li>
  12.  
  13. <div class="row">
  14. <div class="col-12">
  15. <button
  16. class="btn btn-default btn-sm"
  17. @click="$modal.hide('detalhes')"
  18. >Fechar</button>
  19. </div>
  20. </div>
  21. </div>
  22. </modal>
  23. </div>
  24.  
  25. <script>
  26. export default {
  27. props: ['atendente'],
  28.  
  29. data() {
  30. return {
  31. atendimentos: {}
  32. }
  33. },
  34.  
  35. mounted() {
  36. axios.get(atendentes, {
  37. params: {
  38. id: this.atendente
  39. }
  40. }).then((response) => {
  41. this.atendimentos = response.data
  42. })
  43. }
  44. }
  45. </script>
  46.  
  47. <li v-for="detalhe in atendimentos" :key="detalhe.atendimento_id">
  48. <p v-text="detalhe.atendimento_id"></p>
  49. </li>
Add Comment
Please, Sign In to add comment