[NEW] 人力发展模块 完成 views目录文件结构、通用组件、router、

完成部分功能,保存提交
This commit is contained in:
tian.guangyuan
2020-03-11 18:24:53 +08:00
parent fa17320915
commit a07105c26f
21 changed files with 263 additions and 1 deletions

View File

@@ -0,0 +1,74 @@
<!-- 导航 元素 -->
<template>
<!-- <div class="nav-item"> -->
<van-cell is-link class="relative" @click="rout(config)">
<template slot="title">
<img class="t-cell-icon" :src="config.src" alt="config" />
<span class="custom-title">{{ config.title }}</span>
</template>
</van-cell>
<!-- </div> -->
</template>
<script>
import { Cell } from 'vant'
export default {
name: 'NavItem',
components: {
[Cell.name]: Cell
},
props: {
config: {
type: Object,
required: true,
default: function() {
return {
title: '默认title',
path: '/404',
src: 'http://localhost:8080/favicon.ico'
}
}
}
},
data() {
return {}
},
created() {},
methods: {
rout(config) {
if (!config.share) {
let url = config.path.split("/").pop()
let path = config.path
this.$jump({
flag: 'h5',
extra: {
url: location.origin + `/#${url}`
},
routerInfo: { path: path }
})
} else {
// eslint-disable-next-line no-undef
EWebBridge.webCallAppInJs('bridge', {
flag: 'share',
extra: {
shareType: '1'
}
})
}
}
}
}
</script>
<style lang="scss" scoped>
// .nav-item {
.t-cell-icon {
position: absolute;
width: 6.4vw;
height: 6.4vw;
}
.custom-title {
margin-left: 8.4vw;
}
// }
</style>

View 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>

View File

@@ -11,4 +11,5 @@ import milestone from './milestone'
import poster from './poster'
import report from './report'
import survey from './survey'
export default [...proposal, ...sale, ...customer, ...my, ...serve, ...common, ...product, ...agentEenter, ...milestone, ...poster, ...report, ...survey] //根据需要进行删减
import manpower from './manpower'
export default [...proposal, ...sale, ...customer, ...my, ...serve, ...common, ...product, ...agentEenter, ...milestone, ...poster, ...report, ...survey, ...manpower] //根据需要进行删减

View File

@@ -0,0 +1,29 @@
//人力发展 定义相关组件
const Navigation = () => import('@/views/ebiz/manpower/Navigation')
const Training = () => import('@/views/ebiz/manpower/Training')
export default [
{
// 人力发展
path: '/manpower/Navigation',
name: 'Navigation',
component: Navigation,
meta: {
title: '人力发展',
index: 1
}
},
{
// 培训上岗
path: '/manpower/Training',
name: 'Training',
component: Training,
meta: {
title: '培训上岗',
index: 100
}
}
]

View File

@@ -0,0 +1 @@
<!-- 活动量管理 -->

View File

@@ -0,0 +1 @@
<!-- 增员工具 -->

View File

@@ -0,0 +1,52 @@
<template>
<div>
<UserInfoHeader />
<van-cell-group>
<NavItem v-for="(item, index) of navList" :key="index" :config="item" />
</van-cell-group>
</div>
</template>
<script>
import UserInfoHeader from '@/components/ebiz/manpower/UserInfoHeader'
import NavItem from '@/components/ebiz/manpower/NavItem'
import { CellGroup } from 'vant'
export default {
name: 'Navigation',
components: {
[UserInfoHeader.name]: UserInfoHeader,
[NavItem.name]: NavItem,
[CellGroup.name]: CellGroup
},
data() {
return {
active: 0,
navList: [
{
title: '个人中心',
src: 'http://localhost:8080/favicon.ico',
path: '/'
},
{
title: '增员工具',
src: 'http://localhost:8080/favicon.ico',
path: '/'
},
{
title: '活动量管理',
src: 'http://localhost:8080/favicon.ico',
path: '/'
},
{
title: '培训上岗',
src: 'http://localhost:8080/favicon.ico',
path: '/manpower/Training'
}
]
}
},
methods: {}
}
</script>
<style lang="scss" scoped></style>

View File

@@ -0,0 +1 @@
<!-- 个人中心 -->

View File

@@ -0,0 +1,43 @@
<template>
<div>
<UserInfoHeader />
<van-cell-group>
<NavItem v-for="(item, index) of navList" :key="index" :config="item" />
</van-cell-group>
</div>
</template>
<script>
import UserInfoHeader from '@/components/ebiz/manpower/UserInfoHeader'
import NavItem from '@/components/ebiz/manpower/NavItem'
import { CellGroup } from 'vant'
export default {
name: 'Navigation',
components: {
[UserInfoHeader.name]: UserInfoHeader,
[NavItem.name]: NavItem,
[CellGroup.name]: CellGroup
},
data() {
return {
active: 0,
navList: [
{
title: '增员分享',
src: 'http://localhost:8080/favicon.ico',
path: '/',
share: true
},
{
title: '增员审批',
src: 'http://localhost:8080/favicon.ico',
path: '/agentEenter/approve/ApproveList'
}
]
}
},
methods: {}
}
</script>
<style lang="scss" scoped></style>

View File

@@ -0,0 +1 @@
<!-- 活动日志-新增日志 -->

View File

@@ -0,0 +1 @@
<!-- 活动日志-修改日志 -->

View File

@@ -0,0 +1 @@
<!-- 活动日志-日志列表 -->

View File

@@ -0,0 +1 @@
<!-- 公司介绍 -->

View File

@@ -0,0 +1 @@
<!-- 政策方案 -->

View File

@@ -0,0 +1 @@
<!-- 产品信息 -->

View File

@@ -0,0 +1 @@
<!-- 培训体系 -->

View File

@@ -0,0 +1 @@
<!-- 人才库-新增人才 -->

View File

@@ -0,0 +1 @@
<!-- 人才库-修改人才 -->

View File

@@ -0,0 +1 @@
<!-- 人才库-人才列表 -->