|
@@ -176,6 +176,9 @@ function lineOption1(title, data, legend, color) {
|
|
|
formatter: (params) => {
|
|
|
return formatSeconds(params.value[params.seriesIndex + 1]);
|
|
|
},
|
|
|
+ position: (point) => {
|
|
|
+ return [point[0] + 5, point[1] + 5];
|
|
|
+ },
|
|
|
},
|
|
|
legend: {
|
|
|
show: legend.length > 1,
|
|
@@ -238,12 +241,12 @@ function barOption1(title, value, allValue, avgCorrect, avgIncorrent) {
|
|
|
],
|
|
|
},
|
|
|
];
|
|
|
- const xAxis2 = {
|
|
|
- type: 'category',
|
|
|
- axisTick: { show: false },
|
|
|
- axisLine: { lineStyle: { color: '#D1D6DF' } },
|
|
|
- splitLine: { show: false },
|
|
|
- };
|
|
|
+ // const xAxis2 = {
|
|
|
+ // type: 'category',
|
|
|
+ // axisTick: { show: false },
|
|
|
+ // axisLine: { lineStyle: { color: '#D1D6DF' } },
|
|
|
+ // splitLine: { show: false },
|
|
|
+ // };
|
|
|
const yAxis1 = [
|
|
|
{
|
|
|
gridIndex: 0,
|
|
@@ -264,14 +267,14 @@ function barOption1(title, value, allValue, avgCorrect, avgIncorrent) {
|
|
|
splitLine: { show: false },
|
|
|
},
|
|
|
];
|
|
|
- const yAxis2 = {
|
|
|
- show: false,
|
|
|
- min: 0,
|
|
|
- max: 100,
|
|
|
- axisTick: { show: false },
|
|
|
- axisLine: { show: false },
|
|
|
- splitLine: { show: false },
|
|
|
- };
|
|
|
+ // const yAxis2 = {
|
|
|
+ // show: false,
|
|
|
+ // min: 0,
|
|
|
+ // max: 100,
|
|
|
+ // axisTick: { show: false },
|
|
|
+ // axisLine: { show: false },
|
|
|
+ // splitLine: { show: false },
|
|
|
+ // };
|
|
|
const data1 = {
|
|
|
type: 'bar',
|
|
|
barWidth: 50,
|
|
@@ -343,13 +346,13 @@ function barOption1(title, value, allValue, avgCorrect, avgIncorrent) {
|
|
|
textVerticalAlign: 'middle',
|
|
|
textStyle: { color: '#686872', fontWeight: '500', fontSize: 14, lineHeight: 20 },
|
|
|
bottom: '2%',
|
|
|
- left: '26%',
|
|
|
+ left: '28%',
|
|
|
},
|
|
|
],
|
|
|
- xAxis: avgCorrect ? xAxis1 : xAxis2,
|
|
|
- yAxis: avgCorrect ? yAxis1 : yAxis2,
|
|
|
- grid: avgCorrect ? [{ width: 200, x: 72 }, { width: 350, x: 272 }] : { width: 200, left: '30%' },
|
|
|
- series: avgCorrect ? [data1, data2] : [data1],
|
|
|
+ xAxis: xAxis1, // : xAxis2,
|
|
|
+ yAxis: yAxis1, // : yAxis2,
|
|
|
+ grid: [{ width: 200, x: 72 }, { width: 350, x: 272 }], // : { width: 200, left: '30%' },
|
|
|
+ series: [data1, data2], // : [data1],
|
|
|
};
|
|
|
}
|
|
|
|
|
@@ -713,7 +716,7 @@ export default class extends Page {
|
|
|
</div>
|
|
|
<div className="right">
|
|
|
<div className="text">{user.info.nickname}</div>
|
|
|
- <div className="desc">练习次数{paper.times + 1}</div>
|
|
|
+ <div className="desc">练习次数{report.times}</div>
|
|
|
<div className="desc">{formatDate(report.updateTime, 'YYYY-MM-DD HH:mm:ss')}</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -750,7 +753,7 @@ export default class extends Page {
|
|
|
</div>
|
|
|
<div className="right">
|
|
|
<div className="text">{user.info.nickname}</div>
|
|
|
- <div className="desc">练习次数{paper.times + 1}</div>
|
|
|
+ <div className="desc">练习次数{report.times}</div>
|
|
|
<div className="desc">{formatDate(report.updateTime, 'YYYY-MM-DD HH:mm:ss')}</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -783,7 +786,7 @@ export default class extends Page {
|
|
|
</div>
|
|
|
<div className="right">
|
|
|
<div className="text">{user.info.nickname}</div>
|
|
|
- <div className="desc">练习次数{paper.times + 1}</div>
|
|
|
+ <div className="desc">练习次数{report.times}</div>
|
|
|
<div className="desc">{formatDate(report.updateTime, 'YYYY-MM-DD HH:mm:ss')}</div>
|
|
|
</div>
|
|
|
</div>
|