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 7cc91e35
authored
Jul 24, 2024
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V4.42' of
http://192.168.3.233:8090/saas_plus/dj-car-life-system
into SAAS+V4.42
2 parents
9b737c04
05111706
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
190 additions
and
97 deletions
src/views/residentManage/exercise/components/chartOption.js
src/views/residentManage/exercise/components/contantData.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/serviceAttitude.vue
src/views/residentManage/exercise/detail.vue
src/views/residentManage/exercise/exerciseRecord.vue
src/views/residentManage/exercise/index.vue
src/views/residentManage/exercise/components/chartOption.js
View file @
7cc91e3
...
...
@@ -106,13 +106,17 @@ const waveChartOption = {
left
:
'left'
,
textStyle
:
{
color
:
'#333333'
,
fontSize
:
14
}
fontSize
:
14
,
height
:
20
,
fontWeight
:
400
},
padding
:
[
0
,
0
,
0
,
15
]
},
grid
:
{
left
:
20
,
right
:
20
,
bottom
:
20
bottom
:
20
,
top
:
40
},
legend
:
{
data
:
[
'目标范围'
],
...
...
@@ -140,15 +144,6 @@ const waveChartOption = {
data
:
[],
axisLabel
:
{
color
:
'#999EA8'
,
showMinLabel
:
true
,
showMaxLabel
:
true
,
formatter
:
function
(
value
,
index
)
{
if
(
index
==
0
||
index
==
data
.
length
-
1
)
{
return
value
}
else
{
return
''
}
}
},
axisTick
:
{
show
:
false
,
// 隐藏x轴刻度
...
...
@@ -166,13 +161,15 @@ const waveChartOption = {
axisLine
:
{
show
:
false
},
min
:
0
,
// min: 0,
axisTick
:
{
show
:
false
},
axisLabel
:
{
show
:
false
},
splitLine
:
{
show
:
true
,
interval
:
1
,
lineStyle
:
{
type
:
'dashed'
,
color
:
'#E5E5EF'
,
...
...
@@ -284,13 +281,17 @@ const waveChartOption1 = {
left
:
'left'
,
textStyle
:
{
color
:
'#333333'
,
fontSize
:
14
}
fontSize
:
14
,
height
:
20
,
fontWeight
:
400
},
padding
:
[
0
,
0
,
0
,
15
]
},
grid
:
{
left
:
20
,
right
:
20
,
bottom
:
20
bottom
:
20
,
top
:
40
},
legend
:
{
data
:
[
'目标范围'
],
...
...
@@ -318,15 +319,6 @@ const waveChartOption1 = {
data
:
[],
axisLabel
:
{
color
:
'#999EA8'
,
showMinLabel
:
true
,
showMaxLabel
:
true
,
formatter
:
function
(
value
,
index
)
{
if
(
index
==
0
||
index
==
data
.
length
-
1
)
{
return
value
}
else
{
return
''
}
}
},
axisTick
:
{
show
:
false
,
// 隐藏x轴刻度
...
...
@@ -344,12 +336,15 @@ const waveChartOption1 = {
axisLine
:
{
show
:
false
},
// min: 0,
axisTick
:
{
show
:
false
},
axisLabel
:
{
show
:
false
},
splitLine
:
{
show
:
true
,
interval
:
1
,
lineStyle
:
{
type
:
'dashed'
,
color
:
'#E5E5EF'
,
...
...
@@ -361,7 +356,7 @@ const waveChartOption1 = {
{
name
:
'清晰度'
,
type
:
'line'
,
data
:
[],
data
:
[],
// 设置清晰度数据的y轴数据
symbol
:
'none'
,
// 隐藏数据点
smooth
:
true
,
// 使线条平滑
lineStyle
:
{
...
...
@@ -381,8 +376,7 @@ const waveChartOption1 = {
name
:
'目标范围'
,
type
:
'line'
}
],
animation
:
false
]
}
// 语音表达-语调
const
waveChartOption2
=
{
...
...
@@ -391,13 +385,17 @@ const waveChartOption2 = {
left
:
'left'
,
textStyle
:
{
color
:
'#333333'
,
fontSize
:
14
}
fontSize
:
14
,
height
:
20
,
fontWeight
:
400
},
padding
:
[
0
,
0
,
0
,
15
]
},
grid
:
{
left
:
20
,
right
:
20
,
bottom
:
20
bottom
:
20
,
top
:
40
},
legend
:
{
data
:
[
'目标范围'
],
...
...
@@ -425,15 +423,6 @@ const waveChartOption2 = {
data
:
[],
axisLabel
:
{
color
:
'#999EA8'
,
showMinLabel
:
true
,
showMaxLabel
:
true
,
formatter
:
function
(
value
,
index
)
{
if
(
index
==
0
||
index
==
data
.
length
-
1
)
{
return
value
}
else
{
return
''
}
}
},
axisTick
:
{
show
:
false
,
// 隐藏x轴刻度
...
...
@@ -451,12 +440,15 @@ const waveChartOption2 = {
axisLine
:
{
show
:
false
},
// min: 0,
axisLabel
:
{
show
:
false
},
axisTick
:
{
show
:
false
},
splitLine
:
{
show
:
true
,
interval
:
1
,
lineStyle
:
{
type
:
'dashed'
,
color
:
'#E5E5EF'
,
...
...
src/views/residentManage/exercise/components/contantData.js
View file @
7cc91e3
// 语速结果
const
speedText
=
[
'
飞速'
,
'迟钝'
,
'流畅
'
,
'缓慢'
,
'适中'
]
const
speedText
=
[
'
急速'
,
'极慢'
,
'快速
'
,
'缓慢'
,
'适中'
]
// 语速描述
const
speedDescribe
=
[
'您的语速极快,几乎听不出单词之间的停顿,可能会导致听众难以理解,尤其是在不熟悉的话题或复杂的讨论中。'
,
...
...
@@ -21,7 +21,7 @@ const toneList = [
const
toneWords
=
[
'嗯'
,
'额'
,
'哦'
,
'啊'
,
'呵'
,
'哈'
,
'呀'
,
'呢'
,
'吗'
,
'呗'
]
// 清晰度结果
const
definitionText
=
[
'模糊'
,
'
朦胧'
,
'一般'
,
'清晰'
,
'明朗
'
]
const
definitionText
=
[
'模糊'
,
'
含糊'
,
'适中'
,
'明白'
,
'清晰
'
]
// 清晰度描述
const
definitionDescribe
=
[
...
...
@@ -33,7 +33,7 @@ const definitionDescribe = [
]
// 语调结果
const
intonationText
=
[
'
平淡'
,
'缓和'
,
'适中'
,
'丰富'
,
'激昂
'
]
const
intonationText
=
[
'
单调'
,
'平和'
,
'适中'
,
'激昂'
,
'丰富
'
]
// 语调描述
const
intonationDescribe
=
[
...
...
@@ -44,6 +44,39 @@ const intonationDescribe = [
'您的语调变化丰富,能够充分表达复杂的情感和细微的差别,使语言表达更加生动和有感染力。'
]
// 冗余词颜色
const
colorContentData
=
[{
name
:
'嗯'
,
color
:
'#5D95FF'
},
{
name
:
'额'
,
color
:
'#63D7E1'
},
{
name
:
'哦'
,
color
:
'#5FD190'
},
{
name
:
'啊'
,
color
:
'#AED14B'
},
{
name
:
'呵'
,
color
:
'#FFB13B'
},
{
name
:
'哈'
,
color
:
'#F7CD23'
},
{
name
:
'呀'
,
color
:
'#F48670'
},
{
name
:
'呢'
,
color
:
'#F8A9DE'
},
{
name
:
'吗'
,
color
:
'#D8A2FC'
},
{
name
:
'呗'
,
color
:
'#858DFF'
}]
export
default
{
speedText
,
speedDescribe
,
...
...
@@ -52,5 +85,6 @@ export default {
definitionText
,
definitionDescribe
,
intonationText
,
intonationDescribe
intonationDescribe
,
colorContentData
}
src/views/residentManage/exercise/components/dialogResult.vue
View file @
7cc91e3
...
...
@@ -7,6 +7,8 @@
width=
"80%"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleClose"
:isShowFooter=
"false"
:noCancel=
"true"
>
<div>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleReset"
>
...
...
src/views/residentManage/exercise/components/evaluatingReport.vue
View file @
7cc91e3
...
...
@@ -170,6 +170,17 @@ export default {
// 有4个项目时 旋转45度
if
(
radarData
?.
length
==
4
)
chartOption
.
radarChartOption
.
radar
.
startAngle
=
45
else
chartOption
.
radarChartOption
.
radar
.
startAngle
=
90
// 有五个项目时 缩小图表
if
(
radarData
?.
length
==
5
)
{
chartOption
.
radarChartOption
.
radar
.
radius
=
'85%'
chartOption
.
radarChartOption
.
radar
.
center
=
[
'50%'
,
'58%'
]
}
else
if
(
radarData
?.
length
==
3
)
{
chartOption
.
radarChartOption
.
radar
.
radius
=
'95%'
chartOption
.
radarChartOption
.
radar
.
center
=
[
'50%'
,
'65%'
]
}
else
{
chartOption
.
radarChartOption
.
radar
.
radius
=
'100%'
chartOption
.
radarChartOption
.
radar
.
center
=
[
'50%'
,
'50%'
]
}
chartOption
.
radarChartOption
.
series
[
0
].
data
[
0
].
value
=
radarValue
this
.
radarChart
.
setOption
(
chartOption
.
radarChartOption
)
this
.
radarChart
.
on
(
'finished'
,
()
=>
{
...
...
@@ -229,6 +240,10 @@ export default {
font-weight
:
400
;
}
}
.tips
{
color
:
#999999
;
font-size
:
12px
;
}
}
}
.word-cloud
{
...
...
@@ -303,13 +318,14 @@ export default {
color
:
#2A58AD
;
.title
{
font-size
:
14px
;
font-weight
:
400
;
&.color-red{
color
:
#EB4E4E
;
}
}
.content
{
font-size
:
1
0
px
;
font-weight
:
6
00
;
font-size
:
1
1
px
;
font-weight
:
5
00
;
}
}
.item-1
{
top
:
-12px
;
left
:
47px
;
}
...
...
src/views/residentManage/exercise/components/fluency.vue
View file @
7cc91e3
...
...
@@ -61,6 +61,13 @@ export default {
initData
()
{
this
.
filterWordsData
()
this
.
filterSpeedData
()
this
.
$nextTick
(()
=>
{
window
.
addEventListener
(
"resize"
,
()
=>
this
.
resize
())
})
},
resize
()
{
this
.
waveChart
&&
this
.
waveChart
.
resize
()
this
.
pieChart
&&
this
.
pieChart
.
resize
()
},
// 处理冗余词数据
filterWordsData
()
{
...
...
@@ -122,24 +129,32 @@ export default {
},
initWaveChart
()
{
this
.
$nextTick
(()
=>
{
const
waveChart
=
echarts
.
init
(
document
.
getElementById
(
'wave-chart'
))
this
.
waveChart
=
echarts
.
init
(
document
.
getElementById
(
'wave-chart'
))
chartOption
.
waveChartOption
.
xAxis
.
data
=
this
.
speedData
.
x
chartOption
.
waveChartOption
.
yAxis
.
max
=
this
.
speedData
.
max
chartOption
.
waveChartOption
.
yAxis
.
max
=
this
.
speedData
.
max
>
Math
.
max
(...
this
.
speedData
.
y
)
?
this
.
speedData
.
max
:
Math
.
max
(...
this
.
speedData
.
y
)
chartOption
.
waveChartOption
.
series
[
0
].
data
=
this
.
speedData
.
y
chartOption
.
waveChartOption
.
series
[
0
].
markArea
.
data
[
0
]
=
[{
xAxis
:
this
.
speedData
.
x
[
0
]
},
{
yAxis
:
this
.
speedData
.
min
,
}]
chartOption
.
waveChartOption
.
series
[
0
].
markArea
.
data
[
1
]
=
[{
yAxis
:
this
.
speedData
.
x
[
this
.
speedData
.
x
.
length
-
1
]
},
{
yAxis
:
this
.
speedData
.
max
}]
waveChart
.
setOption
(
chartOption
.
waveChartOption
)
chartOption
.
waveChartOption
.
series
[
0
].
markArea
.
data
=
[
[{
xAxis
:
this
.
speedData
.
x
[
0
],
yAxis
:
this
.
speedData
.
min
},
{
xAxis
:
this
.
speedData
.
x
[
this
.
speedData
.
x
.
length
-
1
],
yAxis
:
this
.
speedData
.
max
}]
]
chartOption
.
waveChartOption
.
xAxis
.
axisLabel
.
formatter
=
(
value
,
index
)
=>
{
if
(
index
==
0
||
index
==
this
.
speedData
.
x
.
length
-
1
)
{
return
value
}
else
{
return
''
}
}
this
.
waveChart
.
setOption
(
chartOption
.
waveChartOption
)
})
},
initPieChart
()
{
this
.
$nextTick
(()
=>
{
console
.
log
(
this
.
wordsData
)
let
result
=
this
.
wordsData
?.
positionX
.
map
((
name
,
index
)
=>
{
return
{
name
:
name
,
value
:
this
.
wordsData
?.
positionY
[
index
]
};
let
color
=
contantData
.
colorContentData
.
find
((
item
)
=>
item
.
name
==
name
)?.
color
return
{
name
:
name
,
value
:
this
.
wordsData
?.
positionY
[
index
],
itemStyle
:
{
color
:
color
}
};
})
const
pieChart
=
echarts
.
init
(
document
.
getElementById
(
'pie-chart'
))
this
.
pieChart
=
echarts
.
init
(
document
.
getElementById
(
'pie-chart'
))
chartOption
.
pieChartOption
.
series
[
0
].
data
=
result
pieChart
.
setOption
(
chartOption
.
pieChartOption
)
this
.
pieChart
.
setOption
(
chartOption
.
pieChartOption
)
})
}
}
...
...
src/views/residentManage/exercise/components/phonetic.vue
View file @
7cc91e3
...
...
@@ -50,6 +50,13 @@ export default {
initData
()
{
this
.
filterIntonationData
()
this
.
filterDefinitionData
()
this
.
$nextTick
(()
=>
{
window
.
addEventListener
(
"resize"
,
()
=>
this
.
resize
())
})
},
resize
()
{
this
.
waveChart1
&&
this
.
waveChart1
.
resize
()
this
.
waveChart2
&&
this
.
waveChart2
.
resize
()
},
filterIntonationData
()
{
const
{
intonation
}
=
this
.
itemData
.
deliver
...
...
@@ -83,29 +90,45 @@ export default {
min
:
data
?.
min
,
max
:
data
?.
max
}
console
.
log
(
data
)
if
(
data
?.
x
&&
data
?.
y
)
this
.
initWaveChart
(
2
)
},
initWaveChart
(
num
)
{
if
(
num
==
1
)
{
const
waveChart1
=
echarts
.
init
(
document
.
getElementById
(
'wave-chart-1'
))
chartOption
.
waveChartOption1
.
xAxis
.
data
=
this
.
intonationData
.
x
chartOption
.
waveChartOption1
.
yAxis
.
max
=
this
.
intonationData
.
max
chartOption
.
waveChartOption1
.
series
[
0
].
data
=
this
.
intonationData
.
y
chartOption
.
waveChartOption1
.
series
[
0
].
markArea
.
data
[
0
]
=
[{
xAxis
:
this
.
intonationData
.
x
[
0
]
},
{
yAxis
:
this
.
intonationData
.
min
,
}]
chartOption
.
waveChartOption1
.
series
[
0
].
markArea
.
data
[
1
]
=
[{
yAxis
:
this
.
intonationData
.
x
[
this
.
intonationData
.
x
.
length
-
1
]
},
{
yAxis
:
this
.
intonationData
.
max
}]
waveChart1
.
setOption
(
chartOption
.
waveChartOption1
)
}
if
(
num
==
2
)
{
const
waveChart2
=
echarts
.
init
(
document
.
getElementById
(
'wave-chart-2'
))
chartOption
.
waveChartOption2
.
xAxis
.
data
=
this
.
definitionData
.
x
chartOption
.
waveChartOption2
.
yAxis
.
max
=
this
.
definitionData
.
max
chartOption
.
waveChartOption2
.
series
[
0
].
data
=
this
.
definitionData
.
y
chartOption
.
waveChartOption2
.
series
[
0
].
markArea
.
data
[
0
]
=
[{
xAxis
:
this
.
definitionData
.
x
[
0
]
},
{
yAxis
:
this
.
definitionData
.
min
,
}]
chartOption
.
waveChartOption2
.
series
[
0
].
markArea
.
data
[
1
]
=
[{
yAxis
:
this
.
definitionData
.
x
[
this
.
definitionData
.
x
.
length
-
1
]
},
{
yAxis
:
this
.
definitionData
.
max
}]
waveChart2
.
setOption
(
chartOption
.
waveChartOption2
)
}
this
.
$nextTick
(()
=>
{
if
(
num
==
1
)
{
this
.
waveChart1
=
echarts
.
init
(
document
.
getElementById
(
'wave-chart-1'
))
chartOption
.
waveChartOption1
.
xAxis
.
data
=
this
.
intonationData
.
x
chartOption
.
waveChartOption1
.
yAxis
.
max
=
this
.
intonationData
.
max
>
Math
.
max
(...
this
.
intonationData
.
y
)
?
this
.
intonationData
.
max
:
Math
.
max
(...
this
.
intonationData
.
y
)
chartOption
.
waveChartOption1
.
series
[
0
].
data
=
this
.
intonationData
.
y
chartOption
.
waveChartOption1
.
series
[
0
].
markArea
.
data
=
[
[{
xAxis
:
this
.
intonationData
.
x
[
0
],
yAxis
:
this
.
intonationData
.
min
},
{
xAxis
:
this
.
intonationData
.
x
[
this
.
intonationData
.
x
.
length
-
1
],
yAxis
:
this
.
intonationData
.
max
}]
]
chartOption
.
waveChartOption1
.
xAxis
.
axisLabel
.
formatter
=
(
value
,
index
)
=>
{
if
(
index
==
0
||
index
==
this
.
intonationData
.
x
.
length
-
1
)
{
return
value
}
else
{
return
''
}
}
this
.
waveChart1
.
setOption
(
chartOption
.
waveChartOption1
)
}
if
(
num
==
2
)
{
this
.
waveChart2
=
echarts
.
init
(
document
.
getElementById
(
'wave-chart-2'
))
chartOption
.
waveChartOption2
.
xAxis
.
data
=
this
.
definitionData
.
x
chartOption
.
waveChartOption2
.
yAxis
.
max
=
this
.
definitionData
.
max
>
Math
.
max
(...
this
.
definitionData
.
y
)
?
this
.
definitionData
.
max
:
Math
.
max
(...
this
.
definitionData
.
y
)
chartOption
.
waveChartOption2
.
series
[
0
].
data
=
this
.
definitionData
.
y
chartOption
.
waveChartOption2
.
series
[
0
].
markArea
.
data
=
[
[{
xAxis
:
this
.
definitionData
.
x
[
0
],
yAxis
:
this
.
definitionData
.
min
},
{
xAxis
:
this
.
definitionData
.
x
[
this
.
definitionData
.
x
.
length
-
1
],
yAxis
:
this
.
definitionData
.
max
}]
]
chartOption
.
waveChartOption2
.
xAxis
.
axisLabel
.
formatter
=
(
value
,
index
)
=>
{
if
(
index
==
0
||
index
==
this
.
definitionData
.
x
.
length
-
1
)
{
return
value
}
else
{
return
''
}
}
this
.
waveChart2
.
setOption
(
chartOption
.
waveChartOption2
)
}
})
},
}
}
...
...
src/views/residentManage/exercise/components/serviceAttitude.vue
View file @
7cc91e3
...
...
@@ -7,7 +7,7 @@
<div
class=
"value"
>
{{
itemData
.
reportItemDescription
}}
</div>
</div>
<div
class=
"line"
></div>
<div
class=
"content-text"
>
{{
itemData
.
content
}}
</div>
<div
class=
"content-text"
>
{{
itemData
.
content
||
'-'
}}
</div>
</div>
</div>
</
template
>
...
...
src/views/residentManage/exercise/detail.vue
View file @
7cc91e3
...
...
@@ -234,10 +234,8 @@ export default {
params
.
completionTime
[
0
],
"YYYY-MM-DD HH:mm:ss"
)
params
.
endTime
=
Util
.
dateFormate
(
params
.
completionTime
[
1
],
"YYYY-MM-DD HH:mm:ss"
)
params
.
endTime
=
Util
.
dateFormate
(
params
.
completionTime
[
1
],
"YYYY-MM-DD"
)
+
" 23:59:59"
delete
params
.
completionTime
}
// params.sparringStatus = activeName != "all" ? activeName : ""
...
...
src/views/residentManage/exercise/exerciseRecord.vue
View file @
7cc91e3
...
...
@@ -220,13 +220,12 @@ export default {
params
.
completionTime
[
0
],
"YYYY-MM-DD HH:mm:ss"
)
params
.
endTime
=
Util
.
dateFormate
(
params
.
completionTime
[
1
],
"YYYY-MM-DD HH:mm:ss"
)
params
.
endTime
=
Util
.
dateFormate
(
params
.
completionTime
[
1
],
"YYYY-MM-DD"
)
+
" 23:59:59"
delete
params
.
completionTime
}
params
.
sparringStatus
=
1
// console.log(params, "4444444444")
return
params
},
handleReset
()
{
...
...
src/views/residentManage/exercise/index.vue
View file @
7cc91e3
...
...
@@ -41,15 +41,25 @@
:before-search-fn=
"beforeSearchFn"
>
<template
slot=
"auth-button"
slot-scope=
"scope"
>
<auth-button
:data=
"scope.scope"
/>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9120803', '9120804']"
/>
<span
class=
"auth-button"
>
<auth-button
v-if=
"scope.scope.taskState == 1"
:data=
"scope.scope"
:show-btn-ids=
"['9120805']"
/>
</span>
</
template
>
<div
slot=
"prompt"
slot-scope=
"scope"
>
<
!-- <
div slot="prompt" slot-scope="scope">
<el-switch
:value="scope.scope.promptOnOff"
@change="handleSwitch(scope)"
>
</el-switch>
</div>
</div>
-->
<div
slot=
"taskState"
slot-scope=
"scope"
>
<div
class=
"online-status"
>
<span
...
...
@@ -182,12 +192,12 @@ export default {
label
:
"任务名称"
,
prop
:
"taskName"
},
{
label
:
"提示词"
,
prop
:
"promptOnOff"
,
addHtml
:
"prompt"
,
width
:
"80"
},
//
{
//
label: "提示词",
//
prop: "promptOnOff",
//
addHtml: "prompt",
//
width: "80"
//
},
{
label
:
"状态"
,
prop
:
"taskState"
,
...
...
@@ -283,7 +293,8 @@ export default {
this
.
$confirm
(
"是否确认结束此任务?"
,
"结束提醒"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
type
:
"warning"
,
closeOnClickModal
:
false
}).
then
((
end
)
=>
{
if
(
end
==
"confirm"
)
{
// this.commitFn(type)
...
...
@@ -397,4 +408,7 @@ export default {
background-color
:
#2a58ad
;
}
}
.auth-button
{
margin-left
:
10px
;
}
</
style
>
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