You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

leads.vue 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <template>
  2. <v-container class="fill-height" fluid>
  3. <v-row>
  4. <v-container>
  5. <v-btn color="primary" @click="FindClick">FIND BY TEL</v-btn>
  6. </v-container>
  7. <v-container>
  8. <v-btn color="primary">RELEASE</v-btn>
  9. </v-container>
  10. <v-container>
  11. <v-btn color="primary" @click="ReplenishClick">REPLENISH</v-btn>
  12. </v-container>
  13. </v-row>
  14. <v-row>
  15. <v-select v-model="select" :items="items" single-line />
  16. </v-row>
  17. <v-row>
  18. <v-text-field clearable />
  19. </v-row>
  20. <v-row>
  21. <v-col cols="12">
  22. <v-data-table
  23. v-if="leads.length > 0"
  24. :headers="headers"
  25. :items="leads"
  26. :items-per-page="10"
  27. class="elevation-1"
  28. show-select
  29. ></v-data-table>
  30. <v-card v-else class="mx-auto" max-width="344">
  31. <v-card-text>
  32. <div style="text-align:center">No leads currently allocated</div>
  33. <br />
  34. <v-btn color="primary" class="col-md-12" @click="ReplenishClick">REPLENISH</v-btn>
  35. </v-card-text>
  36. </v-card>
  37. </v-col>
  38. </v-row>
  39. </v-container>
  40. </template>
  41. <script>
  42. export default {
  43. data() {
  44. return {
  45. select: "Pool",
  46. items: ["Pool", "Own", "Call Back"],
  47. leads: [],
  48. headers: [
  49. { text: "Initals", value: "initals" },
  50. { text: "Surname", value: "surname" },
  51. { text: "Import Source", value: "importSource" },
  52. { text: "Last Called", value: "lastCalled" },
  53. { text: "Callback Date", value: "callbackDate" }
  54. ]
  55. };
  56. },
  57. methods: {
  58. FindClick() {
  59. this.$router.push("leadFind");
  60. },
  61. ReplenishClick() {
  62. this.$router.push("leadReplenish");
  63. }
  64. }
  65. };
  66. </script>