From 06b1468bf1f367e7d7e93e77c93f92bb0cdce9d5 Mon Sep 17 00:00:00 2001 From: zlwu <704541015@qq.com> Date: Wed, 12 Aug 2026 16:34:39 +0800 Subject: [PATCH] feat(oa): add cc read filters batch mark and unread styles Co-authored-by: Cursor --- mobile-h5/components/OaTaskCard.vue | 11 +- mobile-h5/pages/oa/cc/index.vue | 270 +++++++++++++++++- mobile-h5/styles/components/oa-task-list.scss | 5 + 3 files changed, 271 insertions(+), 15 deletions(-) diff --git a/mobile-h5/components/OaTaskCard.vue b/mobile-h5/components/OaTaskCard.vue index 96e0781a..e3cfda2b 100644 --- a/mobile-h5/components/OaTaskCard.vue +++ b/mobile-h5/components/OaTaskCard.vue @@ -34,9 +34,10 @@ class="oa-task-card__btn" :class="{ 'is-primary': !!act.primary, - 'is-danger': !!act.danger && !act.primary + 'is-danger': !!act.danger && !act.primary, + 'is-disabled': !!act.disabled }" - @click.stop="$emit('action', act)" + @click.stop="onActionClick(act)" > {{ act.label }} @@ -63,6 +64,12 @@ const t = String(this.statusTone || 'info').toLowerCase() return TONES.includes(t) ? t : 'info' } + }, + methods: { + onActionClick(act) { + if (!act || act.disabled) return + this.$emit('action', act) + } } } diff --git a/mobile-h5/pages/oa/cc/index.vue b/mobile-h5/pages/oa/cc/index.vue index 028cc336..a501be3d 100644 --- a/mobile-h5/pages/oa/cc/index.vue +++ b/mobile-h5/pages/oa/cc/index.vue @@ -19,6 +19,13 @@ × + + {{ manageMode ? '完成' : '管理' }} + @@ -51,6 +58,17 @@ + + 已选 {{ selectedIds.length }} 项 + + 批量已读 + + +