mirror of
https://github.com/Dadechin/XRoomDashboardFront.git
synced 2025-07-03 08:44:35 +00:00
added semat
This commit is contained in:
parent
e817874b98
commit
6de13452fc
|
@ -19,6 +19,12 @@
|
||||||
<input v-model="form.lastName" type="text" id="lastName" placeholder="نام خانوادگی" />
|
<input v-model="form.lastName" type="text" id="lastName" placeholder="نام خانوادگی" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Last Name -->
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="lastName">جایگاه شغلی (سمت) </label>
|
||||||
|
<input v-model="form.semat" type="text" id="semat" placeholder="سمت " />
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Mobile Number -->
|
<!-- Mobile Number -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="phone">شماره تماس</label>
|
<label for="phone">شماره تماس</label>
|
||||||
|
@ -60,6 +66,7 @@ export default {
|
||||||
form: {
|
form: {
|
||||||
firstName: '',
|
firstName: '',
|
||||||
lastName: '',
|
lastName: '',
|
||||||
|
semat: '',
|
||||||
mobileNumber: '',
|
mobileNumber: '',
|
||||||
password: '',
|
password: '',
|
||||||
terms: false,
|
terms: false,
|
||||||
|
@ -72,6 +79,7 @@ export default {
|
||||||
const signupData = {
|
const signupData = {
|
||||||
first_name: this.form.firstName,
|
first_name: this.form.firstName,
|
||||||
last_name: this.form.lastName,
|
last_name: this.form.lastName,
|
||||||
|
semat: this.form.semat,
|
||||||
mobile_number: this.form.mobileNumber,
|
mobile_number: this.form.mobileNumber,
|
||||||
password: this.form.password,
|
password: this.form.password,
|
||||||
};
|
};
|
||||||
|
|
|
@ -84,7 +84,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="position">جایگاه</label>
|
<label for="position">جایگاه</label>
|
||||||
<input type="text" id="position" placeholder="جایگاه شغلی (اختیاری)" />
|
<input v-model="editForm.semat" type="text" id="position" placeholder="جایگاه شغلی (اختیاری)" />
|
||||||
</div>
|
</div>
|
||||||
<button class="save-btn" @click="saveProfile" :disabled="saving">
|
<button class="save-btn" @click="saveProfile" :disabled="saving">
|
||||||
{{ saving ? 'در حال ذخیره...' : 'ذخیره' }}
|
{{ saving ? 'در حال ذخیره...' : 'ذخیره' }}
|
||||||
|
@ -116,7 +116,7 @@ export default {
|
||||||
selectedProfileImage: null,
|
selectedProfileImage: null,
|
||||||
|
|
||||||
userData: {
|
userData: {
|
||||||
user: { first_name: '', last_name: '', email: '' }
|
user: { first_name: '', last_name: '', email: '', semat: '' }
|
||||||
},
|
},
|
||||||
editForm: { first_name: '', last_name: '', email: '' },
|
editForm: { first_name: '', last_name: '', email: '' },
|
||||||
passwordForm: { current_password: '', new_password: '', confirm_password: '' },
|
passwordForm: { current_password: '', new_password: '', confirm_password: '' },
|
||||||
|
@ -145,6 +145,7 @@ export default {
|
||||||
first_name: response.data.user.first_name,
|
first_name: response.data.user.first_name,
|
||||||
last_name: response.data.user.last_name,
|
last_name: response.data.user.last_name,
|
||||||
email: response.data.user.email,
|
email: response.data.user.email,
|
||||||
|
semat: response.data.user.semat,
|
||||||
userAvatarUrl: response.data.customer.profile_img
|
userAvatarUrl: response.data.customer.profile_img
|
||||||
};
|
};
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
@ -157,6 +158,7 @@ export default {
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append('first_name', this.editForm.first_name);
|
formData.append('first_name', this.editForm.first_name);
|
||||||
formData.append('last_name', this.editForm.last_name);
|
formData.append('last_name', this.editForm.last_name);
|
||||||
|
formData.append('semat', this.editForm.semat);
|
||||||
|
|
||||||
if (this.selectedProfileImage) {
|
if (this.selectedProfileImage) {
|
||||||
formData.append('profile_img', this.selectedProfileImage);
|
formData.append('profile_img', this.selectedProfileImage);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user