mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-21 01:56:44 +08:00
[NEW] 人力发展模块 完成 views目录文件结构、通用组件、router、
完成部分功能,保存提交
This commit is contained in:
0
src/components/ebiz/manpower/ActivityLogItem.vue
Normal file
0
src/components/ebiz/manpower/ActivityLogItem.vue
Normal file
74
src/components/ebiz/manpower/NavItem.vue
Normal file
74
src/components/ebiz/manpower/NavItem.vue
Normal 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>
|
||||
0
src/components/ebiz/manpower/TalentPoolItem.vue
Normal file
0
src/components/ebiz/manpower/TalentPoolItem.vue
Normal file
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>
|
||||
@@ -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] //根据需要进行删减
|
||||
|
||||
29
src/router/ebiz/manpower.js
Normal file
29
src/router/ebiz/manpower.js
Normal 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
|
||||
}
|
||||
}
|
||||
]
|
||||
1
src/views/ebiz/manpower/ActiveManagement.vue
Normal file
1
src/views/ebiz/manpower/ActiveManagement.vue
Normal file
@@ -0,0 +1 @@
|
||||
<!-- 活动量管理 -->
|
||||
1
src/views/ebiz/manpower/IncreaseStaffTools.vue
Normal file
1
src/views/ebiz/manpower/IncreaseStaffTools.vue
Normal file
@@ -0,0 +1 @@
|
||||
<!-- 增员工具 -->
|
||||
52
src/views/ebiz/manpower/Navigation.vue
Normal file
52
src/views/ebiz/manpower/Navigation.vue
Normal 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>
|
||||
1
src/views/ebiz/manpower/PersonalCenter.vue
Normal file
1
src/views/ebiz/manpower/PersonalCenter.vue
Normal file
@@ -0,0 +1 @@
|
||||
<!-- 个人中心 -->
|
||||
43
src/views/ebiz/manpower/Training.vue
Normal file
43
src/views/ebiz/manpower/Training.vue
Normal 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>
|
||||
1
src/views/ebiz/manpower/activityLog/Add.vue
Normal file
1
src/views/ebiz/manpower/activityLog/Add.vue
Normal file
@@ -0,0 +1 @@
|
||||
<!-- 活动日志-新增日志 -->
|
||||
1
src/views/ebiz/manpower/activityLog/Edit.vue
Normal file
1
src/views/ebiz/manpower/activityLog/Edit.vue
Normal file
@@ -0,0 +1 @@
|
||||
<!-- 活动日志-修改日志 -->
|
||||
1
src/views/ebiz/manpower/activityLog/List.vue
Normal file
1
src/views/ebiz/manpower/activityLog/List.vue
Normal file
@@ -0,0 +1 @@
|
||||
<!-- 活动日志-日志列表 -->
|
||||
@@ -0,0 +1 @@
|
||||
<!-- 公司介绍 -->
|
||||
@@ -0,0 +1 @@
|
||||
<!-- 政策方案 -->
|
||||
@@ -0,0 +1 @@
|
||||
<!-- 产品信息 -->
|
||||
@@ -0,0 +1 @@
|
||||
<!-- 培训体系 -->
|
||||
1
src/views/ebiz/manpower/talentPool/Add.vue
Normal file
1
src/views/ebiz/manpower/talentPool/Add.vue
Normal file
@@ -0,0 +1 @@
|
||||
<!-- 人才库-新增人才 -->
|
||||
1
src/views/ebiz/manpower/talentPool/Edit.vue
Normal file
1
src/views/ebiz/manpower/talentPool/Edit.vue
Normal file
@@ -0,0 +1 @@
|
||||
<!-- 人才库-修改人才 -->
|
||||
1
src/views/ebiz/manpower/talentPool/List.vue
Normal file
1
src/views/ebiz/manpower/talentPool/List.vue
Normal file
@@ -0,0 +1 @@
|
||||
<!-- 人才库-人才列表 -->
|
||||
Reference in New Issue
Block a user