feat: 增加时间轴功能

This commit is contained in:
2026-09-10 16:27:19 +08:00
parent 5f270b05d6
commit d1edbd52bd
5 changed files with 25 additions and 8 deletions

View File

@@ -13,9 +13,17 @@
</view>
</view>
<view class="p-3">
<wd-search v-model="patchStore.patchSearch"
:maxlength="20" :placeholder-left="true" :hide-cancel="true"
placeholder="请输入菜地名称或者菜地地点"
@change="patchStore.queryPatchList()"
@clear="patchStore.queryPatchList()"/>
</view>
<wd-card v-for="(item, index) in patchStore.patchList" :key="item.id">
<template #title>
<view class="wd-card__title-text flex items-center justify-between">
<view class="wd-card__title-text flex items-center justify-between" @click="editPatchClick(item)">
<text>{{ item.name }}</text>
<text v-if="item.location" class="text-sm text-[#999]">{{ item.location }}</text>
</view>
@@ -44,7 +52,6 @@
<wd-text v-else text="暂无作物 请先添加"/>
<view class="flex gap-1">
<wd-button icon="edit" round @click="editPatchClick(item)"></wd-button>
<wd-button icon="list" round @click="viewDetailClick(item)"></wd-button>
</view>
</view>