header name 1400-12-19

This commit is contained in:
sedmedgh
2022-03-10 11:16:13 +03:30
parent c47f75ec6a
commit de9427bc54
2 changed files with 16 additions and 11 deletions
@@ -2,13 +2,16 @@
<div class="the-navbar__user-meta flex items-center"> <div class="the-navbar__user-meta flex items-center">
<ADropdown :trigger="['click']" style="z-index: 250000"> <ADropdown :trigger="['click']" style="z-index: 250000">
<div class="flex items-center"> <div class="flex items-center">
<div class="flex justify-start"> <div class="ml-2 text-primary">
<p class="font-semibold mb-0"> <p class="font-semibold mb-0">
{{ username }} {{ username.name }}
</p> </p>
<p>
{{username.user_type_str}}
</p>
</div> </div>
<div class="con-img ml-3"> <div class="con-img ml-3">
<feather-icon icon="UserIcon" class="cursor-pointer" svg-classes="text-primary"/> <feather-icon icon="UserIcon" class="cursor-pointer" svg-classes="text-primary" size="42px"/>
</div> </div>
</div> </div>
<ACard slot="overlay"> <ACard slot="overlay">
@@ -42,11 +45,8 @@
const s = JSON.parse(j || '{}'); const s = JSON.parse(j || '{}');
return s; return s;
}, },
// username() {
// return this.activeUserInfo.name;
// },
username(){ username(){
const data = localStorage.getItem('user') return JSON.parse(localStorage.getItem('userInfo'))
// console.log(data,'dayaaaaaaa'); // console.log(data,'dayaaaaaaa');
} }
}, },
+7 -2
View File
@@ -132,8 +132,8 @@
</a-form-item> </a-form-item>
</div> </div>
<a-form-item label="نام مصاحبه کننده"> <a-form-item label="نام مصاحبه کننده">
<input class="ant-input" autocomplete="off" <input class="ant-input" autocomplete="off" :disabled="true"
v-decorator="['interviewer',{rules: [{ required: true, message: 'نام مصاحبه کننده را وارد نمایید' }]}]"/> v-decorator="['interviewer',{initialValue: admin,rules: [{ required: true, message: 'نام مصاحبه کننده را وارد نمایید' }]}]"/>
</a-form-item> </a-form-item>
</div> </div>
</a-card> </a-card>
@@ -929,6 +929,11 @@ export default {
fromMosahebe2: this.$form.createForm(this, {name: 'coordinated'}), fromMosahebe2: this.$form.createForm(this, {name: 'coordinated'}),
} }
}, },
computed: {
admin(){
return JSON.parse(localStorage.userInfo).name
}
},
methods: { methods: {
editInterview(e) { editInterview(e) {
e.preventDefault(); e.preventDefault();