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 304f8f73
authored
Jul 18, 2024
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
AI对练 评测报告
1 parent
c2d1720f
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
716 additions
and
3 deletions
src/views/residentManage/exercise/components/chartOption.js
src/views/residentManage/exercise/components/dialogResult.vue
src/views/residentManage/exercise/components/evaluatingReport.vue
src/views/residentManage/exercise/components/fluency.vue
src/views/residentManage/exercise/components/phonetic.vue
src/views/residentManage/exercise/components/proficiency.vue
src/views/residentManage/exercise/components/saleSkills.vue
src/views/residentManage/exercise/components/serviceAttitude.vue
src/views/residentManage/exercise/detail.vue
src/views/residentManage/exercise/components/chartOption.js
0 → 100644
View file @
304f8f7
const
radarChartOption
=
{
tooltip
:
{},
radar
:
{
// 初始指示器
indicator
:
[
{
name
:
'销售技巧'
,
max
:
100
,
score
:
70
},
{
name
:
'流利度'
,
max
:
100
,
score
:
90
},
{
name
:
'语音表达'
,
max
:
100
,
score
:
75
},
{
name
:
'熟练度'
,
max
:
100
,
score
:
80
},
// { name: '服务态度', max: 100, score: 100}
],
name
:
{
rich
:
{
star
:
{
fontSize
:
16
,
color
:
'#FFD700'
,
// 金色
},
},
textStyle
:
{
color
:
'#333'
,
}
},
shape
:
'polygon'
,
axisLine
:
{
show
:
false
},
splitLine
:
{
lineStyle
:
{
color
:
'#EDEDED'
}
},
splitArea
:
{
areaStyle
:
{
color
:
[
'#fff'
,
'#fff'
,
'#fff'
,
'#fff'
,
'#fff'
]
}
},
},
series
:
[{
type
:
'radar'
,
// 数据
data
:
[
{
value
:
[
50
,
60
,
70
,
20
,
60
],
name
:
'雷达图'
,
symbol
:
'none'
,
lineStyle
:
{
color
:
"#3F64B0"
,
width
:
1
,
},
areaStyle
:
{
color
:
"#496CB5"
,
opacity
:
0.2
},
blur
:
{
lineStyle
:
{
color
:
"#3F64B0"
,
width
:
1
,
}
}
}
]
}]
}
const
wordCloudOption
=
{
tooltip
:
{},
series
:
[
{
type
:
'wordCloud'
,
shape
:
'circle'
,
left
:
'center'
,
top
:
'center'
,
width
:
'100%'
,
height
:
'100%'
,
right
:
null
,
bottom
:
null
,
sizeRange
:
[
12
,
50
],
rotationRange
:
[
-
90
,
90
],
rotationStep
:
45
,
gridSize
:
8
,
drawOutOfBound
:
false
,
textStyle
:
{
fontFamily
:
'sans-serif'
,
fontWeight
:
'bold'
,
color
:
function
()
{
return
(
'rgb('
+
Math
.
round
(
Math
.
random
()
*
160
)
+
', '
+
Math
.
round
(
Math
.
random
()
*
160
)
+
', '
+
Math
.
round
(
Math
.
random
()
*
160
)
+
')'
);
},
},
emphasis
:
{
textStyle
:
{
shadowBlur
:
10
,
shadowColor
:
'#333'
,
},
},
data
:
[
{
name
:
'对话总结'
,
value
:
10000
},
{
name
:
'清晰度'
,
value
:
6181
},
{
name
:
'语速'
,
value
:
4386
},
{
name
:
'活泼'
,
value
:
4055
},
{
name
:
'敏感词'
,
value
:
2467
},
{
name
:
'服务态度'
,
value
:
2244
},
{
name
:
'冗余词'
,
value
:
1898
},
{
name
:
'熟练度'
,
value
:
1484
},
{
name
:
'销售技巧'
,
value
:
1112
},
],
},
]
}
const
waveChartOption
=
{
title
:
{
text
:
'语速变化曲线'
,
left
:
'left'
,
textStyle
:
{
color
:
'#333333'
,
fontSize
:
14
}
},
grid
:
{
left
:
20
,
right
:
20
,
bottom
:
20
},
legend
:
{
data
:
[
'目标范围'
],
right
:
'right'
,
top
:
'top'
,
},
xAxis
:
{
type
:
'category'
,
boundaryGap
:
false
,
data
:
[
'0:00'
,
'0:20'
,
'0:40'
,
'1:00'
,
'1:20'
,
'1:40'
,
'2:00'
],
nameTextStyle
:
{
color
:
'#999EA8'
,
},
axisTick
:
{
show
:
false
,
// 隐藏x轴刻度
},
axisLine
:
{
lineStyle
:
{
color
:
'#999EA8'
}
}
},
yAxis
:
{
type
:
'value'
,
show
:
false
,
// 隐藏y轴
min
:
0
,
max
:
1
,
splitLine
:
{
show
:
true
,
interval
:
0.2
,
lineStyle
:
{
type
:
'dashed'
,
color
:
'#E5E5EF'
}
},
splitArea
:
{
show
:
true
,
}
},
series
:
[
{
name
:
'目标范围'
,
type
:
'line'
,
data
:
[
0.5
,
0.5
,
0.5
,
0.5
,
0.5
,
0.5
,
0.5
],
// 设置目标范围的y轴数据,这里假设为0.5
lineStyle
:
{
color
:
'#3275FA'
,
opacity
:
0.1
,
width
:
64
,
// 设置目标范围的宽度
},
symbol
:
'none'
,
// 隐藏数据点
smooth
:
true
,
// 使线条平滑
},
{
name
:
'语速'
,
type
:
'line'
,
data
:
[
0.2
,
0.8
,
0.9
,
0.3
,
0.1
,
0.6
,
0.3
],
// 设置语速数据的y轴数据
symbol
:
'none'
,
// 隐藏数据点
smooth
:
true
,
// 使线条平滑
lineStyle
:
{
color
:
'#496CB5'
,
width
:
2
,
},
},
]
}
const
pieChartOption
=
{
title
:
{
text
:
'冗余词统计'
,
left
:
'left'
,
textStyle
:
{
color
:
'#333333'
,
fontSize
:
14
}
},
tooltip
:
{
trigger
:
'item'
},
legend
:
{
orient
:
'vertical'
,
top
:
'middle'
,
right
:
120
,
formatter
:
function
(
name
)
{
const
data
=
pieChartOption
.
series
[
0
].
data
;
let
value
=
0
;
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
if
(
data
[
i
].
name
===
name
)
{
value
=
data
[
i
].
value
;
}
}
return
`
${
name
}
\u2003\u2003\u2003\u2003
${
value
}
`
;
}
},
graphic
:
{
type
:
'text'
,
left
:
'center'
,
top
:
'center'
,
style
:
{
text
:
'冗余词'
,
textAlign
:
'center'
,
fill
:
'#292D33'
,
fontSize
:
14
,
}
},
series
:
[
{
name
:
'冗余词'
,
type
:
'pie'
,
radius
:
[
'50%'
,
'70%'
],
avoidLabelOverlap
:
false
,
itemStyle
:
{
borderColor
:
'#fff'
,
borderWidth
:
2
},
label
:
{
show
:
true
,
position
:
'inside'
,
formatter
:
'{c}'
,
color
:
'#fff'
,
rich
:
{
align
:
'center'
,
verticalAlign
:
'middle'
,
fontSize
:
12
,
}
},
labelLine
:
{
show
:
false
},
data
:
[
{
value
:
6
,
name
:
'额'
},
{
value
:
4
,
name
:
'啊'
},
{
value
:
3
,
name
:
'嗯'
},
{
value
:
1
,
name
:
'呀'
},
{
value
:
1
,
name
:
'呢'
},
{
value
:
1
,
name
:
'呃'
},
]
}
]
}
export
default
{
radarChartOption
:
radarChartOption
,
wordCloudOption
:
wordCloudOption
,
waveChartOption
:
waveChartOption
,
pieChartOption
:
pieChartOption
}
\ No newline at end of file
\ No newline at end of file
src/views/residentManage/exercise/components/dialogResult.vue
View file @
304f8f7
...
@@ -9,6 +9,9 @@
...
@@ -9,6 +9,9 @@
@
confirmDialog=
"handleClose"
>
@
confirmDialog=
"handleClose"
>
<div>
<div>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleReset"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleReset"
>
<el-tab-pane
label=
"评测报告"
name=
"evaluating"
>
<evaluating-report
v-if=
"activeName == 'evaluating'"
v-bind=
"$attrs"
ref=
"evaluatingReport"
/>
</el-tab-pane>
<el-tab-pane
label=
"质检分析"
name=
"analyse"
>
<el-tab-pane
label=
"质检分析"
name=
"analyse"
>
<quality-analyse
v-if=
"activeName == 'analyse'"
v-bind=
"$attrs"
ref=
"analyseList"
/>
<quality-analyse
v-if=
"activeName == 'analyse'"
v-bind=
"$attrs"
ref=
"analyseList"
/>
</el-tab-pane>
</el-tab-pane>
...
@@ -28,15 +31,17 @@ import { Util } from "@/common/util"
...
@@ -28,15 +31,17 @@ import { Util } from "@/common/util"
import
{
shopmallOrderList
}
from
"@api/order"
import
{
shopmallOrderList
}
from
"@api/order"
import
QualityAnalyse
from
"./qualityInspectionAnalyse"
import
QualityAnalyse
from
"./qualityInspectionAnalyse"
import
DialogueDetail
from
"./pairDetail"
import
DialogueDetail
from
"./pairDetail"
import
evaluatingReport
from
"./evaluatingReport"
export
default
{
export
default
{
name
:
"DialogResult"
,
name
:
"DialogResult"
,
components
:
{
components
:
{
QualityAnalyse
,
QualityAnalyse
,
DialogueDetail
DialogueDetail
,
evaluatingReport
},
},
data
()
{
data
()
{
return
{
return
{
activeName
:
"
analyse
"
,
activeName
:
"
evaluating
"
,
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
countObj
:
{},
countObj
:
{},
searchForm
:
{
searchForm
:
{
...
...
src/views/residentManage/exercise/components/evaluatingReport.vue
0 → 100644
View file @
304f8f7
<
template
>
<div
class=
"evaluating-report"
>
<div
class=
"overview"
>
<div
class=
"radar-chart"
id=
"radar-chart"
></div>
<div
class=
"static"
>
<div
class=
"static-item"
>
<div
class=
"title"
>
总得分
</div>
<div
class=
"num"
>
78
<span
class=
"nomal-num"
>
/100
</span></div>
<div
class=
"tips"
>
90%的使用者总得在75-85之间
</div>
</div>
<div
class=
"static-item"
>
<div
class=
"title"
>
练习时长
</div>
<div
class=
"num"
>
2
<span
class=
"nomal-num"
>
分
</span>
30
<span
class=
"nomal-num"
>
秒
</span></div>
<div
class=
"tips"
>
80%的使用者在1分30秒-3分10秒之间
</div>
</div>
</div>
<div
class=
"word-cloud"
id=
"word-cloud"
></div>
</div>
<div
class=
"tabs-content"
>
<el-tabs
v-model=
"activeName"
type=
"card"
>
<el-tab-pane
label=
"销售技巧"
name=
"saleSkills"
>
</el-tab-pane>
<el-tab-pane
label=
"流利度"
name=
"fluency"
>
</el-tab-pane>
<el-tab-pane
label=
"语音表达"
name=
"phonetic"
>
</el-tab-pane>
<el-tab-pane
label=
"熟练度"
name=
"proficiency"
>
</el-tab-pane>
<el-tab-pane
label=
"服务态度"
name=
"serviceAttitude"
>
</el-tab-pane>
</el-tabs>
<div
class=
"content-box"
>
<sale-skills
v-if=
"activeName === 'saleSkills'"
></sale-skills>
<fluency
v-if=
"activeName === 'fluency'"
></fluency>
<phonetic
v-if=
"activeName === 'phonetic'"
></phonetic>
<proficiency
v-if=
"activeName === 'proficiency'"
></proficiency>
<service-attitude
v-if=
"activeName === 'serviceAttitude'"
></service-attitude>
</div>
</div>
</div>
</
template
>
<
script
>
import
saleSkills
from
'./saleSkills.vue'
import
fluency
from
'./fluency.vue'
import
phonetic
from
'./phonetic.vue'
import
proficiency
from
'./proficiency.vue'
import
serviceAttitude
from
'./serviceAttitude.vue'
import
*
as
echarts
from
'echarts'
import
chartOption
from
'./chartOption'
// import 'echarts-wordcloud'
export
default
{
name
:
'EvaluatingReport'
,
components
:
{
saleSkills
,
fluency
,
phonetic
,
proficiency
,
serviceAttitude
},
data
()
{
return
{
activeName
:
'saleSkills'
,
wordCloudOption
:
chartOption
.
wordCloudOption
,
radarChartOption
:
chartOption
.
radarChartOption
}
},
mounted
()
{
this
.
initChart
()
},
methods
:
{
initChart
()
{
// 初始化雷达图
this
.
radarChart
=
echarts
.
init
(
document
.
getElementById
(
'radar-chart'
))
this
.
drawRadarChart
()
// 初始化词云图
// this.wordCloudChart = echarts.init(document.getElementById('word-cloud'))
// this.drawWordCloud()
},
drawRadarChart
()
{
console
.
log
(
this
.
radarChartOption
)
const
createStarRating
=
(
rating
)
=>
{
const
fullStars
=
Math
.
floor
(
rating
/
20
)
const
halfStar
=
rating
%
1
===
0.5
const
emptyStars
=
5
-
fullStars
-
(
halfStar
?
1
:
0
)
let
stars
=
''
for
(
let
i
=
0
;
i
<
fullStars
;
i
++
)
{
stars
+=
'★'
}
if
(
halfStar
)
{
stars
+=
'⯨'
// 使用半星字符
}
for
(
let
i
=
0
;
i
<
emptyStars
;
i
++
)
{
stars
+=
'☆'
}
return
stars
}
this
.
radarChartOption
.
radar
.
indicator
?.
map
(
v
=>
{
v
.
name
=
`
${
v
.
name
}
\n{star|
${
createStarRating
(
v
.
score
)}
}`
})
this
.
radarChart
.
setOption
(
this
.
radarChartOption
)
},
drawWordCloud
()
{
this
.
wordCloudChart
.
setOption
(
this
.
wordCloudOption
)
},
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.evaluating-report
{
padding
:
20px
;
background
:
#F7F9FA
;
.overview{
height
:
264px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
.radar-chart{
flex
:
1
;
margin-right
:
16px
;
box-sizing
:
border-box
;
height
:
100%
;
background
:
#FFFFFF
;
border-radius
:
4px
;
padding
:
16px
;
}
.static
{
flex
:
1
;
margin-right
:
16px
;
color
:
#333333
;
.static-item{
box-sizing
:
border-box
;
padding
:
16px
20px
;
height
:
124px
;
background
:
#FFFFFF
;
border-radius
:
4px
;
margin-bottom
:
16px
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
space-between
;
&:last-child{
margin-bottom
:
0
;
}
.title
{
font-size
:
14px
;
}
.num
{
font-size
:
26px
;
font-weight
:
700
;
.nomal-num{
font-size
:
12px
;
font-weight
:
400
;
}
}
}
}
.word-cloud
{
flex
:
1
;
height
:
100%
;
background
:
#FFFFFF
;
border-radius
:
4px
;
}
}
.tabs-content
{
margin-top
:
16px
;
::v-deep.el-tabs__header{
margin
:
0
;
}
.content-box
{
background
:
#FFFFFF
;
padding
:
20px
;
}
}
}
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/residentManage/exercise/components/fluency.vue
0 → 100644
View file @
304f8f7
<!-- 流利度 -->
<
template
>
<div>
<div
class=
"box"
>
<div
class=
"box-item"
>
<div
class=
"left"
>
<div
class=
"title"
>
语速
</div>
<div
class=
"value"
>
流畅
</div>
</div>
<div
class=
"line"
></div>
<div
class=
"content-text"
>
您的平均语速在150字/分钟,非常棒!这样能让听众更好的理解和接收你所传达的信息。
</div>
</div>
<div
class=
"box-item"
>
<div
class=
"left"
>
<div
class=
"title"
>
冗余词
</div>
<div
class=
"value"
>
{{
6
}}
个
</div>
</div>
<div
class=
"line"
></div>
<div
class=
"content-text"
>
冗余词过多,可能会引起误解或者不必要的误会。
</div>
</div>
</div>
<div
class=
"chart-box"
>
<div
class=
"wave-chart"
id=
"wave-chart"
></div>
<div
class=
"pie-chart"
id=
"pie-chart"
></div>
</div>
</div>
</
template
>
<
script
>
import
chartOption
from
'./chartOption'
import
*
as
echarts
from
'echarts'
export
default
{
name
:
'fluency'
,
data
()
{
return
{
waveChartOption
:
chartOption
.
waveChartOption
,
pieChartOption
:
chartOption
.
pieChartOption
}
},
mounted
()
{
this
.
initWaveChart
()
this
.
initPieChart
()
},
methods
:
{
initWaveChart
()
{
const
waveChart
=
echarts
.
init
(
document
.
getElementById
(
'wave-chart'
))
waveChart
.
setOption
(
this
.
waveChartOption
)
},
initPieChart
()
{
const
pieChart
=
echarts
.
init
(
document
.
getElementById
(
'pie-chart'
))
pieChart
.
setOption
(
this
.
pieChartOption
)
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.box
{
display
:
flex
;
.box-item{
flex
:
1
;
box-sizing
:
border-box
;
height
:
92px
;
padding
:
16px
20px
;
margin-right
:
16px
;
display
:
flex
;
align-items
:
center
;
color
:
#333333
;
background
:
#FBFBFB
;
border-radius
:
4px
;
&:last-child{
margin
:
0
;
}
.left
{
flex
:
1
;
.title{
font-weight
:
14px
;
margin-bottom
:
8px
;
}
.value
{
font-weight
:
700
;
font-size
:
22px
;
}
}
.line
{
width
:
1px
;
height
:
44px
;
background
:
#E5E5E5
;
margin
:
0
32px
;
}
.content-text
{
color
:
#999EA8
;
font-size
:
12px
;
}
}
}
.chart-box
{
height
:
216px
;
display
:
flex
;
margin-top
:
12px
;
.wave-chart{
box-sizing
:
border-box
;
height
:
100%
;
flex
:
1
;
margin-right
:
16px
;
padding
:
8px
16px
;
}
.pie-chart
{
height
:
100%
;
flex
:
1
;
}
}
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/residentManage/exercise/components/phonetic.vue
0 → 100644
View file @
304f8f7
<!-- 语音表达 -->
<
template
>
<div>
<div
class=
"box"
>
<div
class=
"box-item"
>
<div
class=
"left"
>
<div
class=
"title"
>
清晰度
</div>
<div
class=
"value"
>
清晰
</div>
</div>
<div
class=
"line"
></div>
<div
class=
"content-text"
>
非常棒!发音清晰度高,听众能够准确明白您的意思!
</div>
</div>
<div
class=
"box-item"
>
<div
class=
"left"
>
<div
class=
"title"
>
语调
</div>
<div
class=
"value"
>
平淡
</div>
</div>
<div
class=
"line"
></div>
<div
class=
"content-text"
>
语调平平,缺乏一些感染力。
</div>
</div>
</div>
<div
class=
"chart-box"
>
<div
class=
"wave-chart"
id=
"wave-chart-1"
></div>
<div
class=
"wave-chart"
id=
"wave-chart-2"
></div>
</div>
</div>
</
template
>
<
script
>
import
chartOption
from
'./chartOption'
import
*
as
echarts
from
'echarts'
export
default
{
name
:
'fluency'
,
data
()
{
return
{
waveChartOption
:
chartOption
.
waveChartOption
}
},
mounted
()
{
this
.
initWaveChart
()
},
methods
:
{
initWaveChart
()
{
const
waveChart1
=
echarts
.
init
(
document
.
getElementById
(
'wave-chart'
))
waveChart1
.
setOption
(
this
.
waveChartOption
)
const
waveChart2
=
echarts
.
init
(
document
.
getElementById
(
'wave-chart-2'
))
waveChart2
.
setOption
(
this
.
waveChartOption
)
},
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.box
{
display
:
flex
;
.box-item{
flex
:
1
;
box-sizing
:
border-box
;
height
:
92px
;
padding
:
16px
20px
;
margin-right
:
16px
;
display
:
flex
;
align-items
:
center
;
color
:
#333333
;
background
:
#FBFBFB
;
border-radius
:
4px
;
&:last-child{
margin
:
0
;
}
.left
{
.title{
font-weight
:
14px
;
margin-bottom
:
8px
;
}
.value
{
font-weight
:
700
;
font-size
:
22px
;
}
}
.line
{
width
:
1px
;
height
:
44px
;
background
:
#E5E5E5
;
margin
:
0
32px
;
}
.content-text
{
color
:
#999EA8
;
font-size
:
12px
;
}
}
}
.chart-box
{
height
:
216px
;
display
:
flex
;
margin-top
:
12px
;
.wave-chart{
box-sizing
:
border-box
;
height
:
100%
;
flex
:
1
;
margin-right
:
16px
;
padding
:
8px
16px
;
&:last-child{
margin
:
0
;
}
}
}
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/residentManage/exercise/components/proficiency.vue
0 → 100644
View file @
304f8f7
<!-- 熟练度 -->
<
template
>
</
template
>
<
script
>
export
default
{
name
:
'proficiency'
,
data
()
{
return
{
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/residentManage/exercise/components/saleSkills.vue
0 → 100644
View file @
304f8f7
<!-- 销售技巧 -->
<
template
>
</
template
>
<
script
>
export
default
{
name
:
'saleSkills'
,
data
()
{
return
{
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/residentManage/exercise/components/serviceAttitude.vue
0 → 100644
View file @
304f8f7
<!-- 服务态度 -->
<
template
>
</
template
>
<
script
>
export
default
{
name
:
'serviceAttitude'
,
data
()
{
return
{
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/residentManage/exercise/detail.vue
View file @
304f8f7
...
@@ -117,7 +117,7 @@ export default {
...
@@ -117,7 +117,7 @@ export default {
prop
:
"completionTime"
prop
:
"completionTime"
}]
}]
},
},
isQualityVisible
:
fals
e
,
isQualityVisible
:
tru
e
,
detailObj
:
{},
detailObj
:
{},
taskInfo
:
{}
taskInfo
:
{}
}
}
...
...
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