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.

updateProfileInfo.vue 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <template>
  2. <!-- eslint-disable max-len -->
  3. <div class="container">
  4. <br />
  5. <div class="title-box-d">
  6. <h1 class="title-d" style="text-align:left; font-size: 250%">Update Profile Info</h1>
  7. </div>
  8. <div class="row mb-4">
  9. <div class="container col-md-10">
  10. <form
  11. id="mainForm"
  12. method="POST"
  13. action="/to-sell"
  14. accept-charset="UTF-8"
  15. enctype="multipart/form-data"
  16. >
  17. <div class="col-md-12" style="text-align:left"></div>
  18. <DetailIndividual :currentUser="sellItem.owner" :showBank="true" :showAddress="true" />
  19. </form>
  20. </div>
  21. </div>
  22. </div>
  23. </template>
  24. <script>
  25. import { mapState, mapActions, mapGetters } from 'vuex';
  26. import DetailIndividual from './timeshareIndividual.vue';
  27. export default {
  28. name: 'UpdateInfo',
  29. data() {
  30. return { selectedItem: {} };
  31. },
  32. props: {},
  33. components: {
  34. DetailIndividual,
  35. },
  36. mounted() {
  37. this.selectedItem = this.currentUser;
  38. },
  39. computed: {
  40. ...mapState('timeshare', [
  41. 'resorts',
  42. 'regions',
  43. 'detailedRegion',
  44. 'seasons',
  45. 'result',
  46. 'resortBedrooms',
  47. 'maxSleep',
  48. 'bankedEntities',
  49. 'sellItem',
  50. 'agencies',
  51. 'agents',
  52. ]),
  53. ...mapState('individual', ['indiv']),
  54. ...mapState('authentication', ['isLoggedIn']),
  55. ...mapGetters({
  56. user: 'authentication/getUser',
  57. person: 'authentication/getPerson',
  58. }),
  59. isLoggedIn() {
  60. return this.user && this.person;
  61. },
  62. },
  63. methods: {
  64. ...mapActions('individual', ['getIndividual']),
  65. onSelectedItemItemChange(item) {
  66. this.currentUser = item;
  67. },
  68. },
  69. };
  70. </script>
  71. <style>
  72. .myWell {
  73. width: 100%;
  74. background-color: #60cbeb;
  75. border-radius: 6px;
  76. padding: 5px;
  77. margin: 3px;
  78. }
  79. </style>