From c5f81c1b1298d9c20acf5fc21d26893a341db283 Mon Sep 17 00:00:00 2001
From: tjx <t2856754968@163.com>
Date: 星期二, 04 十一月 2025 13:33:55 +0800
Subject: [PATCH] 样式调整
---
components/EquipmentInspection.vue | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/components/EquipmentInspection.vue b/components/EquipmentInspection.vue
index 7770ebf..fefa8e6 100644
--- a/components/EquipmentInspection.vue
+++ b/components/EquipmentInspection.vue
@@ -12,8 +12,8 @@
</view>
<view class="info-item">
<text class="info-label">鏃ユ湡锛�</text>
- <picker mode="date" :value="currentDate" @change="handleDateChange">
- <view class="date-picker">{{ currentDate }}</view>
+ <picker mode="date" fields="month" :value="currentDate" @change="handleDateChange">
+ <view class="date-picker">{{ displayDate }}</view>
</picker>
</view>
</view>
@@ -117,6 +117,14 @@
dirty: false
}
},
+ computed: {
+ displayDate() {
+ // 鏍煎紡鍖栨樉绀轰负 "2025骞�11鏈�"
+ if (!this.currentDate) return ''
+ const [year, month] = this.currentDate.split('-')
+ return `${year}骞�${month}鏈坄
+ }
+ },
created() {
this.initChecks()
},
--
Gitblit v1.9.3