jibenxinix
This commit is contained in:
parent
4349b634dd
commit
e54616b53a
|
@ -1,52 +1,60 @@
|
|||
<template>
|
||||
|
||||
<el-card shadow="never" header="账户信息">
|
||||
<el-form ref="form" :model="form" label-width="120px" style="margin-top:20px;">
|
||||
<el-form-item label="账号">
|
||||
<el-input v-model="form.username" disabled></el-input>
|
||||
<div class="el-form-item-msg">账号信息用于登录,系统不允许修改</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="姓名">
|
||||
<el-input v-model="form.name" disabled></el-input>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="岗位">
|
||||
<el-input v-model="form.posts" disabled></el-input>
|
||||
</el-form-item>
|
||||
|
||||
</el-form>
|
||||
</el-card>
|
||||
<el-card shadow="never" header="账户信息">
|
||||
<el-form
|
||||
ref="form"
|
||||
:model="form"
|
||||
label-width="120px"
|
||||
style="margin-top: 20px"
|
||||
>
|
||||
<el-row>
|
||||
<el-col :md="6" :sm="24">
|
||||
<el-avatar :size="100" :src="form.avatar" class="el-avatar--circle"></el-avatar>
|
||||
</el-col>
|
||||
<el-col :md="18" :sm="24">
|
||||
<el-form-item label="账号">
|
||||
<el-input v-model="form.username" disabled></el-input>
|
||||
<div class="el-form-item-msg">账号信息用于登录,系统不允许修改</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="姓名">
|
||||
<el-input v-model="form.name" disabled></el-input>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="岗位">
|
||||
<el-input v-model="form.posts" disabled></el-input>
|
||||
</el-form-item></el-col>
|
||||
|
||||
</el-row>
|
||||
</el-form>
|
||||
</el-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
form:{},
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getUserlogin();
|
||||
},
|
||||
methods: {
|
||||
openPage(item){
|
||||
this.page = item.index
|
||||
},
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
form: {},
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.getUserlogin();
|
||||
},
|
||||
methods: {
|
||||
openPage(item) {
|
||||
this.page = item.index;
|
||||
},
|
||||
|
||||
getUserlogin(){
|
||||
|
||||
this.$API.system.user.read.req({page:0}).then(res=>{
|
||||
this.form = res;
|
||||
});
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
getUserlogin() {
|
||||
this.$API.system.user.read.req({ page: 0 }).then((res) => {
|
||||
this.form = res;
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
<style scoped>
|
||||
.el-avatar--circle{
|
||||
border-radius: 1% !important;
|
||||
margin-left:50%;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -28,12 +28,7 @@
|
|||
<el-input v-model="form.gender"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :md="12" :sm="24">
|
||||
<el-form-item label="身份证号">
|
||||
<el-input v-model="form.id_number" ></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :md="12" :sm="24">
|
||||
<el-col :md="12" :sm="24">
|
||||
<el-form-item label="生日">
|
||||
<el-input v-model="form.birthday"></el-input>
|
||||
</el-form-item>
|
||||
|
@ -48,6 +43,23 @@
|
|||
<el-input v-model="form.birthday"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :md="12" :sm="24">
|
||||
<el-form-item label="部门">
|
||||
<el-input v-model="form.belong_dept_name"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :md="12" :sm="24">
|
||||
<el-form-item label="身份证号">
|
||||
<el-input v-model="form.id_number" ></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :md="12" :sm="24">
|
||||
<el-form-item label="岗位名称">
|
||||
<el-input v-model="form.post_name"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
|
||||
<el-col :md="12" :sm="24">
|
||||
<el-form-item label="是否在岗">
|
||||
<el-switch v-model="form.is_atwork"></el-switch>
|
||||
|
@ -58,17 +70,9 @@
|
|||
<el-switch v-model="form.job_state"></el-switch>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :md="12" :sm="24">
|
||||
<el-form-item label="岗位名称">
|
||||
<el-input v-model="form.post_name"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
|
||||
<el-col :md="12" :sm="24">
|
||||
<el-form-item label="部门">
|
||||
<el-input v-model="form.belong_dept_name"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
|
||||
<el-col :md="12" :sm="24">
|
||||
<el-form-item label="最后打卡时间">
|
||||
|
|
Loading…
Reference in New Issue