Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
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 dde67d29
authored
Apr 10, 2026
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'feature/rework' of
http://192.168.3.233:8090/monorepo/venus
into feature/rework
2 parents
5f2f3568
c41ea63b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
apps/uniappX/uniapp-x-tape/pages/receptionCenter/cards/CardMonthValue.uvue
apps/uniappX/uniapp-x-tape/pages/receptionCenter/cards/CardMonthValue.uvue
View file @
dde67d2
...
...
@@ -25,7 +25,7 @@
<view class="ring-bg"></view>
<!-- 进度半圆 -->
<view v-if="
metric
sVisible" class="ring-progress-wrap">
<view v-if="
ringProgres
sVisible" class="ring-progress-wrap">
<view class="ring-half ring-half-left">
<view class="ring-half-inner" :style="ringLeftStyle"></view>
</view>
...
...
@@ -71,8 +71,8 @@ const props = withDefaults(
metricsVisible?: boolean
}>(),
{
targetValueText: '
122万
',
achievementValueText: '
20%
',
targetValueText: '
--
',
achievementValueText: '
--
',
metricsVisible: true
}
)
...
...
@@ -113,6 +113,18 @@ const ringPercentDisplay = computed((): string => {
return props.summary.ringPercent
})
/** 有效数据且>0时才显示进度弧;0 或无数据仅展示浅色背景环 */
const ringProgressVisible = computed((): boolean => {
if (props.metricsVisible == false) {
return false
}
const p = ringPercentNumForChart.value
// 无数据常见占位:'--';隐藏态为 '**'
const text = ringPercentDisplay.value
const hasData = text != '--' && text != '**' && text != ''
return hasData && p > 0
})
const targetValueDisplay = computed((): string => {
if (props.metricsVisible == false) {
return '****'
...
...
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