From d1edbd52bdf04243ee5e2d64853deae9af65cae1 Mon Sep 17 00:00:00 2001
From: Cxx0822 <1556464090@qq.com>
Date: Thu, 10 Sep 2026 16:27:19 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E6=97=B6=E9=97=B4?=
=?UTF-8?q?=E8=BD=B4=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/RecordPopup.vue | 6 +++---
src/pages/index/index.vue | 11 +++++++++--
src/pages/record/index.vue | 2 +-
src/pages/user/index.vue | 10 ++++++++--
src/stores/patch.ts | 4 ++++
5 files changed, 25 insertions(+), 8 deletions(-)
diff --git a/src/components/RecordPopup.vue b/src/components/RecordPopup.vue
index cb9a109..58c99fb 100644
--- a/src/components/RecordPopup.vue
+++ b/src/components/RecordPopup.vue
@@ -33,11 +33,11 @@
-
diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue
index 8087a0e..f3072ca 100644
--- a/src/pages/index/index.vue
+++ b/src/pages/index/index.vue
@@ -13,9 +13,17 @@
+
+
+
+
-
+
{{ item.name }}
{{ item.location }}
@@ -44,7 +52,6 @@
-
diff --git a/src/pages/record/index.vue b/src/pages/record/index.vue
index 22ee0d6..11c0ed8 100644
--- a/src/pages/record/index.vue
+++ b/src/pages/record/index.vue
@@ -1 +1 @@
-
{{ patchStore.currentPatch.crop.name }}
{{ patchStore.currentPatch.crop.variety }}
点击添加作物
{{ item.type }}
{{ item.stage }}
{{ item.date }}
{{ item.content }}
\ No newline at end of file
+
{{ patchStore.currentPatch.crop.name }}
{{ patchStore.currentPatch.crop.variety }}
点击添加作物
{{ item.type }}
{{ item.stage }}
{{ item.date }}
{{ item.content }}
\ No newline at end of file
diff --git a/src/pages/user/index.vue b/src/pages/user/index.vue
index 71e8d26..6fbd899 100644
--- a/src/pages/user/index.vue
+++ b/src/pages/user/index.vue
@@ -1,6 +1,12 @@
-
-
+
+
+
+
+ 正在开发中
+
+
+
diff --git a/src/stores/patch.ts b/src/stores/patch.ts
index e3623ce..bdc36d0 100644
--- a/src/stores/patch.ts
+++ b/src/stores/patch.ts
@@ -6,6 +6,7 @@ export const usePatchStore = defineStore('patch', {
state: () => ({
baseUrl: 'https://cxx0822.s.3q.hair',
showPatchFab: true,
+ patchSearch: '',
patchList: [] as IPatch[],
patchApiType: 'ADD' as 'ADD' | 'UPDATE' | 'DELETE',
patchForm: {
@@ -51,6 +52,9 @@ export const usePatchStore = defineStore('patch', {
url: `${this.baseUrl}/patch-api/patches`,
method: 'GET',
header: { 'Content-Type': 'application/json' },
+ data: {
+ keyword: this.patchSearch
+ },
success: (res) => {
if (res.statusCode >= 200 && res.statusCode < 300) {
resolve(res.data as IPatch[])