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 ad5be5dd
authored
Jul 22, 2025
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
长课程需求开发联调
1 parent
f80b6584
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
452 additions
and
266 deletions
src/views/contentManager/SopContentAdd.vue
src/views/contentManager/staffMassSending/index.vue
src/views/serviceCentre/longCourse/components/allocation.vue
src/views/serviceCentre/longCourse/components/configureCourse.vue
src/views/serviceCentre/longCourse/components/couseAllocation.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/storeInfo.vue
src/views/serviceCentre/longCourse/courseList.vue
src/views/serviceCentre/longCourse/longCourseCenter.vue
src/views/contentManager/SopContentAdd.vue
View file @
ad5be5d
This diff is collapsed.
Click to expand it.
src/views/contentManager/staffMassSending/index.vue
View file @
ad5be5d
...
...
@@ -5,8 +5,13 @@
<d2-container>
<!--
<div
class=
"offline-account"
>
-->
<div
class=
"header"
slot=
"header"
style=
"padding: 10px 20px"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
:label-width=
"labelWidth"
:form-data=
"showFormData"
/>
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
:label-width=
"labelWidth"
:form-data=
"showFormData"
/>
<div
class=
"up-btns"
>
<el-button
@
click=
"handleSearch"
size=
"small"
type=
"primary"
>
查询
...
...
@@ -20,20 +25,33 @@
<d2-table-header>
<auth-button
category=
"Button"
/>
</d2-table-header>
<d2-table
ref=
"recordTable"
:get-list-api=
"getListApi"
:search-form=
"searchFormSearch"
:table-params=
"tableParams"
:before-search-fn=
"beforeSearchFn"
>
<d2-table
ref=
"recordTable"
:get-list-api=
"getListApi"
:search-form=
"searchFormSearch"
:table-params=
"tableParams"
:before-search-fn=
"beforeSearchFn"
>
<div
slot=
"auth-button"
slot-scope=
"scope"
>
<span
style=
"margin-right: 10px"
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9130502']"
/>
</span>
<span
style=
"margin-right: 10px"
v-if=
"scope.scope.sendStatus == 1 || scope.scope.sendStatus == 2 || scope.scope.contentType == 5"
>
<span
style=
"margin-right: 10px"
v-if=
"
(scope.scope.sendStatus == 1 && scope.scope.contentType == 5) ||
(scope.scope.sendStatus == 2 && scope.scope.contentType == 5)
"
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9130503']"
/>
</span>
<span
style=
"margin-right: 10px"
v-if=
"scope.scope.sendStatus == 3"
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9130504']"
/>
</span>
<span
style=
"margin-right: 10px"
v-if=
"scope.scope.sendStatus == 1 || scope.scope.sendStatus == 2"
>
<span
style=
"margin-right: 10px"
v-if=
"scope.scope.sendStatus == 1 || scope.scope.sendStatus == 2"
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9130505']"
/>
</span>
</div>
...
...
@@ -227,7 +245,7 @@ export default {
if
(
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
.
showFormData
[
index
].
optionLabel
this
.
showFormData
[
index
].
optionLabel
]
!==
"全部"
)
{
const
temp
=
{}
...
...
@@ -311,7 +329,8 @@ export default {
goStatisticsPage
(
row
)
{
this
.
$router
.
push
({
name
:
row
.
contentType
==
5
?
"massSendingStatisticsPage"
:
"statisticsPage"
,
name
:
row
.
contentType
==
5
?
"massSendingStatisticsPage"
:
"statisticsPage"
,
query
:
{
id
:
row
.
id
,
title
:
row
.
title
...
...
src/views/serviceCentre/longCourse/components/allocation.vue
View file @
ad5be5d
...
...
@@ -48,11 +48,14 @@
<div>
考核成绩:
<span>
{{
course
.
totalScore
||
0
}}
分
</span>
</div>
<div>
<div
v-if=
"course.finishDate"
>
完成时间:
<span>
{{
course
.
finishDate
||
"-"
}}
</span>
</div>
</div>
<div
class=
"status orange"
v-if=
"course.status"
>
<div
:class=
"['status', statusColors[course.status]]"
v-if=
"course.status"
>
{{
statusObj
[
course
.
status
]
}}
</div>
</el-tooltip>
...
...
@@ -111,12 +114,14 @@ export default {
],
cityOptions
:
[
"上海"
,
"北京"
,
"广州"
,
"深圳"
],
statusObj
:
{
1
:
"未学习"
,
2
:
"未完成"
,
3
:
"待考核"
,
4
:
"未通过"
,
5
:
"已完成"
},
statusColors
:
{
2
:
"orange"
,
5
:
"green"
},
selectObj
:
{
courseTotalDuration
:
0
,
count
:
0
...
...
@@ -136,6 +141,7 @@ export default {
reset
()
{
this
.
selected
=
[]
this
.
selectCourseList
=
[]
this
.
titleActiveIndex
=
0
},
handleCheckedChange
(
val
)
{
console
.
log
(
val
)
...
...
@@ -150,13 +156,52 @@ export default {
this
.
selectCourseList
=
this
.
courseList
.
filter
((
item
)
=>
{
const
isSelected
=
this
.
selected
.
includes
(
item
.
courseId
)
if
(
isSelected
)
{
this
.
selectObj
.
courseTotalDuration
+=
item
.
courseTotalDuration
// 使用 toFixed(2) 保留两位小数,防止浮点误差
this
.
selectObj
.
courseTotalDuration
=
parseFloat
(
(
this
.
selectObj
.
courseTotalDuration
+
item
.
courseTotalDuration
).
toFixed
(
2
)
)
this
.
selectObj
.
count
+=
1
}
return
isSelected
})
this
.
$emit
(
"handleCourse"
,
this
.
selectCourseList
)
},
// handleCourse() {
// this.selectObj = {
// courseTotalDuration: 0,
// count: 0
// }
// this.selectCourseList = this.courseList.filter((item) => {
// const isSelected = this.selected.includes(item.courseId)
// if (isSelected) {
// this.selectObj.courseTotalDuration += item.courseTotalDuration
// this.selectObj.count += 1
// }
// return isSelected
// })
// this.$emit("handleCourse", this.selectCourseList)
// },
// delCourse(val) {
// this.selectObj = {
// courseTotalDuration: 0,
// count: 0
// }
// let currentIndex = this.selectCourseList.findIndex(
// (item) => item.courseId == val.courseId
// )
// let selectedIndex = this.selected.findIndex(
// (item) => item == val.courseId
// )
// this.selected.splice(selectedIndex, 1)
// this.selectCourseList.splice(currentIndex, 1)
// this.selectCourseList.forEach((item) => {
// this.selectObj.courseTotalDuration += item.courseTotalDuration
// this.selectObj.count += 1
// })
// this.$emit("handleCourse", this.selectCourseList)
// },
delCourse
(
val
)
{
this
.
selectObj
=
{
courseTotalDuration
:
0
,
...
...
@@ -171,7 +216,11 @@ export default {
this
.
selected
.
splice
(
selectedIndex
,
1
)
this
.
selectCourseList
.
splice
(
currentIndex
,
1
)
this
.
selectCourseList
.
forEach
((
item
)
=>
{
this
.
selectObj
.
courseTotalDuration
+=
item
.
courseTotalDuration
this
.
selectObj
.
courseTotalDuration
=
parseFloat
(
(
this
.
selectObj
.
courseTotalDuration
+
item
.
courseTotalDuration
).
toFixed
(
2
)
)
this
.
selectObj
.
count
+=
1
})
this
.
$emit
(
"handleCourse"
,
this
.
selectCourseList
)
...
...
@@ -187,7 +236,7 @@ export default {
this
.
search
()
},
search
()
{
this
.
$
EventBus
.
$
emit
(
"fromAllocation"
,
this
.
courseForm
)
this
.
$emit
(
"fromAllocation"
,
this
.
courseForm
)
}
}
}
...
...
@@ -339,6 +388,10 @@ export default {
font-weight
:
500
;
border-radius
:
2px
;
}
.ash
{
color
:
#c6c8cc
;
border
:
1px
solid
#c6c8cc
;
}
.orange
{
color
:
#f59619
;
border
:
1px
solid
#f59619
;
...
...
src/views/serviceCentre/longCourse/components/configureCourse.vue
View file @
ad5be5d
...
...
@@ -38,9 +38,9 @@
</div>
</div>
<components
ref=
"components"
:is=
"tabName"
:staffDetailInfo=
"staffDetailInfo"
:courseList=
"courseList"
:aiJy=
"aiJy"
:staffItem=
"staffItem"
@
handleConfigureCourse=
"handleConfigureCourse"
:staffList=
"staffList"
...
...
@@ -57,8 +57,7 @@ import couseAllocation from "./couseAllocation"
import
{
customizeList
,
findStaffByMerchantNo
,
findStoreEmployeePerformance
,
getStaffTagCourseList
findStoreEmployeePerformance
}
from
"@/api/serviceCentre"
export
default
{
name
:
"configureCourse"
,
...
...
@@ -76,6 +75,7 @@ export default {
}
],
tabName
:
"staffDetail"
,
aiJy
:
""
,
staffItem
:
{},
staffList
:
[],
courseList
:
[],
...
...
@@ -88,10 +88,10 @@ export default {
},
created
()
{
//课程搜索功能
this
.
$EventBus
.
$on
(
"fromAllocation"
,
(
courseForm
)
=>
{
console
.
log
(
"父组件接收到孙组件事件:"
,
courseForm
)
this
.
getStaffTagCourseList
(
courseForm
)
})
//
this.$EventBus.$on("fromAllocation", (courseForm) => {
//
console.log("父组件接收到孙组件事件:", courseForm)
//
this.getStaffTagCourseList(courseForm)
//
})
},
async
mounted
()
{
this
.
queryData
=
this
.
$route
.
query
...
...
@@ -99,7 +99,7 @@ export default {
this
.
staffList
=
await
this
.
getStaffInfoData
()
this
.
staffItem
=
this
.
staffList
[
this
.
staffIndex
]
//查询员工详情
this
.
findStoreEmployeePerformanceData
()
//
this.findStoreEmployeePerformanceData()
},
methods
:
{
//提交本员工配置回调
...
...
@@ -118,22 +118,22 @@ export default {
phone
:
staffItem
.
phone
,
scene
:
queryData
.
scene
}).
then
((
res
)
=>
{
this
.
staffDetailInfo
=
res
})
},
getStaffTagCourseList
(
courseForm
=
{})
{
console
.
log
(
this
.
staffItem
,
" this.staffItem"
)
let
params
=
{
staffPhone
:
this
.
staffItem
.
phone
,
currentPage
:
1
,
pageSize
:
99999
,
queryAll
:
false
,
...
courseForm
}
getStaffTagCourseList
(
params
).
then
((
res
)
=>
{
this
.
courseList
=
res
?
res
.
list
:
[]
this
.
aiJy
=
res
.
aiJy
})
},
// getStaffTagCourseList(courseForm = {}) {
// console.log(this.staffItem, " this.staffItem")
// let params = {
// staffPhone: this.staffItem.phone,
// currentPage: 1,
// pageSize: 99999,
// queryAll: false,
// ...courseForm
// }
// getStaffTagCourseList(params).then((res) => {
// this.courseList = res ? res.list : []
// })
// },
handleStatistics
(
res
)
{
let
total
=
0
,
complete
=
0
...
...
@@ -166,13 +166,8 @@ export default {
handleClick
(
index
)
{
this
.
staffIndex
=
index
this
.
staffItem
=
this
.
staffList
[
this
.
staffIndex
]
if
(
this
.
activeName
==
0
)
{
//查询员工详情
this
.
findStoreEmployeePerformanceData
()
}
else
{
//获取配置课程列表
this
.
getStaffTagCourseList
()
}
this
.
findStoreEmployeePerformanceData
()
},
handleTabClick
(
index
)
{
this
.
activeName
=
index
...
...
@@ -181,13 +176,19 @@ export default {
1
:
"couseAllocation"
}
this
.
tabName
=
arr
[
+
this
.
activeName
]
if
(
index
==
0
)
{
//查询员工详情
this
.
findStoreEmployeePerformanceData
()
}
else
{
//获取配置课程列表
this
.
getStaffTagCourseList
()
}
this
.
$nextTick
(()
=>
{
console
.
log
(
this
.
$refs
.
components
)
if
(
index
==
0
)
{
//查询员工详情
this
.
$refs
.
components
?.
findStoreEmployeePerformanceData
()
// this.findStoreEmployeePerformanceData()
}
else
{
//获取配置课程列表
// this.getStaffTagCourseList()
this
.
$refs
.
components
?.
getStaffTagCourseList
()
}
})
},
handleEndConfigure
()
{
if
(
this
.
statisticsObj
.
total
!=
this
.
statisticsObj
.
complete
)
{
...
...
src/views/serviceCentre/longCourse/components/couseAllocation.vue
View file @
ad5be5d
...
...
@@ -3,7 +3,7 @@
<div
class=
"couseAllocation"
>
<div
class=
"header"
>
AI导师建议
</div>
<div
class=
"ai-suggest"
>
{{
staffDetailInfo
.
aiJy
?
staffDetailInfo
.
aiJy
:
"暂无AI导师建议"
}}
{{
aiJy
?
aiJy
:
"暂无AI导师建议"
}}
</div>
<div
class=
"header"
>
课程配置
</div>
<!-- 已配置 -->
...
...
@@ -60,8 +60,9 @@
<div
slot=
"allocationHtml"
slot-scope=
"scope"
>
<curricula-variable
ref=
"curriculaVariable"
:courseList=
"course
AllocationData
"
:courseList=
"course
List
"
@
handleCourse=
"handleCourse"
@
fromAllocation=
"fromAllocation"
></curricula-variable>
</div>
</glsx-combi-form>
...
...
@@ -79,6 +80,7 @@
v-if=
"multipleVisible"
@
dialogClose=
"handleCloseDialog"
:staffList=
"staffListData"
:staffItem=
"staffItem"
@
handleMultiple=
"handleConfirmMultiple"
></multipleDialog>
</div>
...
...
@@ -86,7 +88,12 @@
<
script
>
import
curriculaVariable
from
"./allocation"
import
multipleDialog
from
"./multiple"
import
{
insertOrUpdate
,
staffCourse
,
getByTaskId
}
from
"@/api/serviceCentre"
import
{
insertOrUpdate
,
staffCourse
,
getByTaskId
,
getStaffTagCourseList
}
from
"@/api/serviceCentre"
export
default
{
components
:
{
curriculaVariable
,
...
...
@@ -104,6 +111,7 @@ export default {
studyType
:
1
,
courseList
:
[]
},
aiJy
:
""
,
alreadyConfig
:
{},
handleFormRef
:
"handleFormRef"
,
formRules
:
{
...
...
@@ -165,8 +173,8 @@ export default {
maxlength
:
20
}
],
courseAllocationData
:
[],
staffListData
:
[],
courseList
:
[],
staffTagCourseList
:
[],
//已配置的课程列表
selectObj
:
{
courseTotalDuration
:
0
,
...
...
@@ -179,9 +187,9 @@ export default {
type
:
Object
,
default
:
()
=>
{}
},
courseList
:
{
type
:
Array
,
default
:
()
=>
[]
aiJy
:
{
type
:
String
,
default
:
""
},
staffItem
:
{
type
:
Object
,
...
...
@@ -193,21 +201,29 @@ export default {
}
},
watch
:
{
courseList
:
{
handler
(
val
)
{
console
.
log
(
val
,
"val"
)
this
.
courseAllocationData
=
val
this
.
handleReset
()
},
deep
:
true
},
//
courseList: {
//
handler(val) {
//
console.log(val, "val")
//
this.courseAllocationData = val
//
this.handleReset()
//
},
//
deep: true
//
},
staffList
:
{
handler
(
val
)
{
console
.
log
(
val
,
"我是员工我是员工我是员工"
)
this
.
staffListData
=
val
.
map
((
record
)
=>
({
...
record
,
active
:
false
// 初始化为 false
}))
this
.
staffListData
=
val
.
map
((
record
)
=>
{
if
(
record
.
staffUUID
==
this
.
staffItem
.
staffUUID
)
{
return
{
...
record
,
active
:
true
}
}
else
{
return
{
...
record
,
active
:
false
}
}
})
},
deep
:
true
,
immediate
:
true
...
...
@@ -217,24 +233,52 @@ export default {
console
.
log
(
val
,
"我是员工详情"
)
if
(
val
.
courseConfigFlag
==
1
)
{
//查询员工已配置课程
this
.
getStaff
TagCourseList
()
this
.
getStaff
Course
()
//查询员工已配置详情
this
.
getByTaskId
()
}
else
{
this
.
handleReset
()
//获取配置课程列表
this
.
getStaffTagCourseList
()
}
},
deep
:
true
,
immediate
:
true
}
},
created
()
{},
methods
:
{
getStaffTagCourseList
(
courseForm
=
{})
{
console
.
log
(
this
.
staffItem
,
" this.staffItem"
)
let
params
=
{
staffPhone
:
this
.
staffItem
.
phone
,
currentPage
:
1
,
pageSize
:
99999
,
queryAll
:
false
,
...
courseForm
}
getStaffTagCourseList
(
params
).
then
((
res
)
=>
{
this
.
courseList
=
res
?
res
.
list
:
[]
})
},
//查询员工已配置课程
getStaffTagCourseList
()
{
getStaffCourse
()
{
this
.
selectObj
=
{
courseTotalDuration
:
0
,
count
:
0
}
staffCourse
({
taskId
:
this
.
staffItem
.
taskId
}).
then
((
res
)
=>
{
console
.
log
(
"获取到已配课"
,
res
)
this
.
staffTagCourseList
=
res
.
list
res
.
list
.
forEach
((
item
)
=>
{
this
.
selectObj
.
courseTotalDuration
=
parseFloat
(
(
this
.
selectObj
.
courseTotalDuration
+
item
.
courseTotalDuration
).
toFixed
(
2
)
)
this
.
selectObj
.
count
+=
1
})
})
},
//查询员工已配置详情
...
...
@@ -263,6 +307,9 @@ export default {
)
}
},
fromAllocation
(
courseForm
)
{
this
.
getStaffTagCourseList
(
courseForm
)
},
//重置
handleReset
()
{
this
.
extendConfig
=
{
...
...
src/views/serviceCentre/longCourse/components/echartBar.vue
View file @
ad5be5d
...
...
@@ -62,6 +62,15 @@ export default {
window
.
addEventListener
(
"resize"
,
this
.
resizeHandler
)
},
methods
:
{
resizeHandler
()
{
if
(
this
.
chart
)
{
this
.
chart
.
clear
()
setTimeout
(()
=>
{
this
.
chart
.
setOption
(
this
.
getChartSetOption
())
this
.
chart
.
resize
()
},
1000
)
}
},
getChartSetOption
()
{
var
options
=
{
tooltip
:
{
...
...
src/views/serviceCentre/longCourse/components/echartLine.vue
View file @
ad5be5d
...
...
@@ -28,6 +28,10 @@ export default {
type
:
String
,
default
:
""
},
title
:
{
type
:
String
,
default
:
""
},
rate
:
{
type
:
String
},
...
...
@@ -71,7 +75,7 @@ export default {
grid
:
{
bottom
:
"12%"
,
top
:
"10%"
,
left
:
"
15%
"
,
left
:
"
20px
"
,
right
:
"20px"
},
tooltip
:
{
...
...
@@ -90,6 +94,7 @@ export default {
fontSize
:
14
},
formatter
:
(
params
)
=>
{
console
.
log
(
params
)
let
rate
=
String
(
this
.
dataRate
[
params
[
0
].
dataIndex
][
this
.
rate
])
return
`
<div style="font-weight:bold;color:rgba(0, 0, 0, 0.65); line-height: 20px;">
${
...
...
@@ -99,7 +104,7 @@ export default {
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 style="margin-left:18px; line-height: 20px;">环比: <span style="color:
${
rate
.
indexOf
(
"-"
)
>
-
1
?
"#2CCA74"
:
"#EB4E4E"
...
...
src/views/serviceCentre/longCourse/components/indicatorInfo.vue
View file @
ad5be5d
...
...
@@ -20,7 +20,6 @@
</
template
>
<
script
type=
"text/ecmascript-6"
>
import
{
mapActions
,
mapState
}
from
"vuex"
import
{
findStoreInfoByMerchantNo
,
findStaffByMerchantNo
...
...
@@ -32,7 +31,6 @@ export default {
name
:
"indicatorInfo"
,
data
()
{
return
{
listOfPenaltiesShow
:
false
,
noDataImg
,
searchForm
:
{
scene
:
""
,
...
...
src/views/serviceCentre/longCourse/components/lastWeekReplay.vue
View file @
ad5be5d
...
...
@@ -2,7 +2,9 @@
<
template
>
<div
class=
"week-replay"
>
<div
class=
"header"
>
上周学习复盘
<span
class=
"time"
>
(2025-06-09 至 2025-06-15)
</span>
上周学习复盘
<span
class=
"time"
>
(
{{
longForm
.
startTime
}}
至
{{
longForm
.
endTime
}}
)
</span
>
</div>
<div
class=
"improve"
>
<div
...
...
src/views/serviceCentre/longCourse/components/learningSituation.vue
View file @
ad5be5d
...
...
@@ -18,7 +18,7 @@
</div>
</div>
</div>
<div
class=
"situation-content"
>
<div
class=
"situation-content"
v-if=
"!isHide"
>
<div
class=
"time-line"
>
<div
class=
"line-item"
...
...
@@ -48,7 +48,7 @@
{{
sitem
.
courseNum
}}
节|
{{
sitem
.
taskTime
}}
<template
v-if=
"sitem.countNameList"
>
<div
class=
"collapse"
@
click=
"handleCollapse(sIndex)"
>
{{
sitem
.
isCollapse
?
"
展开"
:
"收起
"
}}
{{
sitem
.
isCollapse
?
"
收起"
:
"展开
"
}}
</div>
</
template
>
</div>
...
...
@@ -87,6 +87,11 @@
</div>
</div>
</div>
<div
v-else
class=
"emptyBg"
>
<img
class=
"noDataImg"
src=
"@/assets/empty.png"
/>
<p>
暂无数据
</p>
</div>
</div>
</template>
<
script
>
...
...
@@ -95,6 +100,7 @@ export default {
data
()
{
return
{
learningInfo
:
{},
isHide
:
false
,
couseData
:
[
{
text
:
"长课程"
,
...
...
@@ -103,7 +109,8 @@ export default {
return
{
已改善
:
"greenSpot"
,
未改善
:
"redSpot"
,
进行中
:
"yellowSpot"
进行中
:
"yellowSpot"
,
未学习
:
"ashSpot"
}[
cellValue
.
longCourseTag
]
}
},
...
...
@@ -114,7 +121,8 @@ export default {
return
{
已改善
:
"greenSpot"
,
未改善
:
"redSpot"
,
进行中
:
"yellowSpot"
进行中
:
"yellowSpot"
,
未学习
:
"ashSpot"
}[
cellValue
.
shortCourseTag
]
}
}
...
...
@@ -184,6 +192,9 @@ export default {
isCollapse
:
false
// 初始化为 false
}))
}
this
.
isHide
=
false
}
else
{
this
.
isHide
=
true
}
},
deep
:
true
,
...
...
@@ -443,4 +454,18 @@ export default {
overflow
:
hidden
;
}
}
.emptyBg
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
padding
:
120px
0
;
.noDataImg
{
width
:
64px
;
height
:
40px
;
}
p
{
color
:
#999999
;
font-size
:
14px
;
}
}
</
style
>
src/views/serviceCentre/longCourse/components/longDetailDialog.vue
View file @
ad5be5d
...
...
@@ -63,6 +63,7 @@
>
环 {{ scope.scope.outputValueRate }}
</div>
<div
v-else
class=
"normal"
>
环 -
</div>
</div>
<div
slot=
"Conversion"
slot-scope=
"scope"
>
<div>
...
...
@@ -77,6 +78,7 @@
>
环 {{ scope.scope.conversionRate }}
</div>
<div
v-else
class=
"normal"
>
环 -
</div>
</div>
<div
slot=
"CustomerUnitPrice"
slot-scope=
"scope"
>
<div>
...
...
@@ -94,6 +96,7 @@
>
环 {{ scope.scope.customerUnitPriceRate }}
</div>
<div
v-else
class=
"normal"
>
环 -
</div>
</div>
</d2-table>
</div>
...
...
@@ -341,4 +344,7 @@ export default {
font-size
:
12px
;
color
:
#43cf7c
;
}
.normal
{
font-size
:
12px
;
}
</
style
>
src/views/serviceCentre/longCourse/components/multiple.vue
View file @
ad5be5d
...
...
@@ -17,7 +17,10 @@
:form-rules=
"infoRules"
>
<template
slot=
"multiple"
slot-scope=
"scope"
>
<el-checkbox
v-model=
"checkAll"
@
change=
"handleCheckAllChange"
<el-checkbox
v-model=
"checkAll"
@
change=
"handleCheckAllChange"
:disabled=
"disabled"
>
全选
</el-checkbox
>
<div
class=
"staff-list"
>
...
...
@@ -46,12 +49,15 @@ export default {
staffList
:
{
type
:
Array
,
default
:
()
=>
[]
},
staffItem
:
{
type
:
Object
,
default
:
()
=>
{}
}
},
watch
:
{
staffList
:
{
handler
(
val
)
{
console
.
log
(
val
,
"🚀🚀🚀🚀🚀🚀🚀🚀🚀"
)
this
.
filterStaffList
(
deepClone
(
val
))
},
deep
:
true
,
...
...
@@ -84,6 +90,7 @@ export default {
cancel_name
:
"取 消"
,
confirm_name
:
"确定配置"
},
disabled
:
false
,
checkAll
:
false
,
infoRules
:
{
refundType
:
[
...
...
@@ -111,8 +118,10 @@ export default {
this
.
selectStaffList
=
[]
},
handleChooseStaff
(
index
)
{
this
.
selectStaffList
[
index
].
active
=
!
this
.
selectStaffList
[
index
].
active
this
.
checkAll
=
this
.
selectStaffList
.
every
((
item
)
=>
item
.
active
)
if
(
this
.
staffItem
.
staffUUID
!==
this
.
selectStaffList
[
index
].
staffUUID
)
{
this
.
selectStaffList
[
index
].
active
=
!
this
.
selectStaffList
[
index
].
active
this
.
checkAll
=
this
.
selectStaffList
.
every
((
item
)
=>
item
.
active
)
}
},
filterStaffList
(
val
)
{
this
.
selectStaffList
=
[]
...
...
@@ -121,10 +130,23 @@ export default {
this
.
selectStaffList
.
push
(
item
)
}
})
this
.
checkAll
=
this
.
selectStaffList
.
every
((
item
)
=>
item
.
active
)
if
(
this
.
selectStaffList
.
length
==
1
&&
this
.
selectStaffList
[
0
].
staffUUID
==
this
.
staffItem
.
staffUUID
)
{
this
.
disabled
=
true
}
else
{
this
.
disabled
=
false
}
},
handleCheckAllChange
()
{
this
.
staffList
.
forEach
((
item
)
=>
{
item
.
active
=
this
.
checkAll
this
.
selectStaffList
.
forEach
((
item
)
=>
{
if
(
item
.
staffUUID
==
this
.
staffItem
.
staffUUID
)
{
item
.
active
=
true
}
else
{
item
.
active
=
this
.
checkAll
}
})
},
handleClose
()
{
...
...
src/views/serviceCentre/longCourse/components/staffDetail.vue
View file @
ad5be5d
...
...
@@ -13,13 +13,56 @@
v-if=
"item.className"
:class=
"[item.className(baseInfo)]"
></div>
{{
item
.
formatter
?
item
.
formatter
(
baseInfo
)
:
baseInfo
[
item
.
key
]
?
baseInfo
[
item
.
key
]
:
"-"
}}
<template
v-if=
"item.key == 'store'"
>
<template
v-if=
"
baseInfo[item.key] &&
baseInfo[item.key].split(',').length > 1
"
>
<span>
{{
baseInfo
[
item
.
key
].
split
(
","
).
slice
(
0
,
1
).
join
(
""
)
}}
</span>
<el-popover
placement=
"top"
width=
"fit-content"
trigger=
"hover"
>
<div
:class=
"
{
scrollHeight:
baseInfo[item.key].split(',').length >= 10
}"
>
<div
v-for=
"(item, index) in baseInfo[item.key].split(
','
)"
:key=
"index"
>
{{
item
}}
</div>
</div>
<span
class=
"more-info"
slot=
"reference"
>
...(
{{
baseInfo
[
item
.
key
].
split
(
","
).
length
}}
)
</span
>
</el-popover>
</
template
>
<
template
v-else
>
<span>
{{
baseInfo
[
item
.
key
]
?
baseInfo
[
item
.
key
]
:
"--"
}}
</span>
</
template
>
</template>
<
template
v-else
>
{{
item
.
formatter
?
item
.
formatter
(
baseInfo
)
:
baseInfo
[
item
.
key
]
?
baseInfo
[
item
.
key
]
:
"-"
}}
</
template
>
</el-form-item></el-col
>
</template>
...
...
@@ -63,21 +106,22 @@ import LearningSituation from "./learningSituation.vue"
import
PerformanceStatus
from
"./performanceStatus.vue"
import
{
course_businessOpt
}
from
"@/common/constants.js"
import
{
Util
,
deepClone
}
from
"@/common/util"
import
{
findStoreEmployeePerformance
}
from
"@/api/serviceCentre"
export
default
{
components
:
{
PerformanceStatus
,
LearningSituation
},
props
:
{
staff
DetailInfo
:
{
staff
Item
:
{
type
:
Object
,
default
:
()
=>
{}
}
},
watch
:
{
staff
DetailInfo
:
{
staff
Item
:
{
handler
(
val
)
{
this
.
initBaseData
(
val
)
this
.
findStoreEmployeePerformanceData
(
)
},
// immediate: true,
deep
:
true
...
...
@@ -86,6 +130,7 @@ export default {
data
()
{
return
{
businessOpt
:
deepClone
(
course_businessOpt
),
aiJy
:
""
,
baseInfo
:
{},
performanceInfo
:
[],
consultationAbility
:
{},
...
...
@@ -134,8 +179,19 @@ export default {
}
},
methods
:
{
//查询员工详情
findStoreEmployeePerformanceData
()
{
let
{
staffItem
,
queryData
}
=
this
findStoreEmployeePerformance
({
phone
:
staffItem
.
phone
,
scene
:
queryData
.
scene
}).
then
((
res
)
=>
{
this
.
initBaseData
(
res
)
})
},
initBaseData
(
val
)
{
this
.
baseInfo
=
val
.
baseInfo
this
.
baseInfo
=
val
.
baseInfo
?
val
.
baseInfo
:
{}
// this.aiJy = val.aiJy
this
.
consultationAbility
=
val
.
consultationAbility
val
.
learningProgress
.
courseRecords
.
forEach
((
item
)
=>
{
item
.
isCollapse
=
true
...
...
@@ -164,7 +220,6 @@ export default {
}
return
item
})
console
.
log
(
this
.
capacityList
)
}
}
}
...
...
src/views/serviceCentre/longCourse/components/storeIndicators.vue
View file @
ad5be5d
...
...
@@ -21,16 +21,20 @@
<div
class=
"value"
>
{{
item
.
metricValue
}}
</div>
<div
class=
"link"
>
环比
<span
v-if=
"item.linkRelativeRatio"
:class=
"[
item.linkRelativeRatio
.indexOf('-') > -1 ? 'dowm' : 'up'
String(item.linkRelativeRatio)
.indexOf('-') > -1 ? 'dowm' : 'up'
]"
>
{{
item
.
linkRelativeRatio
}}
</span
>
{{
item
.
linkRelativeRatio
||
"-"
}}
</span
>
<div
class=
"triangle-down"
v-if=
"item.linkRelativeRatio.indexOf('-') > -1"
></div>
<div
class=
"triangle-up"
v-else
></div>
<span
v-else
>
-
</span>
<template
v-if=
"item.linkRelativeRatio"
>
<div
class=
"triangle-down"
v-if=
"String(item.linkRelativeRatio).indexOf('-') > -1"
></div>
<div
class=
"triangle-up"
v-else
></div>
</
template
>
</div>
</template>
</div>
...
...
@@ -124,24 +128,21 @@ export default {
console
.
log
(
33333333333333333
)
let
params
=
{
...
this
.
longForm
// scene: 1,
// startTime: "2025-06-01",
// endTime: "2025-07-06"
}
findAllItem
(
params
)
.
then
((
res
)
=>
{
this
.
storeIndicatoerInfo
=
res
this
.
storeIndicatoerInfo
.
id
=
"-9999"
console
.
log
(
res
)
})
.
catch
((
err
)
=>
{
new
Error
(
err
)
})
},
handleDetail
(
row
)
{
console
.
log
(
1111
)
row
.
activeName
=
"storeInfo"
row
.
pageId
=
row
.
id
row
.
merchantNos
=
row
.
merchantNos
row
.
scene
=
this
.
longForm
.
scene
this
.
$emit
(
"openWindow"
,
row
)
}
},
...
...
@@ -188,9 +189,11 @@ export default {
font-size
:
14px
;
font-weight
:
400
;
span
{
color
:
#eb4e4e
;
margin
:
0
6px
;
}
span
.up
{
color
:
#eb4e4e
;
}
span
.dowm
{
color
:
#43cf7c
;
}
...
...
src/views/serviceCentre/longCourse/components/storeInfo.vue
View file @
ad5be5d
...
...
@@ -3,11 +3,12 @@
<div
class=
"d2-container-content"
>
<d2-table-header
title=
"门店列表"
>
</d2-table-header>
<d2-table
ref=
"
t
able"
:
get-list-api=
"getListApi
"
:search-form=
"searchForm
Search
"
ref=
"
storeT
able"
:
tableData=
"tableData
"
:search-form=
"searchForm"
:table-params=
"tableParams"
:before-search-fn=
"beforeSearchFn"
@
refreshTable=
"refreshTable"
@
pageChange=
"pageChange"
>
</d2-table>
</div>
...
...
@@ -15,13 +16,10 @@
</
template
>
<
script
type=
"text/ecmascript-6"
>
import
{
mapActions
,
mapState
}
from
'vuex'
import
{
refundApplyRecordPage
}
from
"@api/refundExamine"
import
{
Util
,
deepClone
}
from
"@/common/util"
import
{
studyPage
,
studyUpdate
}
from
"@api/contentManager"
findStoreInfoByMerchantNo
}
from
"@api/serviceCentre"
import
noDataImg
from
"@/assets/empty.png"
import
dayjs
from
"dayjs"
export
default
{
...
...
@@ -31,186 +29,131 @@ export default {
listOfPenaltiesShow
:
false
,
noDataImg
,
searchForm
:
{
bussinessScene
:
""
,
merchantId
:
""
,
scriptMatching
:
""
,
receptionist
:
""
,
solutionBrowsing
:
""
,
// searchdate: [new Date(), new Date()]
sendStartData
:
[],
finishStartData
:
[]
scene
:
""
,
merchantNos
:
[]
},
tableData
:[],
baseData
:
{
directOperateOpt
:
[
{
confId
:
0
,
confValue
:
"非直营"
},
{
confId
:
1
,
confValue
:
"直营"
}
]
},
searchFormSearch
:
{},
currentItem
:
{},
getListApi
:
studyPage
,
// 表格参数
tableParams
:
{
listName
:
"list"
,
tableOption
:
{
width
:
"100"
},
tableColumns
:
[
{
label
:
"门店名称"
,
prop
:
"
titl
e"
prop
:
"
storeNam
e"
},
{
label
:
"商户号"
,
prop
:
"
staffName
"
prop
:
"
merchantNo
"
// minWidth: 144,
},
{
label
:
"是否直营"
,
prop
:
"staffPhone"
formatter
:
(
cellValue
)
=>
{
return
this
.
baseData
.
directOperateOpt
.
find
(
(
item
)
=>
item
.
confId
===
cellValue
.
isDirectOperated
)?.
confValue
}
},
{
label
:
"展业时间"
,
prop
:
"createdDate"
,
// minWidth: 140
// formatter: (cellValue) => {
// return cellValue.sendStartTime
// ? Util.dateFormate(cellValue.sendStartTime, "YYYY-MM-DD HH:mm:ss")
// : "-"
// }
prop
:
"businessDevDate"
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
businessDevDate
?
Util
.
dateFormate
(
cellValue
.
businessDevDate
,
"YYYY-MM-DD"
)
:
""
}
},
{
label
:
"归属业务"
,
addHtml
:
'taskStatus'
formatter
:
()
=>
{
return
[
"延保"
,
"权益"
,
"轻改"
][
this
.
queryData
.
scene
-
1
]
}
},
{
label
:
"主营品牌"
,
prop
:
"finishDate"
,
// minWidth: 140
// formatter: (cellValue) => {
// return cellValue.finishEndTime
// ? Util.dateFormate(cellValue.finishEndTime, "YYYY-MM-DD HH:mm:ss")
// : "-"
// }
prop
:
"mainBrand"
},
{
label
:
"区域运营经理"
,
prop
:
"
finishDate
"
,
prop
:
"
regionalManager
"
,
},
{
label
:
"驻店人数"
,
prop
:
"
finishDate
"
,
prop
:
"
staffCount
"
,
},
{
label
:
"已配课程人数"
,
prop
:
"
finishDate
"
,
prop
:
"
courseConfiguredCount
"
,
}
]
},
detailInfo
:
{}
}
}
},
props
:
{
queryData
:
{
type
:
Object
,
default
:
()
=>
{}
}
},
computed
:
{
...
mapState
({
dowloadList
:
(
state
)
=>
state
.
d2admin
.
user
.
dowloadList
})
watch
:
{
queryData
:
{
handler
(
val
)
{
// this.findStoreInfoByMerchantNoData()
},
deep
:
true
,
immediate
:
true
}
},
created
()
{
},
mounted
()
{
// this.getServiceStore()
// this.getStudyPage()
this
.
findStoreInfoByMerchantNoData
()
},
methods
:
{
...
mapActions
(
'd2admin/user'
,
[
'actionSetDownloadList'
]),
// 详情
handleDetail
(
row
)
{
this
.
listOfPenaltiesShow
=
true
this
.
detailInfo
=
row
},
beforeSearchFn
(
type
=
1
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
searchFormSearch
=
deepClone
(
this
.
searchForm
)
if
(
this
.
searchForm
?.
sendStartData
?.
length
)
{
let
[
searchStartDate
,
searchEndDate
]
=
this
.
searchForm
.
sendStartData
this
.
searchFormSearch
.
sendStartTime
=
Util
.
dateFormate
(
searchStartDate
,
"YYYY-MM-DD HH:mm:ss"
)
this
.
searchFormSearch
.
sendEndTime
=
Util
.
dateFormate
(
searchEndDate
,
"YYYY-MM-DD"
)
+
" 23:59:59"
}
if
(
this
.
searchForm
?.
finishStartData
?.
length
)
{
let
[
searchStartDate
,
searchEndDate
]
=
this
.
searchForm
.
finishStartData
this
.
searchFormSearch
.
finishStartTime
=
Util
.
dateFormate
(
searchStartDate
,
"YYYY-MM-DD HH:mm:ss"
)
this
.
searchFormSearch
.
finishEndTime
=
Util
.
dateFormate
(
searchEndDate
,
"YYYY-MM-DD"
)
+
" 23:59:59"
}
delete
this
.
searchFormSearch
.
sendStartData
delete
this
.
searchFormSearch
.
finishStartData
resolve
()
methods
:
{
findStoreInfoByMerchantNoData
()
{
console
.
log
(
this
.
queryData
,
"queryData"
)
this
.
searchForm
=
{
...
this
.
$refs
.
storeTable
.
page
}
this
.
searchForm
.
scene
=
this
.
queryData
.
scene
this
.
searchForm
.
merchantNos
=
this
.
queryData
.
merchantNos
?
this
.
queryData
.
merchantNos
:
[]
findStoreInfoByMerchantNo
(
this
.
searchForm
).
then
((
res
)
=>
{
this
.
tableData
=
res
})
},
handleSearch
()
{
this
.
page
=
this
.
$options
.
data
.
call
(
this
).
page
this
.
$refs
.
table
.
refreshTable
(
true
,
true
)
// this.getStudyPage()
refreshTable
()
{
this
.
findStoreInfoByMerchantNoData
()
},
handleReset
(
)
{
this
.
searchForm
=
this
.
$options
.
data
.
call
(
this
).
searchForm
this
.
handleSearch
()
pageChange
(
page
)
{
object
.
assign
(
this
.
searchForm
,
page
)
this
.
refreshTable
()
},
async
exportTable
()
{
await
this
.
beforeSearchFn
()
// console.log(params)
let
params
=
this
.
searchFormSearch
params
.
method
=
'dj.api.smartcarlife.study.punish.list.export'
const
list
=
[
...
this
.
dowloadList
,
{
name
:
'处罚名单'
,
exportParam
:
JSON
.
stringify
(
params
),
status
:
'waiting'
,
timeid
:
new
Date
().
getTime
()
}
]
this
.
actionSetDownloadList
({
list
,
type
:
'dowloadList'
})
// try {
// await this.beforeSearchFn()
// const res = await studyExport({
// ...this.searchFormSearch
// })
// console.log(res)
// if (res) window.open(res)
// } catch (error) {
// if (error) this.$message.error(error)
// }
//获取门店下的员工
getStaffInfoData
(
merchantNos
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
findStaffByMerchantNo
({
merchantNos
,
scene
:
this
.
queryData
.
scene
}).
then
((
res
)
=>
{
console
.
log
(
res
)
resolve
(
res
)
})
})
},
// getServiceStore() {
// listShop4sByRef({}).then((res) => {
// res ||= []
// this.showFormData.forEach((item, index) => {
// if (item.type === "select" && item.name == "merchantId") {
// this.$set(this.showFormData[index], "optionList", [
// {
// merchantName: "全部",
// merchantId: ""
// },
// ...res
// ])
// }
// })
// })
// },
// async getStudyPage() {
// try {
// await this.beforeSearchFn()
// const res = await studyPage({
// ...this.searchFormSearch
// })
// console.log(res)
// this.staticData = res || {}
// } catch (error) {
// if (error) this.$message.error(error)
// }
// },
}
}
</
script
>
...
...
src/views/serviceCentre/longCourse/courseList.vue
View file @
ad5be5d
...
...
@@ -250,9 +250,7 @@ export default {
width
:
"150"
,
formatter
:
(
cellValue
)
=>
{
return
(
(
cellValue
.
courseFinishCount
?
cellValue
.
courseFinishCount
:
"-"
)
+
(
cellValue
.
courseCount
?
cellValue
.
courseCount
:
"-"
)
+
" | "
+
(
cellValue
.
courseDuration
?
cellValue
.
courseDuration
:
"-"
)
)
...
...
src/views/serviceCentre/longCourse/longCourseCenter.vue
View file @
ad5be5d
...
...
@@ -127,7 +127,7 @@ export default {
const
windowList
=
[...
this
.
tab
,
...
this
.
dropdownList
]
const
windowItem
=
windowList
.
find
((
e
)
=>
e
.
id
==
id
)
let
component
=
data
.
activeName
,
title
=
data
.
metricName
+
data
.
itemBrand
||
'
-
'
title
=
data
.
metricName
+
data
.
itemBrand
||
'
门店详情
'
if
(
data
.
componentName
)
component
=
data
.
componentName
if
(
windowItem
)
{
this
.
$refs
[
`page-
${
id
}
`
]?.[
0
]?.
setActiveName
&&
this
.
$refs
[
`page-
${
id
}
`
]?.[
0
]?.
setActiveName
(
data
)
...
...
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