Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e7853851
authored
Jul 21, 2025
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
长课程
1 parent
82ff1f69
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
491 additions
and
181 deletions
src/api/serviceCentre.js
src/views/serviceCentre/longCourse/components/allocation.vue
src/views/serviceCentre/longCourse/components/configureCourse.vue
src/views/serviceCentre/longCourse/components/countDown.vue
src/views/serviceCentre/longCourse/components/couseConfig.vue → src/views/serviceCentre/longCourse/components/courseConfig.vue
src/views/serviceCentre/longCourse/components/couseAllocation.vue
src/views/serviceCentre/longCourse/components/customCouse.vue
src/views/serviceCentre/longCourse/components/echartBar.vue
src/views/serviceCentre/longCourse/components/echartLine.vue
src/views/serviceCentre/longCourse/components/indicatorInfo.vue
src/views/serviceCentre/longCourse/components/lastWeekReplay.vue
src/views/serviceCentre/longCourse/components/learningSituation.vue
src/views/serviceCentre/longCourse/components/longDetailDialog.vue
src/views/serviceCentre/longCourse/components/multiple.vue
src/views/serviceCentre/longCourse/components/staffDetail.vue
src/views/serviceCentre/longCourse/components/storeIndicators.vue
src/views/serviceCentre/longCourse/components/weekTimePicker.vue
src/views/serviceCentre/longCourse/configureTask.vue
src/api/serviceCentre.js
View file @
e785385
...
@@ -117,3 +117,8 @@ export function insertOrUpdate(data) {
...
@@ -117,3 +117,8 @@ export function insertOrUpdate(data) {
data
.
method
=
`
${
path
}
contentManagerTask.insertOrUpdate`
data
.
method
=
`
${
path
}
contentManagerTask.insertOrUpdate`
return
request
(
data
,
RequestMethods
.
POST
)
return
request
(
data
,
RequestMethods
.
POST
)
}
}
// 根据ID查询详细信息
export
function
getByTaskId
(
data
)
{
data
.
method
=
`
${
path
}
contentManagerTask.getById`
return
request
(
data
,
RequestMethods
.
POST
)
}
src/views/serviceCentre/longCourse/components/allocation.vue
View file @
e785385
...
@@ -133,6 +133,10 @@ export default {
...
@@ -133,6 +133,10 @@ export default {
console
.
log
(
this
.
courseList
,
"courseList"
)
console
.
log
(
this
.
courseList
,
"courseList"
)
},
},
methods
:
{
methods
:
{
reset
()
{
this
.
selected
=
[]
this
.
selectCourseList
=
[]
},
handleCheckedChange
(
val
)
{
handleCheckedChange
(
val
)
{
console
.
log
(
val
)
console
.
log
(
val
)
this
.
selected
=
val
?
val
:
[]
this
.
selected
=
val
?
val
:
[]
...
...
src/views/serviceCentre/longCourse/components/configureCourse.vue
View file @
e785385
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
></components>
></components>
</div>
</div>
</div>
</div>
<div
class=
"end-configuration"
>
结束配置
</div>
<div
class=
"end-configuration"
@
click=
"handleEndConfigure"
>
结束配置
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -87,6 +87,7 @@ export default {
...
@@ -87,6 +87,7 @@ export default {
}
}
},
},
created
()
{
created
()
{
//课程搜索功能
this
.
$EventBus
.
$on
(
"fromAllocation"
,
(
courseForm
)
=>
{
this
.
$EventBus
.
$on
(
"fromAllocation"
,
(
courseForm
)
=>
{
console
.
log
(
"父组件接收到孙组件事件:"
,
courseForm
)
console
.
log
(
"父组件接收到孙组件事件:"
,
courseForm
)
this
.
getStaffTagCourseList
(
courseForm
)
this
.
getStaffTagCourseList
(
courseForm
)
...
@@ -95,12 +96,10 @@ export default {
...
@@ -95,12 +96,10 @@ export default {
async
mounted
()
{
async
mounted
()
{
this
.
queryData
=
this
.
$route
.
query
this
.
queryData
=
this
.
$route
.
query
//获取员工列表
//获取员工列表
await
this
.
getStaffInfoData
()
this
.
staffList
=
await
this
.
getStaffInfoData
()
this
.
staffItem
=
this
.
staffList
[
this
.
staffIndex
]
//查询员工详情
//查询员工详情
this
.
findStoreEmployeePerformanceData
()
this
.
findStoreEmployeePerformanceData
()
// //获取配置课程列表
// this.getStaffTagCourseList()
},
},
methods
:
{
methods
:
{
//提交本员工配置回调
//提交本员工配置回调
...
@@ -108,25 +107,23 @@ export default {
...
@@ -108,25 +107,23 @@ export default {
this
.
staffIndex
=
0
this
.
staffIndex
=
0
//获取员工列表
//获取员工列表
await
this
.
getStaffInfoData
()
this
.
staffList
=
await
this
.
getStaffInfoData
()
this
.
handleTabClick
(
0
)
this
.
handleTabClick
(
0
)
},
},
//查询员工详情
findStoreEmployeePerformanceData
()
{
findStoreEmployeePerformanceData
()
{
let
{
staffIndex
,
staffList
,
queryData
}
=
this
let
{
staffItem
,
queryData
}
=
this
// this.staffPhone = "18978849947"
findStoreEmployeePerformance
({
findStoreEmployeePerformance
({
// phone: "18978849947",
// phone: "18978849947",
phone
:
staff
List
[
staffIndex
]
.
phone
,
phone
:
staff
Item
.
phone
,
scene
:
queryData
.
scene
scene
:
queryData
.
scene
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
console
.
log
(
this
.
staffItem
,
"staffItem"
)
this
.
staffDetailInfo
=
res
this
.
staffDetailInfo
=
res
console
.
log
(
res
)
})
})
},
},
getStaffTagCourseList
(
courseForm
=
{})
{
getStaffTagCourseList
(
courseForm
=
{})
{
console
.
log
(
this
.
staffItem
,
" this.staffItem"
)
let
params
=
{
let
params
=
{
// staffPhone: "18978849947",
staffPhone
:
this
.
staffItem
.
phone
,
staffPhone
:
this
.
staffItem
.
phone
,
currentPage
:
1
,
currentPage
:
1
,
pageSize
:
99999
,
pageSize
:
99999
,
...
@@ -134,14 +131,13 @@ export default {
...
@@ -134,14 +131,13 @@ export default {
...
courseForm
...
courseForm
}
}
getStaffTagCourseList
(
params
).
then
((
res
)
=>
{
getStaffTagCourseList
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
,
"getStaffTagCourseList"
)
this
.
courseList
=
res
?
res
.
list
:
[]
this
.
courseList
=
res
?
res
.
list
:
[]
})
})
},
},
handleStatistics
()
{
handleStatistics
(
res
)
{
let
total
=
0
,
let
total
=
0
,
complete
=
0
complete
=
0
this
.
staffList
.
forEach
((
item
)
=>
{
res
.
forEach
((
item
)
=>
{
if
(
item
.
courseConfigFlag
==
1
)
{
if
(
item
.
courseConfigFlag
==
1
)
{
complete
++
complete
++
}
}
...
@@ -154,19 +150,24 @@ export default {
...
@@ -154,19 +150,24 @@ export default {
console
.
log
(
this
.
statisticsObj
)
console
.
log
(
this
.
statisticsObj
)
},
},
getStaffInfoData
()
{
getStaffInfoData
()
{
let
{
unionOrAndType
}
=
this
.
queryData
return
new
Promise
((
resolve
,
reject
)
=>
{
let
methods
=
unionOrAndType
?
customizeList
:
findStaffByMerchantNo
let
{
unionOrAndType
}
=
this
.
queryData
methods
(
this
.
queryData
).
then
((
res
)
=>
{
let
methods
=
unionOrAndType
?
customizeList
:
findStaffByMerchantNo
console
.
log
(
res
)
methods
(
this
.
queryData
).
then
((
res
)
=>
{
this
.
staffList
=
res
console
.
log
(
res
)
//员工统计
if
(
res
)
{
this
.
handleStatistics
()
resolve
(
res
)
}
//员工统计
this
.
handleStatistics
(
res
)
})
})
})
},
},
handleClick
(
index
)
{
handleClick
(
index
)
{
this
.
staffIndex
=
index
this
.
staffIndex
=
index
this
.
staffItem
=
this
.
staffList
[
this
.
staffIndex
]
this
.
staffItem
=
this
.
staffList
[
this
.
staffIndex
]
if
(
this
.
activeName
==
0
)
{
if
(
this
.
activeName
==
0
)
{
//查询员工详情
this
.
findStoreEmployeePerformanceData
()
this
.
findStoreEmployeePerformanceData
()
}
else
{
}
else
{
//获取配置课程列表
//获取配置课程列表
...
@@ -181,11 +182,31 @@ export default {
...
@@ -181,11 +182,31 @@ export default {
}
}
this
.
tabName
=
arr
[
+
this
.
activeName
]
this
.
tabName
=
arr
[
+
this
.
activeName
]
if
(
index
==
0
)
{
if
(
index
==
0
)
{
//查询员工详情
this
.
findStoreEmployeePerformanceData
()
this
.
findStoreEmployeePerformanceData
()
}
else
{
}
else
{
//获取配置课程列表
//获取配置课程列表
this
.
getStaffTagCourseList
()
this
.
getStaffTagCourseList
()
}
}
},
handleEndConfigure
()
{
if
(
this
.
statisticsObj
.
total
!=
this
.
statisticsObj
.
complete
)
{
this
.
$confirm
(
"还有员工未完成课程配置,是否确定结束配置?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
})
.
then
(()
=>
{
this
.
$router
.
push
({
name
:
"longCourse"
})
})
.
catch
(()
=>
{})
}
else
{
this
.
$router
.
push
({
name
:
"longCourse"
})
}
}
}
}
}
}
}
...
...
src/views/serviceCentre/longCourse/components/countDown.vue
0 → 100644
View file @
e785385
<!-- 倒计时 -->
<
template
>
<div
class=
"count-down"
>
<img
class=
"error-circle"
src=
"../../images/error-circle.png"
/>
{{
countdown
}}
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
countdown
:
""
,
isOvertime
:
false
}
},
mounted
()
{
this
.
startCountdown
()
},
methods
:
{
startCountdown
()
{
const
now
=
new
Date
()
const
wednesday
=
new
Date
(
now
)
// 计算本周三的日期
const
day
=
now
.
getDay
()
const
diff
=
(
day
-
3
+
7
)
%
7
// 3代表星期三
wednesday
.
setDate
(
wednesday
.
getDate
()
-
diff
)
wednesday
.
setHours
(
23
,
59
,
59
,
0
)
// 如果今天是周四或周五
if
(
day
===
4
||
day
===
5
)
{
this
.
isOvertime
=
true
this
.
countdown
=
"已超出本周配课时间,学员需本周日前完成学习"
return
}
// 如果已过本周三,显示下周三
if
(
now
>
wednesday
)
{
wednesday
.
setDate
(
wednesday
.
getDate
()
+
7
)
}
// 开始倒计时
this
.
updateCountdown
(
wednesday
)
},
updateCountdown
(
endTime
)
{
const
now
=
new
Date
()
if
(
now
>=
endTime
)
{
this
.
isOvertime
=
true
this
.
countdown
=
"已超出本周配课时间,学员需本周日前完成学习"
return
}
const
diff
=
endTime
-
now
const
days
=
Math
.
floor
(
diff
/
(
1000
*
60
*
60
*
24
))
const
hours
=
Math
.
floor
((
diff
/
(
1000
*
60
*
60
))
%
24
)
const
minutes
=
Math
.
floor
((
diff
/
(
1000
*
60
))
%
60
)
const
seconds
=
Math
.
floor
((
diff
/
1000
)
%
60
)
this
.
countdown
=
`倒计时:完成本周课程配置还剩
${
days
}
天
${
hours
}
时
${
minutes
}
分
${
seconds
}
秒`
setTimeout
(()
=>
this
.
updateCountdown
(
endTime
),
1000
)
}
}
}
</
script
>
<
style
>
.count-down
{
margin-left
:
20px
;
display
:
flex
;
align-items
:
center
;
width
:
376px
;
height
:
32px
;
border-radius
:
2px
;
opacity
:
1
;
background
:
#f47f131
a
;
padding
:
6px
11px
;
box-sizing
:
border-box
;
color
:
#666666
;
font-size
:
12px
;
font-weight
:
400
;
.error-circle
{
width
:
14px
;
height
:
14px
;
margin-right
:
8px
;
}
}
</
style
>
src/views/serviceCentre/longCourse/components/couseConfig.vue
→
src/views/serviceCentre/longCourse/components/cou
r
seConfig.vue
View file @
e785385
...
@@ -3,10 +3,11 @@
...
@@ -3,10 +3,11 @@
<div
class=
"couse-wrap"
>
<div
class=
"couse-wrap"
>
<div
class=
"header"
>
<div
class=
"header"
>
课程任务配置
课程任务配置
<div
class=
"count-down"
>
<count-down></count-down>
<!--
<div
class=
"count-down"
>
<img
class=
"error-circle"
src=
"../../images/error-circle.png"
/>
<img
class=
"error-circle"
src=
"../../images/error-circle.png"
/>
倒计时:还剩 2天11时23分57秒 完成本周课程配置
倒计时:还剩 2天11时23分57秒 完成本周课程配置
</div>
</div>
-->
</div>
</div>
<div
class=
"condition"
>
<div
class=
"condition"
>
<div
class=
"couse-tabs"
v-if=
"longForm.scene != 3"
>
<div
class=
"couse-tabs"
v-if=
"longForm.scene != 3"
>
...
@@ -19,7 +20,12 @@
...
@@ -19,7 +20,12 @@
{{
item
.
brand
}}
{{
item
.
brand
}}
</div>
</div>
</div>
</div>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleCustom"
<el-button
size=
"small"
type=
"primary"
@
click=
"handleCustom"
v-if=
"longForm.isDisabled"
>
自定义配课
</el-button
>
自定义配课
</el-button
>
>
</div>
</div>
...
@@ -34,13 +40,13 @@
...
@@ -34,13 +40,13 @@
<div
class=
"configuration"
>
<div
class=
"configuration"
>
<div
class=
"item"
>
<div
class=
"item"
>
<div>
可配置
</div>
<div>
可配置
</div>
<div
class=
"number"
>
<div
{{
class=
"number"
metric
.
merchantCount
&&
metric
.
merchantCount
===
0
v-if=
"metric.merchantCount || metric.merchantCount === 0"
?
metric
.
merchantCount
>
:
"-"
{{
metric
.
merchantCount
}}
家
}}
家
</div>
</div>
<div
v-else
class=
"number"
>
-
</div>
</div>
</div>
<div
class=
"item"
>
<div
class=
"item"
>
<div>
<div>
...
@@ -48,24 +54,37 @@
...
@@ -48,24 +54,37 @@
metric
.
matchMerchantCourseCount
==
null
?
"未配课"
:
"已配置"
metric
.
matchMerchantCourseCount
==
null
?
"未配课"
:
"已配置"
}}
}}
</div>
</div>
<div
class=
"number"
>
<div
{{
class=
"number"
(
metric
.
matchMerchantCourseCount
&&
v-if=
"
metric
.
matchMerchantCourseCount
===
0
)
||
metric.matchMerchantCourseCount ||
"-"
metric.matchMerchantCourseCount === 0
}}
家
"
>
{{
metric
.
matchMerchantCourseCount
}}
家
</div>
</div>
<div
v-else
class=
"number"
>
-
</div>
</div>
</div>
</div>
</div>
<div
class=
"btns"
>
<div
class=
"btns"
>
<div
class=
"details"
@
click=
"handleDetail(metric)"
>
详情
</div>
<div
<div
class=
"configure-course"
@
click=
"handleConfigureCourse(metric)"
>
:class=
"[metric.merchantCount ? 'details' : 'disabled']"
@
click=
"handleDetail(metric)"
>
详情
</div>
<div
:class=
"[metric.merchantCount ? 'configure-course' : 'disabled']"
@
click=
"handleConfigureCourse(metric)"
v-if=
"longForm.isDisabled"
>
配置课程
配置课程
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 自定义 -->
<!-- 自定义 -->
<custom-couse
<custom-couse
:longForm=
"longForm"
:longForm=
"longForm"
:longItemData=
"longAllData[longForm.scene][activeIndex]"
:longItemData=
"longAllData[longForm.scene][activeIndex]"
...
@@ -77,9 +96,13 @@
...
@@ -77,9 +96,13 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
customCouse
from
"./customCouse.vue"
import
customCouse
from
"./customCouse.vue"
import
{
findAllItemByConfigId
}
from
"@/api/serviceCentre"
import
countDown
from
"./countDown.vue"
import
{
findAllItemByConfigId
,
findStaffByMerchantNo
}
from
"@/api/serviceCentre"
export
default
{
export
default
{
components
:
{
customCouse
},
components
:
{
customCouse
,
countDown
},
data
()
{
data
()
{
return
{
return
{
activeIndex
:
0
,
activeIndex
:
0
,
...
@@ -134,23 +157,46 @@ export default {
...
@@ -134,23 +157,46 @@ export default {
this
.
$emit
(
"changeBrand"
,
params
.
configId
)
this
.
$emit
(
"changeBrand"
,
params
.
configId
)
},
0
)
},
0
)
},
},
handleConfigureCourse
(
item
)
{
async
handleConfigureCourse
(
item
)
{
console
.
log
(
item
)
console
.
log
(
item
)
this
.
$router
.
push
({
if
(
item
.
merchantCount
)
{
name
:
"configureCourse"
,
let
data
=
await
this
.
getStaffInfoData
(
item
.
merchantNos
)
query
:
{
if
(
data
&&
data
.
length
>
0
)
{
scene
:
this
.
longForm
.
scene
,
this
.
$router
.
push
({
merchantNos
:
[
44211227
]
name
:
"configureCourse"
,
// merchantNos: item.merchantNos ? item.merchantNos : [44211227]
query
:
{
scene
:
this
.
longForm
.
scene
,
merchantNos
:
item
.
merchantNos
,
brandId
:
item
.
id
}
})
}
else
{
this
.
$message
({
message
:
"选中指标无匹配驻店人员"
,
type
:
"warning"
})
}
}
}
},
//获取门店下的员工
getStaffInfoData
(
merchantNos
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
findStaffByMerchantNo
({
merchantNos
,
scene
:
this
.
longForm
.
scene
}).
then
((
res
)
=>
{
console
.
log
(
res
)
resolve
(
res
)
})
})
})
},
},
handleDetail
(
row
)
{
handleDetail
(
row
)
{
console
.
log
(
row
)
if
(
row
.
merchantCount
)
{
row
.
activeName
=
"indicatorInfo"
row
.
activeName
=
"indicatorInfo"
row
.
scene
=
this
.
longForm
.
scene
row
.
scene
=
this
.
longForm
.
scene
row
.
pageId
=
row
.
id
row
.
pageId
=
row
.
id
this
.
$emit
(
"openWindow"
,
row
)
this
.
$emit
(
"openWindow"
,
row
)
}
},
},
handleClick
(
index
)
{
handleClick
(
index
)
{
console
.
log
(
index
)
console
.
log
(
index
)
...
@@ -294,6 +340,17 @@ export default {
...
@@ -294,6 +340,17 @@ export default {
text-align
:
center
;
text-align
:
center
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.disabled
{
width
:
114px
;
height
:
32px
;
border-radius
:
24px
;
opacity
:
1
;
line-height
:
32px
;
text-align
:
center
;
color
:
rgb
(
188
,
190
,
194
);
background-color
:
rgb
(
244
,
244
,
245
);
border-color
:
rgb
(
233
,
233
,
235
);
}
.configure-course
{
.configure-course
{
width
:
114px
;
width
:
114px
;
height
:
32px
;
height
:
32px
;
...
...
src/views/serviceCentre/longCourse/components/couseAllocation.vue
View file @
e785385
...
@@ -6,10 +6,13 @@
...
@@ -6,10 +6,13 @@
{{
staffDetailInfo
.
aiJy
?
staffDetailInfo
.
aiJy
:
"暂无AI导师建议"
}}
{{
staffDetailInfo
.
aiJy
?
staffDetailInfo
.
aiJy
:
"暂无AI导师建议"
}}
</div>
</div>
<div
class=
"header"
>
课程配置
</div>
<div
class=
"header"
>
课程配置
</div>
<!-- 已配置 -->
<template
v-if=
"staffItem.courseConfigFlag == 1"
>
<template
v-if=
"staffItem.courseConfigFlag == 1"
>
<el-form
class=
"edit-sub-block"
label-width=
"138px"
>
<el-form
class=
"edit-sub-block"
label-width=
"138px"
>
<el-form-item
label=
"学习完成时间:"
>
本周内
</el-form-item>
<el-form-item
label=
"学习完成时间:"
>
本周内
</el-form-item>
<el-form-item
label=
"处罚方式:"
>
不处罚
</el-form-item>
<el-form-item
label=
"处罚方式:"
>
{{
alreadyConfig
.
punishTypeText
}}
</el-form-item>
<el-form-item
label=
"配置课程:"
>
<el-form-item
label=
"配置课程:"
>
<div
class=
"right"
>
<div
class=
"right"
>
<div
class=
"title-type"
>
<div
class=
"title-type"
>
...
@@ -34,9 +37,12 @@
...
@@ -34,9 +37,12 @@
</div>
</div>
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"学习任务标题:"
>
延保营销技巧
</el-form-item>
<el-form-item
label=
"学习任务标题:"
>
{{
alreadyConfig
.
title
}}
</el-form-item>
</el-form>
</el-form>
</
template
>
</
template
>
<!-- 未配置 -->
<
template
v-else
>
<
template
v-else
>
<div
class=
"allocation"
>
<div
class=
"allocation"
>
<glsx-combi-form
<glsx-combi-form
...
@@ -50,6 +56,7 @@
...
@@ -50,6 +56,7 @@
:form-data=
"allocationFormData"
:form-data=
"allocationFormData"
:form-rules=
"formRules"
:form-rules=
"formRules"
>
>
<!-- 配置课程 -->
<div
slot=
"allocationHtml"
slot-scope=
"scope"
>
<div
slot=
"allocationHtml"
slot-scope=
"scope"
>
<curricula-variable
<curricula-variable
ref=
"curriculaVariable"
ref=
"curriculaVariable"
...
@@ -60,13 +67,14 @@
...
@@ -60,13 +67,14 @@
</glsx-combi-form>
</glsx-combi-form>
</div>
</div>
<div
class=
"foot-btns"
>
<div
class=
"foot-btns"
>
<div
class=
"btn reset"
>
重置
</div>
<div
class=
"btn reset"
@
click=
"handleReset"
>
重置
</div>
<div
class=
"btn multiple"
@
click=
"handleMultiple"
>
多人配置
</div>
<div
class=
"btn multiple"
@
click=
"handleMultiple"
>
多人配置
</div>
<div
class=
"btn submit"
@
click=
"handleSubmit"
>
提交本员工配置
</div>
<div
class=
"btn submit"
@
click=
"handleSubmit"
>
提交本员工配置
</div>
</div>
</div>
</
template
>
</
template
>
<!-- 多人配置 -->
<multipleDialog
<multipleDialog
ref=
"multipleDialog"
:multipleVisible=
"multipleVisible"
:multipleVisible=
"multipleVisible"
v-if=
"multipleVisible"
v-if=
"multipleVisible"
@
dialogClose=
"handleCloseDialog"
@
dialogClose=
"handleCloseDialog"
...
@@ -78,7 +86,7 @@
...
@@ -78,7 +86,7 @@
<
script
>
<
script
>
import
curriculaVariable
from
"./allocation"
import
curriculaVariable
from
"./allocation"
import
multipleDialog
from
"./multiple"
import
multipleDialog
from
"./multiple"
import
{
insertOrUpdate
,
staffCourse
}
from
"@/api/serviceCentre"
import
{
insertOrUpdate
,
staffCourse
,
getByTaskId
}
from
"@/api/serviceCentre"
export
default
{
export
default
{
components
:
{
components
:
{
curriculaVariable
,
curriculaVariable
,
...
@@ -96,6 +104,7 @@ export default {
...
@@ -96,6 +104,7 @@ export default {
studyType
:
1
,
studyType
:
1
,
courseList
:
[]
courseList
:
[]
},
},
alreadyConfig
:
{},
handleFormRef
:
"handleFormRef"
,
handleFormRef
:
"handleFormRef"
,
formRules
:
{
formRules
:
{
punishType
:
[
punishType
:
[
...
@@ -151,7 +160,9 @@ export default {
...
@@ -151,7 +160,9 @@ export default {
{
{
label
:
"学习任务标题:"
,
label
:
"学习任务标题:"
,
name
:
"title"
,
name
:
"title"
,
type
:
"input"
type
:
"input"
,
isClear
:
true
,
maxlength
:
20
}
}
],
],
courseAllocationData
:
[],
courseAllocationData
:
[],
...
@@ -186,6 +197,7 @@ export default {
...
@@ -186,6 +197,7 @@ export default {
handler
(
val
)
{
handler
(
val
)
{
console
.
log
(
val
,
"val"
)
console
.
log
(
val
,
"val"
)
this
.
courseAllocationData
=
val
this
.
courseAllocationData
=
val
this
.
handleReset
()
},
},
deep
:
true
deep
:
true
},
},
...
@@ -206,6 +218,8 @@ export default {
...
@@ -206,6 +218,8 @@ export default {
if
(
val
.
courseConfigFlag
==
1
)
{
if
(
val
.
courseConfigFlag
==
1
)
{
//查询员工已配置课程
//查询员工已配置课程
this
.
getStaffTagCourseList
()
this
.
getStaffTagCourseList
()
//查询员工已配置详情
this
.
getByTaskId
()
}
}
},
},
deep
:
true
,
deep
:
true
,
...
@@ -216,25 +230,50 @@ export default {
...
@@ -216,25 +230,50 @@ export default {
methods
:
{
methods
:
{
//查询员工已配置课程
//查询员工已配置课程
getStaffTagCourseList
()
{
getStaffTagCourseList
()
{
staffCourse
({
staffPhone
:
this
.
staffItem
.
phone
}).
then
((
res
)
=>
{
staffCourse
({
taskId
:
this
.
staffItem
.
taskId
}).
then
((
res
)
=>
{
console
.
log
(
"获取到已配课"
,
res
)
console
.
log
(
"获取到已配课"
,
res
)
this
.
staffTagCourseList
=
res
.
list
this
.
staffTagCourseList
=
res
.
list
})
})
},
//获取配置课程列表
},
//查询员工已配置详情
getByTaskId
()
{
getByTaskId
({
id
:
this
.
staffItem
.
taskId
}).
then
((
res
)
=>
{
console
.
log
(
"获取到已配课详情"
,
res
)
this
.
alreadyConfig
=
{
title
:
res
.
title
,
punishTypeText
:
res
.
extendConfig
.
punishType
==
1
?
"不处罚"
:
"限制录单"
}
})
},
//获取配置课程列表
handleCourse
(
data
)
{
handleCourse
(
data
)
{
this
.
extendConfig
.
courseList
=
data
.
map
((
item
)
=>
{
this
.
extendConfig
.
courseList
=
data
.
map
((
item
)
=>
{
return
{
return
{
courseId
:
item
.
courseId
,
courseId
:
item
.
courseId
,
course
Nam
e
:
item
.
courseName
course
Titl
e
:
item
.
courseName
}
}
})
})
console
.
log
(
this
.
extendConfig
.
courseList
)
if
(
data
.
length
>
0
)
{
if
(
data
.
length
>
0
)
{
this
.
$refs
.
editFormRef
.
$refs
[
this
.
handleFormRef
].
clearValidate
(
this
.
$refs
.
editFormRef
.
$refs
[
this
.
handleFormRef
].
clearValidate
(
`courseList`
`courseList`
)
)
}
}
},
},
//重置
handleReset
()
{
this
.
extendConfig
=
{
punishType
:
1
,
//惩罚方式:0无 1禁止录单
deadline
:
""
,
title
:
""
,
studyType
:
1
,
courseList
:
[]
}
this
.
$refs
.
curriculaVariable
&&
this
.
$refs
.
curriculaVariable
.
reset
()
},
handleMultiple
()
{
handleMultiple
()
{
this
.
$refs
.
editFormRef
.
$refs
[
this
.
handleFormRef
].
validate
((
valid
)
=>
{
this
.
$refs
.
editFormRef
.
$refs
[
this
.
handleFormRef
].
validate
((
valid
)
=>
{
console
.
log
(
valid
)
console
.
log
(
valid
)
...
...
src/views/serviceCentre/longCourse/components/customCouse.vue
View file @
e785385
...
@@ -136,7 +136,8 @@ export default {
...
@@ -136,7 +136,8 @@ export default {
coustomForm
:
{
coustomForm
:
{
merchantNos
:
""
,
merchantNos
:
""
,
unionOrAndType
:
""
,
unionOrAndType
:
""
,
scene
:
""
scene
:
""
,
brandId
:
""
},
},
coustomFormData
:
[
coustomFormData
:
[
{
{
...
@@ -168,10 +169,9 @@ export default {
...
@@ -168,10 +169,9 @@ export default {
},
},
methods
:
{
methods
:
{
handleChange
(
index
)
{
handleChange
(
index
)
{
console
.
log
(
index
,
this
.
conditionData
)
this
.
conditionData
.
metricRuleList
[
index
].
active
=
this
.
conditionData
.
metricRuleList
[
index
].
active
=
!
this
.
conditionData
.
metricRuleList
[
index
].
active
!
this
.
conditionData
.
metricRuleList
[
index
].
active
let
merchantNos
=
[
44211227
]
let
merchantNos
=
[]
this
.
conditionData
.
metricRuleList
.
forEach
((
item
)
=>
{
this
.
conditionData
.
metricRuleList
.
forEach
((
item
)
=>
{
if
(
item
.
active
)
{
if
(
item
.
active
)
{
if
(
item
.
merchantNos
&&
item
.
merchantNos
.
length
)
{
if
(
item
.
merchantNos
&&
item
.
merchantNos
.
length
)
{
...
@@ -184,10 +184,10 @@ export default {
...
@@ -184,10 +184,10 @@ export default {
`merchantNos`
`merchantNos`
)
)
}
}
console
.
log
(
merchantNos
)
this
.
coustomForm
.
merchantNos
=
merchantNos
.
join
(
","
)
this
.
coustomForm
.
merchantNos
=
merchantNos
},
},
handleData
(
val
)
{
handleData
(
val
)
{
this
.
coustomForm
.
brandId
=
val
.
id
let
data
=
JSON
.
parse
(
JSON
.
stringify
(
val
))
let
data
=
JSON
.
parse
(
JSON
.
stringify
(
val
))
data
.
metricRuleList
.
forEach
((
item
)
=>
{
data
.
metricRuleList
.
forEach
((
item
)
=>
{
item
.
active
=
false
item
.
active
=
false
...
@@ -199,24 +199,38 @@ export default {
...
@@ -199,24 +199,38 @@ export default {
// this.visible = false
// this.visible = false
this
.
coustomForm
.
merchantNos
=
""
this
.
coustomForm
.
merchantNos
=
""
this
.
coustomForm
.
unionOrAndType
=
""
this
.
coustomForm
.
unionOrAndType
=
""
this
.
coustomForm
.
brandId
=
""
this
.
conditionData
.
metricRuleList
.
forEach
((
item
)
=>
{
this
.
conditionData
.
metricRuleList
.
forEach
((
item
)
=>
{
item
.
active
=
false
item
.
active
=
false
})
})
},
},
handleConfirm
()
{
handleConfirm
()
{
this
.
$refs
.
editFormRef
.
$refs
[
this
.
handleFormRef
].
validate
((
valid
)
=>
{
this
.
$refs
.
editFormRef
.
$refs
[
this
.
handleFormRef
].
validate
(
if
(
valid
)
{
async
(
valid
)
=>
{
this
.
$router
.
push
({
if
(
valid
)
{
name
:
"configureCourse"
,
let
data
=
await
this
.
getStaffInfoData
()
query
:
this
.
coustomForm
if
(
data
&&
data
.
length
>
0
)
{
})
this
.
$router
.
push
({
this
.
visible
=
false
name
:
"configureCourse"
,
// customizeList(this.coustomForm).then((res) => {
query
:
this
.
coustomForm
// console.log(res)
})
// this.notice.okTips("操作成功")
this
.
visible
=
false
}
else
{
// })
this
.
$message
({
message
:
"选中指标无匹配驻店人员"
,
type
:
"warning"
})
}
}
}
}
)
},
getStaffInfoData
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
customizeList
({
...
this
.
coustomForm
}).
then
((
res
)
=>
{
console
.
log
(
res
)
resolve
(
res
)
})
})
})
}
}
}
}
...
...
src/views/serviceCentre/longCourse/components/echartBar.vue
View file @
e785385
...
@@ -86,10 +86,12 @@ export default {
...
@@ -86,10 +86,12 @@ export default {
params
[
0
].
name
params
[
0
].
name
}
<
/div
>
}
<
/div
>
<
div
style
=
"rgba(0, 0, 0, 0.65);display:flex;align-items:center; line-height: 20px;"
>
<
div
style
=
"width: 6px;
<
div
style
=
"rgba(0, 0, 0, 0.65);display:flex;align-items:center; line-height: 20px;"
>
<
div
style
=
"width: 6px;
height: 6px;background: ${params[0].color};border-radius:50%;"
><
/div
>
height: 6px;background: ${
params[0].color
};border-radius:50%;margin-right:8px;"
><
/div
>
$
{
this
.
title
}
:
${
params
[
0
].
value
}
$
{
this
.
title
}
:
${
params
[
0
].
value
}
</div>
</div>
<div style="margin-left:1
0
px; line-height: 20px;">环比: <span style="color:
${
<div style="margin-left:1
8
px; line-height: 20px;">环比: <span style="color:
${
rate
.
indexOf
(
"-"
)
>
-
1
?
"#2CCA74"
:
"#EB4E4E"
rate
.
indexOf
(
"-"
)
>
-
1
?
"#2CCA74"
:
"#EB4E4E"
}
">${rate || 0}${rate.indexOf("
-
") > -1 ? "
↓
" : "
↑
"}</span></div>
}
">${rate || 0}${rate.indexOf("
-
") > -1 ? "
↓
" : "
↑
"}</span></div>
`
`
...
...
src/views/serviceCentre/longCourse/components/echartLine.vue
View file @
e785385
...
@@ -96,10 +96,12 @@ export default {
...
@@ -96,10 +96,12 @@ export default {
params
[
0
].
name
params
[
0
].
name
}
<
/div
>
}
<
/div
>
<
div
style
=
"rgba(0, 0, 0, 0.65);display:flex;align-items:center; line-height: 20px;"
>
<
div
style
=
"width: 6px;
<
div
style
=
"rgba(0, 0, 0, 0.65);display:flex;align-items:center; line-height: 20px;"
>
<
div
style
=
"width: 6px;
height: 6px;background: ${params[0].color};border-radius:50%;"
><
/div
>
height: 6px;background: ${
params[0].color
};border-radius:50%;margin-right:8px;"
><
/div
>
$
{
this
.
title
}
:
${
params
[
0
].
value
}
$
{
this
.
title
}
:
${
params
[
0
].
value
}
</div>
</div>
<div style="margin-left:1
0
px; line-height: 20px;">环比: <span style="color:
${
<div style="margin-left:1
8
px; line-height: 20px;">环比: <span style="color:
${
rate
.
indexOf
(
"-"
)
>
-
1
?
"#2CCA74"
:
"#EB4E4E"
rate
.
indexOf
(
"-"
)
>
-
1
?
"#2CCA74"
:
"#EB4E4E"
}
">${rate || 0}${rate.indexOf("
-
") > -1 ? "
↓
" : "
↑
"}</span></div>
}
">${rate || 0}${rate.indexOf("
-
") > -1 ? "
↓
" : "
↑
"}</span></div>
`
`
...
...
src/views/serviceCentre/longCourse/components/indicatorInfo.vue
View file @
e785385
...
@@ -21,7 +21,10 @@
...
@@ -21,7 +21,10 @@
<
script
type=
"text/ecmascript-6"
>
<
script
type=
"text/ecmascript-6"
>
import
{
mapActions
,
mapState
}
from
"vuex"
import
{
mapActions
,
mapState
}
from
"vuex"
import
{
findStoreInfoByMerchantNo
}
from
"@api/serviceCentre"
import
{
findStoreInfoByMerchantNo
,
findStaffByMerchantNo
}
from
"@api/serviceCentre"
import
{
Util
,
deepClone
}
from
"@/common/util"
import
{
Util
,
deepClone
}
from
"@/common/util"
import
noDataImg
from
"@/assets/empty.png"
import
noDataImg
from
"@/assets/empty.png"
import
dayjs
from
"dayjs"
import
dayjs
from
"dayjs"
...
@@ -63,7 +66,12 @@ export default {
...
@@ -63,7 +66,12 @@ export default {
},
},
{
{
label
:
"展业时间"
,
label
:
"展业时间"
,
prop
:
"businessDevDate"
prop
:
"businessDevDate"
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
businessDevDate
?
Util
.
dateFormate
(
cellValue
.
businessDevDate
,
"YYYY-MM-DD"
)
:
""
}
},
},
{
{
label
:
"归属业务"
,
label
:
"归属业务"
,
...
@@ -103,28 +111,30 @@ export default {
...
@@ -103,28 +111,30 @@ export default {
default
:
()
=>
{}
default
:
()
=>
{}
}
}
},
},
watch
:{
watch
:
{
queryData
:{
queryData
:
{
handler
(
val
){
handler
(
val
)
{
// this.findStoreInfoByMerchantNoData()
// this.findStoreInfoByMerchantNoData()
},
deep
:
true
,
immediate
:
true
}
},
},
deep
:
true
,
immediate
:
true
}
},
mounted
()
{
mounted
()
{
this
.
findStoreInfoByMerchantNoData
()
this
.
findStoreInfoByMerchantNoData
()
},
},
methods
:
{
methods
:
{
findStoreInfoByMerchantNoData
()
{
findStoreInfoByMerchantNoData
()
{
console
.
log
(
this
.
queryData
,
"queryData"
)
this
.
searchForm
=
{
this
.
searchForm
=
{
...
this
.
$refs
.
storeTable
.
page
...
this
.
$refs
.
storeTable
.
page
}
}
this
.
searchForm
.
scene
=
this
.
queryData
.
scene
this
.
searchForm
.
scene
=
this
.
queryData
.
scene
// this.searchForm.merchantNos=this.queryData.merchantNos?this.queryData.merchantNos:[44211227]
this
.
searchForm
.
merchantNos
=
this
.
queryData
.
merchantNos
this
.
searchForm
.
merchantNos
=
[
44211227
]
?
this
.
queryData
.
merchantNos
:
[
44211227
]
findStoreInfoByMerchantNo
(
this
.
searchForm
).
then
((
res
)
=>
{
findStoreInfoByMerchantNo
(
this
.
searchForm
).
then
((
res
)
=>
{
this
.
tableData
=
res
this
.
tableData
=
res
})
})
},
},
...
@@ -138,16 +148,51 @@ queryData:{
...
@@ -138,16 +148,51 @@ queryData:{
handleBatch
()
{
handleBatch
()
{
let
selectedData
=
[]
let
selectedData
=
[]
let
merchantNos
=
[]
if
(
this
.
$refs
.
storeTable
.
mutiSelectArr
.
indicatorIndex
)
{
if
(
this
.
$refs
.
storeTable
.
mutiSelectArr
.
indicatorIndex
)
{
selectedData
=
this
.
$refs
.
storeTable
.
mutiSelectArr
.
indicatorIndex
selectedData
=
this
.
$refs
.
storeTable
.
mutiSelectArr
.
indicatorIndex
}
}
if
(
selectedData
.
length
>
0
){
console
.
log
(
selectedData
)
if
(
selectedData
.
length
>
0
)
{
}
else
{
selectedData
.
forEach
((
item
)
=>
{
this
.
$message
.
error
(
'请先选择门店'
)
if
(
item
.
merchantNo
)
{
merchantNos
.
push
(
item
.
merchantNo
)
}
this
.
handleConfigureCourse
(
merchantNos
)
})
}
else
{
this
.
$message
.
error
(
"请先选择门店"
)
}
}
console
.
log
(
selectedData
)
console
.
log
(
selectedData
)
},
//获取门店下的员工
getStaffInfoData
(
merchantNos
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
findStaffByMerchantNo
({
merchantNos
,
scene
:
this
.
queryData
.
scene
}).
then
((
res
)
=>
{
console
.
log
(
res
)
resolve
(
res
)
})
})
},
async
handleConfigureCourse
(
merchantNos
)
{
let
data
=
await
this
.
getStaffInfoData
(
merchantNos
)
if
(
data
&&
data
.
length
>
0
)
{
this
.
$router
.
push
({
name
:
"configureCourse"
,
query
:
{
scene
:
this
.
queryData
.
scene
,
merchantNos
}
})
}
else
{
this
.
$message
({
message
:
"选中指标无匹配驻店人员"
,
type
:
"warning"
})
}
}
}
}
}
}
}
...
...
src/views/serviceCentre/longCourse/components/lastWeekReplay.vue
View file @
e785385
...
@@ -23,6 +23,40 @@
...
@@ -23,6 +23,40 @@
:before-search-fn=
"beforeSearchFn"
:before-search-fn=
"beforeSearchFn"
v-if=
"show"
v-if=
"show"
>
>
<div
slot=
"merchantName"
slot-scope=
"scope"
>
<template
v-if=
"
scope.scope.merchantName &&
scope.scope.merchantName.split(',').length > 1
"
>
<span>
{{
scope
.
scope
.
merchantName
.
split
(
","
).
slice
(
0
,
1
).
join
(
""
)
}}
</span>
<el-popover
placement=
"top"
width=
"fit-content"
trigger=
"hover"
>
<div
:class=
"
{
scrollHeight: scope.scope.merchantName.split(',').length >= 10
}"
>
<div
v-for=
"(item, index) in scope.scope.merchantName.split(',')"
:key=
"index"
>
{{
item
}}
</div>
</div>
<span
class=
"more-info"
slot=
"reference"
>
...(
{{
scope
.
scope
.
merchantName
.
split
(
","
).
length
}}
)
</span
>
</el-popover>
</
template
>
<
template
v-else
>
<span>
{{
scope
.
scope
.
merchantName
?
scope
.
scope
.
merchantName
:
"--"
}}
</span>
</
template
>
</div>
<div
slot=
"auth-button"
slot-scope=
"scope"
>
<div
slot=
"auth-button"
slot-scope=
"scope"
>
<!-- 查看 -->
<!-- 查看 -->
<span
style=
"margin-right: 10px; cursor: pointer"
>
<span
style=
"margin-right: 10px; cursor: pointer"
>
...
@@ -89,6 +123,7 @@ export default {
...
@@ -89,6 +123,7 @@ export default {
{
{
label
:
"门店名称"
,
label
:
"门店名称"
,
prop
:
"merchantName"
,
prop
:
"merchantName"
,
addHtml
:
"merchantName"
,
width
:
"300"
,
width
:
"300"
,
isHide
:
false
isHide
:
false
},
},
...
...
src/views/serviceCentre/longCourse/components/learningSituation.vue
View file @
e785385
...
@@ -10,8 +10,11 @@
...
@@ -10,8 +10,11 @@
:key=
"index"
:key=
"index"
>
>
<div
class=
"text"
>
{{
item
.
text
}}
:
</div>
<div
class=
"text"
>
{{
item
.
text
}}
:
</div>
<div
v-if=
"item.className"
class=
"spot greenSpot"
></div>
<div
<div
class=
"result"
>
已改善
</div>
v-if=
"item.className"
:class=
"['spot', item.className(learningInfo)]"
></div>
<div
class=
"result"
>
{{
learningInfo
[
item
.
key
]
}}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -95,38 +98,24 @@ export default {
...
@@ -95,38 +98,24 @@ export default {
couseData
:
[
couseData
:
[
{
{
text
:
"长课程"
,
text
:
"长课程"
,
key
:
1
,
key
:
"longCourseTag"
,
formatter
:
(
cellValue
)
=>
{
return
{
1
:
"已改善"
,
2
:
"进行中"
}[
cellValue
.
violationStatus
]
},
className
:
(
cellValue
)
=>
{
className
:
(
cellValue
)
=>
{
return
{
return
{
1
:
"greenSpot"
,
已改善
:
"greenSpot"
,
2
:
"greenSpot"
,
未改善
:
"redSpot"
,
3
:
"ashSpot"
,
进行中
:
"yellowSpot"
0
:
"ashSpot"
}[
cellValue
.
longCourseTag
]
}[
cellValue
.
pushStatus
]
}
}
},
},
{
{
text
:
"短课程"
,
text
:
"短课程"
,
key
:
2
,
key
:
"shortCourseTag"
,
formatter
:
(
cellValue
)
=>
{
return
{
1
:
"已改善"
,
2
:
"进行中"
}[
cellValue
.
violationStatus
]
},
className
:
(
cellValue
)
=>
{
className
:
(
cellValue
)
=>
{
return
{
return
{
1
:
"greenSpot"
,
已改善
:
"greenSpot"
,
2
:
"greenSpot"
,
未改善
:
"redSpot"
,
3
:
"ashSpot"
,
进行中
:
"yellowSpot"
0
:
"ashSpot"
}[
cellValue
.
shortCourseTag
]
}[
cellValue
.
pushStatus
]
}
}
}
}
],
],
...
@@ -192,7 +181,7 @@ export default {
...
@@ -192,7 +181,7 @@ export default {
...
val
,
...
val
,
courseRecords
:
val
.
courseRecords
.
map
((
record
)
=>
({
courseRecords
:
val
.
courseRecords
.
map
((
record
)
=>
({
...
record
,
...
record
,
isCollapse
:
tru
e
// 初始化为 false
isCollapse
:
fals
e
// 初始化为 false
}))
}))
}
}
}
}
...
...
src/views/serviceCentre/longCourse/components/longDetailDialog.vue
View file @
e785385
...
@@ -36,12 +36,15 @@
...
@@ -36,12 +36,15 @@
</el-row>
</el-row>
</el-form>
</el-form>
</div>
</div>
<div
v-if=
"detail.key == 'infoTableData'"
style=
"margin-top: 20px"
>
<div
style=
"margin-top: 20px"
>
<d2-table
<d2-table
:hasNum=
"detail.hasNum"
:hasNum=
"detail.hasNum"
ref=
"infoTableData"
:table-params=
"detail.tableParams"
:table-params=
"detail.tableParams"
:tableData=
"detailInfo.infoTableData"
:tableData=
"
detail.key == 'infoTableData'
? detailInfo.infoTableData
: detailInfo.configTableData
"
:hasPage=
"false"
:hasPage=
"false"
>
>
<div
slot=
"OutputValue"
slot-scope=
"scope"
>
<div
slot=
"OutputValue"
slot-scope=
"scope"
>
...
@@ -94,16 +97,6 @@
...
@@ -94,16 +97,6 @@
</div>
</div>
</d2-table>
</d2-table>
</div>
</div>
<div
v-if=
"detail.key == 'configTableData'"
style=
"margin-top: 20px"
>
<d2-table
:hasNum=
"detail.hasNum"
ref=
"configTableData"
:table-params=
"detail.tableParams"
:tableData=
"detailInfo.configTableData"
:hasPage=
"false"
>
</d2-table>
</div>
</div>
</div>
</div>
</div>
</baseDialog>
</baseDialog>
...
@@ -214,7 +207,7 @@ export default {
...
@@ -214,7 +207,7 @@ export default {
},
},
{
{
label
:
"成绩"
,
label
:
"成绩"
,
prop
:
"totalScore
"
prop
:
"totalScore"
},
},
{
{
label
:
"完成时间"
,
label
:
"完成时间"
,
...
@@ -259,26 +252,26 @@ export default {
...
@@ -259,26 +252,26 @@ export default {
var
params
=
{
staffStudyId
:
this
.
paramsObj
.
id
}
var
params
=
{
staffStudyId
:
this
.
paramsObj
.
id
}
staffCourse
(
params
).
then
((
res
)
=>
{
staffCourse
(
params
).
then
((
res
)
=>
{
this
.
detailInfo
.
configTableData
=
res
.
list
this
.
detailInfo
.
configTableData
=
res
.
list
console
.
log
(
this
.
detailInfo
,
" console.log(this.detailInfo)"
)
})
})
},
},
getStaffInfo
()
{
getStaffInfo
()
{
var
params
=
{
staffPhone
:
this
.
paramsObj
.
staffPhone
}
var
params
=
{
staffPhone
:
this
.
paramsObj
.
staffPhone
}
staffInfo
(
params
).
then
((
res
)
=>
{
staffInfo
(
params
).
then
((
res
)
=>
{
this
.
detailInfo
=
res
Object
.
assign
(
this
.
detailInfo
,
res
,
{
this
.
detailInfo
.
infoTableData
=
[
infoTableData
:
[
{
{
lastConversion
:
res
.
lastConversion
,
lastConversion
:
res
.
lastConversion
,
currentConversion
:
res
.
currentConversion
,
currentConversion
:
res
.
currentConversion
,
conversionRate
:
res
.
conversionRate
,
conversionRate
:
res
.
conversionRate
,
lastCustomerUnitPrice
:
res
.
lastCustomerUnitPrice
,
lastCustomerUnitPrice
:
res
.
lastCustomerUnitPrice
,
currentCustomerUnitPrice
:
res
.
currentCustomerUnitPrice
,
currentCustomerUnitPrice
:
res
.
currentCustomerUnitPrice
,
customerUnitPriceRate
:
res
.
customerUnitPriceRate
,
customerUnitPriceRate
:
res
.
customerUnitPriceRate
,
lastOutputValue
:
res
.
lastOutputValue
,
lastOutputValue
:
res
.
lastOutputValue
,
currentOutputValue
:
res
.
currentOutputValue
,
currentOutputValue
:
res
.
currentOutputValue
,
outputValueRate
:
res
.
outputValueRate
outputValueRate
:
res
.
outputValueRate
}
}
]
]
})
this
.
getStaffCourse
()
this
.
getStaffCourse
()
})
})
...
...
src/views/serviceCentre/longCourse/components/multiple.vue
View file @
e785385
...
@@ -106,6 +106,10 @@ export default {
...
@@ -106,6 +106,10 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
reset
()
{
this
.
checkAll
=
[]
this
.
selectStaffList
=
[]
},
handleChooseStaff
(
index
)
{
handleChooseStaff
(
index
)
{
this
.
selectStaffList
[
index
].
active
=
!
this
.
selectStaffList
[
index
].
active
this
.
selectStaffList
[
index
].
active
=
!
this
.
selectStaffList
[
index
].
active
this
.
checkAll
=
this
.
selectStaffList
.
every
((
item
)
=>
item
.
active
)
this
.
checkAll
=
this
.
selectStaffList
.
every
((
item
)
=>
item
.
active
)
...
...
src/views/serviceCentre/longCourse/components/staffDetail.vue
View file @
e785385
...
@@ -30,25 +30,28 @@
...
@@ -30,25 +30,28 @@
<!-- 业绩状况 -->
<!-- 业绩状况 -->
<performance-status
:performanceInfo=
"performanceInfo"
></performance-status>
<performance-status
:performanceInfo=
"performanceInfo"
></performance-status>
<!-- 谈客能力-->
<!-- 谈客能力-->
<div
class=
"header"
>
谈客能力
</div>
<
template
v-if=
"queryData.brandId == 1 && queryData.scene == 1"
>
<div
class=
"presentation"
>
<div
class=
"header"
>
谈客能力
</div>
<div
<div
class=
"presentation"
>
v-for=
"(item, index) in capacityList"
<div
:key=
"index"
v-for=
"(item, index) in capacityList"
class=
"capacity-line"
:key=
"index"
>
class=
"capacity-line"
<div
class=
"title"
>
{{ item.title }}
</div>
>
<div
class=
"capacity"
>
<div
class=
"title"
>
{{
item
.
title
}}
</div>
<div
<div
class=
"capacity"
>
:class=
"['capacity-item', item.key == 'ohterList' ? 'other' : '']"
<div
v-for=
"(child, chindIndex) of item.children"
:class=
"['capacity-item', item.key == 'ohterList' ? 'other' : '']"
:key=
"chindIndex"
v-for=
"(child, chindIndex) of item.children"
>
:key=
"chindIndex"
{{ child.label }} {{ child.value }}
>
{{
child
.
label
}}
{{
child
.
value
}}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</
template
>
<!-- 学习情况 -->
<!-- 学习情况 -->
<learning-situation
<learning-situation
:learningProgress=
"learningProgress"
:learningProgress=
"learningProgress"
...
@@ -115,6 +118,7 @@ export default {
...
@@ -115,6 +118,7 @@ export default {
}
}
}
}
],
],
queryData
:
this
.
$route
.
query
,
capacityList
:
[
capacityList
:
[
{
{
title
:
"弱项:"
,
title
:
"弱项:"
,
...
@@ -186,6 +190,7 @@ export default {
...
@@ -186,6 +190,7 @@ export default {
.el-form-item
{
.el-form-item
{
width
:
100%
;
width
:
100%
;
margin-bottom
:
0px
;
margin-bottom
:
0px
;
display
:
flex
;
}
}
.itemDiv
{
.itemDiv
{
display
:
flex
;
display
:
flex
;
...
@@ -202,11 +207,13 @@ export default {
...
@@ -202,11 +207,13 @@ export default {
white-space
:
nowrap
;
white-space
:
nowrap
;
}
}
::v-deep
.el-form-item__label
{
::v-deep
.el-form-item__label
{
white-space
:
nowrap
;
color
:
#666666
;
color
:
#666666
;
}
}
::v-deep
.el-form-item__content
{
::v-deep
.el-form-item__content
{
//
max-width
:
calc
(
100%
-
1280px
);
//
max-width
:
calc
(
100%
-
1280px
);
word-break
:
break-all
;
word-break
:
break-all
;
width
:
90%
;
}
}
}
}
...
...
src/views/serviceCentre/longCourse/components/storeIndicators.vue
View file @
e785385
...
@@ -8,7 +8,9 @@
...
@@ -8,7 +8,9 @@
详情
<i
class=
"el-icon-arrow-right"
></i>
详情
<i
class=
"el-icon-arrow-right"
></i>
</div>
</div>
</div>
</div>
<template
v-if=
"storeIndicatoerInfo.metricDTOList.length"
>
<template
v-if=
"storeIndicatoerInfo && storeIndicatoerInfo.metricDTOList.length"
>
<div
<div
v-for=
"(item, index) in storeIndicatoerInfo.metricDTOList"
v-for=
"(item, index) in storeIndicatoerInfo.metricDTOList"
:key=
"index"
:key=
"index"
...
...
src/views/serviceCentre/longCourse/components/weekTimePicker.vue
View file @
e785385
...
@@ -34,7 +34,8 @@ export default {
...
@@ -34,7 +34,8 @@ export default {
let
timeStr
=
`
${
this
.
formatDate
(
start
)}
-
${
this
.
formatDate
(
end
)}
`
let
timeStr
=
`
${
this
.
formatDate
(
start
)}
-
${
this
.
formatDate
(
end
)}
`
this
.
$emit
(
"changeWeek"
,
{
this
.
$emit
(
"changeWeek"
,
{
weekOffset
:
this
.
weekOffset
,
weekOffset
:
this
.
weekOffset
,
timeStr
timeStr
,
isDisabled
:
this
.
isDisabled
})
})
return
timeStr
return
timeStr
...
...
src/views/serviceCentre/longCourse/configureTask.vue
View file @
e785385
...
@@ -43,13 +43,13 @@
...
@@ -43,13 +43,13 @@
></store-indicators>
></store-indicators>
</div>
</div>
<!-- 课程任务配置 -->
<!-- 课程任务配置 -->
<couse-config
<cou
r
se-config
ref=
"couseConfig"
ref=
"couseConfig"
@
openWindow=
"openWindow"
@
openWindow=
"openWindow"
:longAllData=
"longAllData"
:longAllData=
"longAllData"
:longForm=
"longForm"
:longForm=
"longForm"
@
changeBrand=
"changeBrand"
@
changeBrand=
"changeBrand"
></couse-config>
></cou
r
se-config>
<!--上周学习复盘 -->
<!--上周学习复盘 -->
<last-week-replay
<last-week-replay
:longForm=
"longForm"
:longForm=
"longForm"
...
@@ -62,14 +62,14 @@
...
@@ -62,14 +62,14 @@
import
weekTimePicker
from
"./components/weekTimePicker"
import
weekTimePicker
from
"./components/weekTimePicker"
// import monthTimePicker from "./components/monthTimePicker"
// import monthTimePicker from "./components/monthTimePicker"
import
storeIndicators
from
"./components/storeIndicators"
import
storeIndicators
from
"./components/storeIndicators"
import
cou
seConfig
from
"./components/cou
seConfig"
import
cou
rseConfig
from
"./components/cour
seConfig"
import
lastWeekReplay
from
"./components/lastWeekReplay"
import
lastWeekReplay
from
"./components/lastWeekReplay"
import
{
findAllConfig
}
from
"@/api/serviceCentre"
import
{
findAllConfig
}
from
"@/api/serviceCentre"
export
default
{
export
default
{
components
:
{
components
:
{
weekTimePicker
,
weekTimePicker
,
storeIndicators
,
storeIndicators
,
couseConfig
,
cou
r
seConfig
,
lastWeekReplay
lastWeekReplay
// monthTimePicker
// monthTimePicker
},
},
...
@@ -80,7 +80,8 @@ export default {
...
@@ -80,7 +80,8 @@ export default {
longForm
:
{
longForm
:
{
scene
:
1
,
scene
:
1
,
startTime
:
""
,
startTime
:
""
,
endTime
:
""
endTime
:
""
,
isDisabled
:
true
},
},
analysisActiveIndex
:
0
,
analysisActiveIndex
:
0
,
activeIndex
:
0
,
activeIndex
:
0
,
...
@@ -194,6 +195,7 @@ export default {
...
@@ -194,6 +195,7 @@ export default {
// analysisActiveIndex 0:上周 1:当月
// analysisActiveIndex 0:上周 1:当月
this
.
analysisList
[
0
].
value
=
analysisObj
[
0
](
weekOffset
)
this
.
analysisList
[
0
].
value
=
analysisObj
[
0
](
weekOffset
)
this
.
analysisList
[
1
].
value
=
analysisObj
[
1
](
weekOffset
)
this
.
analysisList
[
1
].
value
=
analysisObj
[
1
](
weekOffset
)
this
.
longForm
.
isDisabled
=
data
.
isDisabled
this
.
handleSetTime
()
this
.
handleSetTime
()
},
},
handleClick
(
index
)
{
handleClick
(
index
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment