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