fix(mobile): clarify supervisor review list count
This commit is contained in:
@@ -127,7 +127,7 @@
|
||||
<view v-if="loggedIn" class="panel">
|
||||
<view class="section-head">
|
||||
<text class="panel-title">待复盘</text>
|
||||
<text class="muted">{{ reviews.length }} 条</text>
|
||||
<text class="muted">{{ reviewCountText }}</text>
|
||||
</view>
|
||||
<view v-if="reviews.length" class="review-list">
|
||||
<button
|
||||
@@ -343,6 +343,11 @@ const pendingReviewAlertCount = computed(() => {
|
||||
return match ? Number(match[0]) : 0;
|
||||
});
|
||||
|
||||
const reviewCountText = computed(() => {
|
||||
const total = pendingReviewAlertCount.value;
|
||||
return total > reviews.value.length ? `${reviews.value.length}/${total} 条` : `${reviews.value.length} 条`;
|
||||
});
|
||||
|
||||
const selectedTargetLabel = computed(() => {
|
||||
const phone = targetPhone.value.trim();
|
||||
if (!phone) return '从团队画像选择员工,或手动输入手机号/外部ID';
|
||||
|
||||
Reference in New Issue
Block a user