Commit 7cc91e35 by 王志慧

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
...@@ -106,13 +106,17 @@ const waveChartOption = { ...@@ -106,13 +106,17 @@ const waveChartOption = {
left: 'left', left: 'left',
textStyle: { textStyle: {
color: '#333333', color: '#333333',
fontSize: 14 fontSize: 14,
} height: 20,
fontWeight: 400
},
padding: [0, 0, 0, 15]
}, },
grid: { grid: {
left: 20, left: 20,
right: 20, right: 20,
bottom: 20 bottom: 20,
top: 40
}, },
legend: { legend: {
data: ['目标范围'], data: ['目标范围'],
...@@ -140,15 +144,6 @@ const waveChartOption = { ...@@ -140,15 +144,6 @@ const waveChartOption = {
data: [], data: [],
axisLabel: { axisLabel: {
color: '#999EA8', color: '#999EA8',
showMinLabel: true,
showMaxLabel: true,
formatter: function (value, index) {
if (index == 0 || index == data.length - 1) {
return value
} else {
return ''
}
}
}, },
axisTick: { axisTick: {
show: false, // 隐藏x轴刻度 show: false, // 隐藏x轴刻度
...@@ -166,13 +161,15 @@ const waveChartOption = { ...@@ -166,13 +161,15 @@ const waveChartOption = {
axisLine: { axisLine: {
show: false show: false
}, },
min: 0, // min: 0,
axisTick: {
show: false
},
axisLabel: { axisLabel: {
show: false show: false
}, },
splitLine: { splitLine: {
show: true, show: true,
interval: 1,
lineStyle: { lineStyle: {
type: 'dashed', type: 'dashed',
color: '#E5E5EF', color: '#E5E5EF',
...@@ -284,13 +281,17 @@ const waveChartOption1 = { ...@@ -284,13 +281,17 @@ const waveChartOption1 = {
left: 'left', left: 'left',
textStyle: { textStyle: {
color: '#333333', color: '#333333',
fontSize: 14 fontSize: 14,
} height: 20,
fontWeight: 400
},
padding: [0, 0, 0, 15]
}, },
grid: { grid: {
left: 20, left: 20,
right: 20, right: 20,
bottom: 20 bottom: 20,
top: 40
}, },
legend: { legend: {
data: ['目标范围'], data: ['目标范围'],
...@@ -318,15 +319,6 @@ const waveChartOption1 = { ...@@ -318,15 +319,6 @@ const waveChartOption1 = {
data: [], data: [],
axisLabel: { axisLabel: {
color: '#999EA8', color: '#999EA8',
showMinLabel: true,
showMaxLabel: true,
formatter: function (value, index) {
if (index == 0 || index == data.length - 1) {
return value
} else {
return ''
}
}
}, },
axisTick: { axisTick: {
show: false, // 隐藏x轴刻度 show: false, // 隐藏x轴刻度
...@@ -344,12 +336,15 @@ const waveChartOption1 = { ...@@ -344,12 +336,15 @@ const waveChartOption1 = {
axisLine: { axisLine: {
show: false show: false
}, },
// min: 0,
axisTick: {
show: false
},
axisLabel: { axisLabel: {
show: false show: false
}, },
splitLine: { splitLine: {
show: true, show: true,
interval: 1,
lineStyle: { lineStyle: {
type: 'dashed', type: 'dashed',
color: '#E5E5EF', color: '#E5E5EF',
...@@ -361,7 +356,7 @@ const waveChartOption1 = { ...@@ -361,7 +356,7 @@ const waveChartOption1 = {
{ {
name: '清晰度', name: '清晰度',
type: 'line', type: 'line',
data: [], data: [], // 设置清晰度数据的y轴数据
symbol: 'none', // 隐藏数据点 symbol: 'none', // 隐藏数据点
smooth: true, // 使线条平滑 smooth: true, // 使线条平滑
lineStyle: { lineStyle: {
...@@ -381,8 +376,7 @@ const waveChartOption1 = { ...@@ -381,8 +376,7 @@ const waveChartOption1 = {
name: '目标范围', name: '目标范围',
type: 'line' type: 'line'
} }
], ]
animation: false
} }
// 语音表达-语调 // 语音表达-语调
const waveChartOption2 = { const waveChartOption2 = {
...@@ -391,13 +385,17 @@ const waveChartOption2 = { ...@@ -391,13 +385,17 @@ const waveChartOption2 = {
left: 'left', left: 'left',
textStyle: { textStyle: {
color: '#333333', color: '#333333',
fontSize: 14 fontSize: 14,
} height: 20,
fontWeight: 400
},
padding: [0, 0, 0, 15]
}, },
grid: { grid: {
left: 20, left: 20,
right: 20, right: 20,
bottom: 20 bottom: 20,
top: 40
}, },
legend: { legend: {
data: ['目标范围'], data: ['目标范围'],
...@@ -425,15 +423,6 @@ const waveChartOption2 = { ...@@ -425,15 +423,6 @@ const waveChartOption2 = {
data: [], data: [],
axisLabel: { axisLabel: {
color: '#999EA8', color: '#999EA8',
showMinLabel: true,
showMaxLabel: true,
formatter: function (value, index) {
if (index == 0 || index == data.length - 1) {
return value
} else {
return ''
}
}
}, },
axisTick: { axisTick: {
show: false, // 隐藏x轴刻度 show: false, // 隐藏x轴刻度
...@@ -451,12 +440,15 @@ const waveChartOption2 = { ...@@ -451,12 +440,15 @@ const waveChartOption2 = {
axisLine: { axisLine: {
show: false show: false
}, },
// min: 0,
axisLabel: { axisLabel: {
show: false show: false
}, },
axisTick: {
show: false
},
splitLine: { splitLine: {
show: true, show: true,
interval: 1,
lineStyle: { lineStyle: {
type: 'dashed', type: 'dashed',
color: '#E5E5EF', color: '#E5E5EF',
......
// 语速结果 // 语速结果
const speedText = ['飞速', '迟钝', '流畅', '缓慢', '适中'] const speedText = ['急速', '极慢', '快速', '缓慢', '适中']
// 语速描述 // 语速描述
const speedDescribe = [ const speedDescribe = [
'您的语速极快,几乎听不出单词之间的停顿,可能会导致听众难以理解,尤其是在不熟悉的话题或复杂的讨论中。', '您的语速极快,几乎听不出单词之间的停顿,可能会导致听众难以理解,尤其是在不熟悉的话题或复杂的讨论中。',
...@@ -21,7 +21,7 @@ const toneList = [ ...@@ -21,7 +21,7 @@ const toneList = [
const toneWords = ['嗯', '额', '哦', '啊', '呵', '哈', '呀', '呢', '吗', '呗'] const toneWords = ['嗯', '额', '哦', '啊', '呵', '哈', '呀', '呢', '吗', '呗']
// 清晰度结果 // 清晰度结果
const definitionText = ['模糊', '朦胧', '一般', '清晰', '明朗'] const definitionText = ['模糊', '含糊', '适中', '明白', '清晰']
// 清晰度描述 // 清晰度描述
const definitionDescribe = [ const definitionDescribe = [
...@@ -33,7 +33,7 @@ const definitionDescribe = [ ...@@ -33,7 +33,7 @@ const definitionDescribe = [
] ]
// 语调结果 // 语调结果
const intonationText = ['平淡', '缓和', '适中', '丰富', '激昂'] const intonationText = ['单调', '平和', '适中', '激昂', '丰富']
// 语调描述 // 语调描述
const intonationDescribe = [ const intonationDescribe = [
...@@ -44,6 +44,39 @@ 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 { export default {
speedText, speedText,
speedDescribe, speedDescribe,
...@@ -52,5 +85,6 @@ export default { ...@@ -52,5 +85,6 @@ export default {
definitionText, definitionText,
definitionDescribe, definitionDescribe,
intonationText, intonationText,
intonationDescribe intonationDescribe,
colorContentData
} }
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
width="80%" width="80%"
@closeDialog="handleClose" @closeDialog="handleClose"
@confirmDialog="handleClose" @confirmDialog="handleClose"
:isShowFooter="false"
:noCancel="true"
> >
<div> <div>
<el-tabs v-model="activeName" @tab-click="handleReset"> <el-tabs v-model="activeName" @tab-click="handleReset">
......
...@@ -170,6 +170,17 @@ export default { ...@@ -170,6 +170,17 @@ export default {
// 有4个项目时 旋转45度 // 有4个项目时 旋转45度
if (radarData?.length == 4) chartOption.radarChartOption.radar.startAngle = 45 if (radarData?.length == 4) chartOption.radarChartOption.radar.startAngle = 45
else chartOption.radarChartOption.radar.startAngle = 90 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 chartOption.radarChartOption.series[0].data[0].value = radarValue
this.radarChart.setOption(chartOption.radarChartOption) this.radarChart.setOption(chartOption.radarChartOption)
this.radarChart.on('finished', () => { this.radarChart.on('finished', () => {
...@@ -229,6 +240,10 @@ export default { ...@@ -229,6 +240,10 @@ export default {
font-weight: 400; font-weight: 400;
} }
} }
.tips{
color: #999999;
font-size: 12px;
}
} }
} }
.word-cloud { .word-cloud {
...@@ -303,13 +318,14 @@ export default { ...@@ -303,13 +318,14 @@ export default {
color: #2A58AD; color: #2A58AD;
.title { .title {
font-size: 14px; font-size: 14px;
font-weight: 400;
&.color-red{ &.color-red{
color: #EB4E4E; color: #EB4E4E;
} }
} }
.content { .content {
font-size: 10px; font-size: 11px;
font-weight: 600; font-weight: 500;
} }
} }
.item-1 { top: -12px; left: 47px; } .item-1 { top: -12px; left: 47px; }
......
...@@ -61,6 +61,13 @@ export default { ...@@ -61,6 +61,13 @@ export default {
initData() { initData() {
this.filterWordsData() this.filterWordsData()
this.filterSpeedData() this.filterSpeedData()
this.$nextTick(() => {
window.addEventListener("resize", () => this.resize())
})
},
resize() {
this.waveChart && this.waveChart.resize()
this.pieChart && this.pieChart.resize()
}, },
// 处理冗余词数据 // 处理冗余词数据
filterWordsData() { filterWordsData() {
...@@ -122,24 +129,32 @@ export default { ...@@ -122,24 +129,32 @@ export default {
}, },
initWaveChart() { initWaveChart() {
this.$nextTick(() => { 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.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].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 = [
chartOption.waveChartOption.series[0].markArea.data[1] = [{ yAxis: this.speedData.x[this.speedData.x.length - 1] }, {yAxis: this.speedData.max }] [{ xAxis: this.speedData.x[0], yAxis: this.speedData.min }, { xAxis: this.speedData.x[this.speedData.x.length - 1], yAxis: this.speedData.max }]
waveChart.setOption(chartOption.waveChartOption) ]
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() { initPieChart() {
this.$nextTick(() => { this.$nextTick(() => {
console.log(this.wordsData)
let result = this.wordsData?.positionX.map((name, index) => { 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 chartOption.pieChartOption.series[0].data = result
pieChart.setOption(chartOption.pieChartOption) this.pieChart.setOption(chartOption.pieChartOption)
}) })
} }
} }
......
...@@ -50,6 +50,13 @@ export default { ...@@ -50,6 +50,13 @@ export default {
initData() { initData() {
this.filterIntonationData() this.filterIntonationData()
this.filterDefinitionData() this.filterDefinitionData()
this.$nextTick(() => {
window.addEventListener("resize", () => this.resize())
})
},
resize() {
this.waveChart1 && this.waveChart1.resize()
this.waveChart2 && this.waveChart2.resize()
}, },
filterIntonationData() { filterIntonationData() {
const { intonation } = this.itemData.deliver const { intonation } = this.itemData.deliver
...@@ -83,29 +90,45 @@ export default { ...@@ -83,29 +90,45 @@ export default {
min: data?.min, min: data?.min,
max: data?.max max: data?.max
} }
console.log(data)
if (data?.x && data?.y) this.initWaveChart(2) if (data?.x && data?.y) this.initWaveChart(2)
}, },
initWaveChart(num) { initWaveChart(num) {
if (num == 1) { this.$nextTick(() => {
const waveChart1 = echarts.init(document.getElementById('wave-chart-1')) if (num == 1) {
chartOption.waveChartOption1.xAxis.data = this.intonationData.x this.waveChart1 = echarts.init(document.getElementById('wave-chart-1'))
chartOption.waveChartOption1.yAxis.max = this.intonationData.max chartOption.waveChartOption1.xAxis.data = this.intonationData.x
chartOption.waveChartOption1.series[0].data = this.intonationData.y chartOption.waveChartOption1.yAxis.max = this.intonationData.max > Math.max(...this.intonationData.y) ? this.intonationData.max : Math.max(...this.intonationData.y)
chartOption.waveChartOption1.series[0].markArea.data[0] = [{ xAxis: this.intonationData.x[0] }, {yAxis: this.intonationData.min, }] chartOption.waveChartOption1.series[0].data = this.intonationData.y
chartOption.waveChartOption1.series[0].markArea.data[1] = [{ yAxis: this.intonationData.x[this.intonationData.x.length - 1] }, {yAxis: this.intonationData.max }] chartOption.waveChartOption1.series[0].markArea.data = [
waveChart1.setOption(chartOption.waveChartOption1) [{ xAxis: this.intonationData.x[0], yAxis: this.intonationData.min }, { xAxis: this.intonationData.x[this.intonationData.x.length - 1], yAxis: this.intonationData.max }]
} ]
if (num == 2) { chartOption.waveChartOption1.xAxis.axisLabel.formatter = (value, index) => {
const waveChart2 = echarts.init(document.getElementById('wave-chart-2')) if (index == 0 || index == this.intonationData.x.length - 1) {
chartOption.waveChartOption2.xAxis.data = this.definitionData.x return value
chartOption.waveChartOption2.yAxis.max = this.definitionData.max } else {
chartOption.waveChartOption2.series[0].data = this.definitionData.y return ''
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.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)
}
})
}, },
} }
} }
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<div class="value">{{ itemData.reportItemDescription }}</div> <div class="value">{{ itemData.reportItemDescription }}</div>
</div> </div>
<div class="line"></div> <div class="line"></div>
<div class="content-text">{{ itemData.content }}</div> <div class="content-text">{{ itemData.content || '-' }}</div>
</div> </div>
</div> </div>
</template> </template>
......
...@@ -234,10 +234,8 @@ export default { ...@@ -234,10 +234,8 @@ export default {
params.completionTime[0], params.completionTime[0],
"YYYY-MM-DD HH:mm:ss" "YYYY-MM-DD HH:mm:ss"
) )
params.endTime = Util.dateFormate( params.endTime =
params.completionTime[1], Util.dateFormate(params.completionTime[1], "YYYY-MM-DD") + " 23:59:59"
"YYYY-MM-DD HH:mm:ss"
)
delete params.completionTime delete params.completionTime
} }
// params.sparringStatus = activeName != "all" ? activeName : "" // params.sparringStatus = activeName != "all" ? activeName : ""
......
...@@ -220,13 +220,12 @@ export default { ...@@ -220,13 +220,12 @@ export default {
params.completionTime[0], params.completionTime[0],
"YYYY-MM-DD HH:mm:ss" "YYYY-MM-DD HH:mm:ss"
) )
params.endTime = Util.dateFormate( params.endTime =
params.completionTime[1], Util.dateFormate(params.completionTime[1], "YYYY-MM-DD") + " 23:59:59"
"YYYY-MM-DD HH:mm:ss"
)
delete params.completionTime delete params.completionTime
} }
params.sparringStatus = 1 params.sparringStatus = 1
// console.log(params, "4444444444")
return params return params
}, },
handleReset() { handleReset() {
......
...@@ -41,15 +41,25 @@ ...@@ -41,15 +41,25 @@
:before-search-fn="beforeSearchFn" :before-search-fn="beforeSearchFn"
> >
<template slot="auth-button" slot-scope="scope"> <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> </template>
<div slot="prompt" slot-scope="scope"> <!-- <div slot="prompt" slot-scope="scope">
<el-switch <el-switch
:value="scope.scope.promptOnOff" :value="scope.scope.promptOnOff"
@change="handleSwitch(scope)" @change="handleSwitch(scope)"
> >
</el-switch> </el-switch>
</div> </div> -->
<div slot="taskState" slot-scope="scope"> <div slot="taskState" slot-scope="scope">
<div class="online-status"> <div class="online-status">
<span <span
...@@ -182,12 +192,12 @@ export default { ...@@ -182,12 +192,12 @@ export default {
label: "任务名称", label: "任务名称",
prop: "taskName" prop: "taskName"
}, },
{ // {
label: "提示词", // label: "提示词",
prop: "promptOnOff", // prop: "promptOnOff",
addHtml: "prompt", // addHtml: "prompt",
width: "80" // width: "80"
}, // },
{ {
label: "状态", label: "状态",
prop: "taskState", prop: "taskState",
...@@ -283,7 +293,8 @@ export default { ...@@ -283,7 +293,8 @@ export default {
this.$confirm("是否确认结束此任务?", "结束提醒", { this.$confirm("是否确认结束此任务?", "结束提醒", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning",
closeOnClickModal: false
}).then((end) => { }).then((end) => {
if (end == "confirm") { if (end == "confirm") {
// this.commitFn(type) // this.commitFn(type)
...@@ -397,4 +408,7 @@ export default { ...@@ -397,4 +408,7 @@ export default {
background-color: #2a58ad; background-color: #2a58ad;
} }
} }
.auth-button {
margin-left: 10px;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!