diff --git a/src/api/ebiz/manpower/manpower.js b/src/api/ebiz/manpower/manpower.js
index 7124d1e7a..ba8d17304 100644
--- a/src/api/ebiz/manpower/manpower.js
+++ b/src/api/ebiz/manpower/manpower.js
@@ -9,3 +9,21 @@ export function demo(data) {
data
})
}
+
+// 活动量统计周报
+export function queryWeekly(data) {
+ return request({
+ url: getUrl('/agent/activityRecord/queryWeekly', 0),
+ method: 'post',
+ data
+ })
+}
+
+// 查询新增人才库
+export function queryList(data) {
+ return request({
+ url: getUrl('/agent/personnel/saveOrUpdate', 0),
+ method: 'post',
+ data
+ })
+}
diff --git a/src/assets/js/utils/validator.js b/src/assets/js/utils/validator.js
index e8da7f9ba..3ba3485ab 100644
--- a/src/assets/js/utils/validator.js
+++ b/src/assets/js/utils/validator.js
@@ -60,6 +60,13 @@ Validator.extend('age', {
return value > 17 && /^\d{1,3}$/.test(value)
}
})
+//年龄
+Validator.extend('maxAge', {
+ getMessage: () => '年龄不得大于100周岁',
+ validate: value => {
+ return value <= 100 && /^\d{1,3}$/.test(value)
+ }
+})
//被保人年龄(不得小于18周岁)
Validator.extend('appntAge', {
getMessage: () => '年龄不得小于18周岁',
diff --git a/src/components/ebiz/manpower/ActivityLogItem.vue b/src/components/ebiz/manpower/ActivityLogItem.vue
index 4f1777dd5..0c8efbd90 100644
--- a/src/components/ebiz/manpower/ActivityLogItem.vue
+++ b/src/components/ebiz/manpower/ActivityLogItem.vue
@@ -1,13 +1,14 @@
-
+
{{ ActivityLogInfo.age }}
{{ ActivityLogInfo.flag }}
-
+
diff --git a/src/components/ebiz/manpower/NavItem.vue b/src/components/ebiz/manpower/NavItem.vue
index c8bb0ba2f..9a0cedb26 100644
--- a/src/components/ebiz/manpower/NavItem.vue
+++ b/src/components/ebiz/manpower/NavItem.vue
@@ -37,7 +37,7 @@ export default {
methods: {
rout(config) {
if (!config.share) {
- let url = config.path.split("/").pop()
+ let url = config.path.split('/').pop()
let path = config.path
this.$jump({
flag: 'h5',
diff --git a/src/config/manpower.js b/src/config/manpower.js
index efc0a1831..e54d03d84 100644
--- a/src/config/manpower.js
+++ b/src/config/manpower.js
@@ -1,7 +1,11 @@
// 人力发展
-let mockBaseUrl = ''
+let mockBaseUrl = 'http://rap2api.taobao.org/app/mock/247074'
export default {
// 例子
'/demo/url': mockBaseUrl + '/demo/url',
+ // 查询日志统计周报
+ '/agent/activityRecord/queryWeekly': mockBaseUrl + '/agent/activityRecord/queryWeekly',
+ // 查询新增人才库
+ '/agent/personnel/saveOrUpdate': mockBaseUrl + '/agent/personnel/saveOrUpdate',
}
diff --git a/src/config/urlMap.js b/src/config/urlMap.js
index a75916286..7c06a8cee 100644
--- a/src/config/urlMap.js
+++ b/src/config/urlMap.js
@@ -11,6 +11,7 @@ import product from './product'
import serve from './serve'
import common from './common'
import survey from './survey'
+import manpower from './manpower'
const mockBaseUrl = 'http://rap2api.taobao.org/app/mock'
let baseObj = {
@@ -18,6 +19,6 @@ let baseObj = {
'/user/info': mockBaseUrl + '/223948/info',
'/user/logout': mockBaseUrl + '/223948/logout'
}
-Object.assign(baseObj, proposal, sale, customer, my, product, serve, common, survey)
+Object.assign(baseObj, proposal, sale, customer, my, product, serve, common, survey, manpower)
export default baseObj
diff --git a/src/router/ebiz/manpower.js b/src/router/ebiz/manpower.js
index 32a668a9c..d46babea6 100644
--- a/src/router/ebiz/manpower.js
+++ b/src/router/ebiz/manpower.js
@@ -5,6 +5,11 @@ const Navigation = () => import('@/views/ebiz/manpower/Navigation')
const Training = () => import('@/views/ebiz/manpower/Training')
const ActiveManagement = () => import('@/views/ebiz/manpower/ActiveManagement')
+
+const ActivityLogList = () => import('@/views/ebiz/manpower/activityLog/List')
+
+const ActivityLogEdit = () => import('@/views/ebiz/manpower/activityLog/Edit')
+
export default [
{
// 人力发展
@@ -35,5 +40,25 @@ export default [
title: '活动量管理',
index: 100
}
+ },
+ {
+ // 当日增员活动日志
+ path: '/manpower/ActivityLog/List',
+ name: 'ActivityLogList',
+ component: ActivityLogList,
+ meta: {
+ title: '当日增员活动日志',
+ index: 100
+ }
+ },
+ {
+ // 日志详情
+ path: '/manpower/ActivityLog/Edit',
+ name: 'ActivityLogEdit',
+ component: ActivityLogEdit,
+ meta: {
+ title: '日志详情',
+ index: 100
+ }
}
]
diff --git a/src/views/ebiz/manpower/ActiveManagement.vue b/src/views/ebiz/manpower/ActiveManagement.vue
index 441a8ce35..d334b72e6 100644
--- a/src/views/ebiz/manpower/ActiveManagement.vue
+++ b/src/views/ebiz/manpower/ActiveManagement.vue
@@ -6,49 +6,57 @@
周白板面谈数量
- 0
+ {{ weeklyInfo.whiteboard }}
周同业面谈数量
- 0
+ {{ weeklyInfo.sameTrade }}
-
-
人才库
-
-
+
-
-
- 人才库
-
-
-
-
-
当日增员活动日志
-
-
+
+
+
+
+ 当日增员活动日志
+
+
+
+
+
查看全部>>>
-
-
- 当日增员活动日志
-
-
-
-
\ No newline at end of file
+
diff --git a/src/views/ebiz/manpower/activityLog/Add.vue b/src/views/ebiz/manpower/activityLog/Add.vue
deleted file mode 100644
index 3b8d400e7..000000000
--- a/src/views/ebiz/manpower/activityLog/Add.vue
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/src/views/ebiz/manpower/activityLog/Edit.vue b/src/views/ebiz/manpower/activityLog/Edit.vue
index 7269a3667..61463e97c 100644
--- a/src/views/ebiz/manpower/activityLog/Edit.vue
+++ b/src/views/ebiz/manpower/activityLog/Edit.vue
@@ -1 +1,148 @@
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+ {{ type.text }}
+
+
+
+
+
+
+ 保存
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/ebiz/manpower/activityLog/List.vue b/src/views/ebiz/manpower/activityLog/List.vue
index eb5a6a818..b3bffd7f6 100644
--- a/src/views/ebiz/manpower/activityLog/List.vue
+++ b/src/views/ebiz/manpower/activityLog/List.vue
@@ -1 +1,71 @@
-
\ No newline at end of file
+
+
+
+
+
+ 今天
+ 回到今天
+
+
{{ showTime }}
+
+
+
+
+
+
+
+
+
+
+