mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-22 04:46:43 +08:00
[NEW] 人力发展模块 完成 views目录文件结构、通用组件、router、
完成部分功能,保存提交
This commit is contained in:
50
src/components/ebiz/manpower/UserInfoHeader.vue
Normal file
50
src/components/ebiz/manpower/UserInfoHeader.vue
Normal file
@@ -0,0 +1,50 @@
|
||||
<!-- 头部用户信息 -->
|
||||
<template>
|
||||
<div class="user-info flex align-items-c p15">
|
||||
<img class="w40" src="../../../assets/images/bnf_avatar.png" />
|
||||
<div class="add-list flex1 ml10">
|
||||
<p>{{ userInfo.name }}</p>
|
||||
<div class="c-gray-base">工号 | {{ userInfo.jobNo }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getAgentInfo } from '@/api/ebiz/my/my.js'
|
||||
export default {
|
||||
name: 'UserInfoHeader',
|
||||
data() {
|
||||
return {
|
||||
userInfo: '', // 代理人信息
|
||||
activeNames: ['1']
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getInfo()
|
||||
},
|
||||
methods: {
|
||||
async getInfo() {
|
||||
// 获取代理人信息
|
||||
const res = await getAgentInfo({})
|
||||
console.log(res)
|
||||
if (res.result == 0) {
|
||||
this.userInfo = res
|
||||
}
|
||||
}
|
||||
},
|
||||
components: {}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.user-info {
|
||||
color: #666;
|
||||
.send-main {
|
||||
border-bottom: 10px solid #f5f5f5;
|
||||
}
|
||||
.add-list {
|
||||
color: #333;
|
||||
line-height: 22px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user