From 561d59a28f5fccd10ef4869650c1a7eb47b30da1 Mon Sep 17 00:00:00 2001 From: Diyar Akhgar Date: Wed, 28 May 2025 17:36:19 +0330 Subject: [PATCH] fix buy subscription Tab /// add other tab in components --- .../src/components/AddUserModal.vue | 154 +- .../src/components/BuySubscription.vue | 281 ++++ xroom-dashboard/src/components/Header.vue | 40 +- xroom-dashboard/src/components/Membership.vue | 202 +++ .../src/components/TeamDetails.vue | 29 + xroom-dashboard/src/components/TeamUser.vue | 2 +- xroom-dashboard/src/pages/dashboard/team.vue | 1252 +---------------- 7 files changed, 661 insertions(+), 1299 deletions(-) create mode 100644 xroom-dashboard/src/components/BuySubscription.vue create mode 100644 xroom-dashboard/src/components/Membership.vue create mode 100644 xroom-dashboard/src/components/TeamDetails.vue diff --git a/xroom-dashboard/src/components/AddUserModal.vue b/xroom-dashboard/src/components/AddUserModal.vue index 64722e8..86e11e6 100644 --- a/xroom-dashboard/src/components/AddUserModal.vue +++ b/xroom-dashboard/src/components/AddUserModal.vue @@ -37,38 +37,46 @@ @@ -115,32 +113,33 @@ export default { data() { return { newUser: { - full_name: '', - phone: '', - email: '', - job_title: '', - is_manager: false, - has_permission: false, + first_name: '', + last_name: '', + mobile_number: '', + password: '', + semat: '', + isAdmin: false, }, }; }, methods: { close() { this.newUser = { - full_name: '', - phone: '', - email: '', - job_title: '', - is_manager: false, - has_permission: false, + first_name: '', + last_name: '', + mobile_number: '', + password: '', + semat: '', + isAdmin: false, }; this.$emit('close'); }, handleSubmit() { - if (!this.newUser.full_name || !this.newUser.email || !this.newUser.phone || !this.newUser.job_title) { + if (!this.newUser.first_name || !this.newUser.last_name || !this.newUser.mobile_number || !this.newUser.password || !this.newUser.semat) { alert('لطفاً تمام فیلدها را پر کنید.'); return; } + this.$emit('add-user', { ...this.newUser }); this.close(); }, @@ -151,7 +150,7 @@ export default { \ No newline at end of file + diff --git a/xroom-dashboard/src/components/BuySubscription.vue b/xroom-dashboard/src/components/BuySubscription.vue new file mode 100644 index 0000000..688cd0c --- /dev/null +++ b/xroom-dashboard/src/components/BuySubscription.vue @@ -0,0 +1,281 @@ + + + + + \ No newline at end of file diff --git a/xroom-dashboard/src/components/Header.vue b/xroom-dashboard/src/components/Header.vue index c97d0b0..1fc429b 100644 --- a/xroom-dashboard/src/components/Header.vue +++ b/xroom-dashboard/src/components/Header.vue @@ -1,6 +1,5 @@