|
@@ -129,12 +129,17 @@ export default defineComponent({
|
|
const option: EChartsOption = {
|
|
const option: EChartsOption = {
|
|
tooltip: {
|
|
tooltip: {
|
|
trigger: 'axis',
|
|
trigger: 'axis',
|
|
|
|
+ showContent: false,
|
|
axisPointer: {
|
|
axisPointer: {
|
|
type: 'line',
|
|
type: 'line',
|
|
lineStyle: {
|
|
lineStyle: {
|
|
width: 40,
|
|
width: 40,
|
|
opacity: 0.5,
|
|
opacity: 0.5,
|
|
- }
|
|
|
|
|
|
+ cap: 'square'
|
|
|
|
+ },
|
|
|
|
+ label:{
|
|
|
|
+ show: true,
|
|
|
|
+ },
|
|
}
|
|
}
|
|
},
|
|
},
|
|
grid: {
|
|
grid: {
|
|
@@ -216,6 +221,7 @@ export default defineComponent({
|
|
|
|
|
|
option && myChart.setOption(option)
|
|
option && myChart.setOption(option)
|
|
myChart.on('highlight', function (params: any) {
|
|
myChart.on('highlight', function (params: any) {
|
|
|
|
+ console.log("🚀 ~ params:", params)
|
|
activeData.index = params.batch[0].dataIndex
|
|
activeData.index = params.batch[0].dataIndex
|
|
})
|
|
})
|
|
// console.log('🚀 ~ myChart:', myChart)
|
|
// console.log('🚀 ~ myChart:', myChart)
|
|
@@ -237,7 +243,7 @@ export default defineComponent({
|
|
item.select = !item.select
|
|
item.select = !item.select
|
|
}
|
|
}
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
- handleInit({ content: { practiceThisWeeks: [], sum: {} } })
|
|
|
|
|
|
+ // handleInit({ content: { practiceThisWeeks: [], sum: {} } })
|
|
listenerMessage('setAccomanyEcharts', handleInit)
|
|
listenerMessage('setAccomanyEcharts', handleInit)
|
|
postMessage({
|
|
postMessage({
|
|
api: 'setAccomanyEcharts'
|
|
api: 'setAccomanyEcharts'
|
|
@@ -312,7 +318,7 @@ export default defineComponent({
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div id="subjectEcharts" class={styles.echartsMain}></div>
|
|
<div id="subjectEcharts" class={styles.echartsMain}></div>
|
|
- {!activeData.practiceThisWeeks.length && <div class={styles.emtry}>暂无联系记录</div>}
|
|
|
|
|
|
+ {!activeData.practiceThisWeeks.length && <div class={styles.emtry}>暂无练习记录</div>}
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class={[styles.container, styles.subjectWrap]}>
|
|
<div class={[styles.container, styles.subjectWrap]}>
|