Skip to content

Commit

Permalink
1.修复big界面饼图label显示不全
Browse files Browse the repository at this point in the history
2.修复预热时间不更新bug
3.v1.1.4发布
  • Loading branch information
liubin committed Jan 6, 2025
1 parent 5dec466 commit c280593
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 10 deletions.
8 changes: 4 additions & 4 deletions web_page/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "carelink_follower",
"private": true,
"version": "1.1.3",
"version": "1.1.4",
"scripts": {
"dev": "vite --mode development",
"local": "vite --mode dev_local",
Expand All @@ -21,7 +21,7 @@
"crypto-js": "^4.2.0",
"dayjs": "^1.11.13",
"echarts": "^5.6.0",
"element-plus": "^2.9.1",
"element-plus": "^2.9.2",
"lodash-es": "^4.17.21",
"mathjs": "^14.0.1",
"nprogress": "^0.2.0",
Expand All @@ -45,7 +45,7 @@
"@element-plus/icons-vue": "^2.3.1",
"@iconify-json/ep": "^1.2.2",
"@types/crypto-js": "^4.2.2",
"@types/lodash": "^4.17.13",
"@types/lodash": "^4.17.14",
"@types/node": "^22.10.5",
"@types/nprogress": "^0.2.3",
"@types/path-browserify": "^1.0.3",
Expand All @@ -57,7 +57,7 @@
"@vue/runtime-core": "^3.5.13",
"eslint": "^9.17.0",
"rollup-plugin-visualizer": "^5.13.1",
"sass": "1.83.0",
"sass": "1.83.1",
"typescript": "^5.7.2",
"unocss": "^0.65.3",
"unplugin-auto-import": "^0.19.0",
Expand Down
13 changes: 11 additions & 2 deletions web_page/src/model/classes/Carelink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,19 @@ export class InTimeBarChartData extends Base {
tooltip = {
trigger: 'item'
}
minAngle = 10    //最小的扇区角度(0 ~ 360),用于防止某个值过小导致扇区太小影响交互

label = {
show: true, // 显示标签
position: 'inside',
formatter: '{d}%' // 设置标签格式
formatter: '{b|{d}%}', // 设置标签格式
rich: {
b: {
fontSize: 12,
height: 60,
lineHeight: 20,
align: 'center' // 设置文字居中
},
}
}
series = [
{
Expand Down
6 changes: 4 additions & 2 deletions web_page/src/views/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
>
<template #reference>
预计启动:&nbsp;{{
Tools.toNow(nextStartTime)
nextStartTimeToNow
}}
</template>
</el-popover>
Expand Down Expand Up @@ -346,7 +346,9 @@ const chartTimeOption: any = computed(() => {
interval
}
})
const nextStartTimeToNow = computed(() => {
return Tools.toNow(sugarCommon.state.nextStartTime)
})
//画图的参数
const charOption = computed(() => {
return {
Expand Down
6 changes: 4 additions & 2 deletions web_page/src/views/index_big.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
>
<template #reference>
预计启动:&nbsp;{{
Tools.toNow(nextStartTime)
nextStartTimeToNow
}}
</template>
</el-popover>
Expand Down Expand Up @@ -243,7 +243,6 @@ const state: any = reactive({
const {
statistics,
showLogsDialog,
playAlarmObj
} = toRefs(state)
const {
Expand Down Expand Up @@ -402,6 +401,9 @@ function refreshChart() {
chartObj.myChart.setOption(charOption.value.myChart, true);
}
const nextStartTimeToNow = computed(() => {
return Tools.toNow(sugarCommon.state.nextStartTime)
})
//画图的参数
const charOption = computed(() => {
return {
Expand Down

0 comments on commit c280593

Please sign in to comment.