From 60384e8241fa855b5780260633ee9b9f8904847a Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期五, 20 六月 2025 14:24:19 +0800 Subject: [PATCH] feat(eims-ui-mobile): 为多个页面添加搜索功能 - 在 equ-list、insp-st、maint-st、req-list 和 res-list 页面中添加设备名称和资产编号的模糊搜索 --- eims-ui-mobile/src/pages/equ/index.vue | 55 +++++++++++++++++++++++++++++++++++++++++-------------- 1 files changed, 41 insertions(+), 14 deletions(-) diff --git a/eims-ui-mobile/src/pages/equ/index.vue b/eims-ui-mobile/src/pages/equ/index.vue index bda1221..5377967 100644 --- a/eims-ui-mobile/src/pages/equ/index.vue +++ b/eims-ui-mobile/src/pages/equ/index.vue @@ -3,31 +3,58 @@ layout: 'tabbar', needLogin: true, style: { - navigationBarTitleText: '鍏充簬', + navigationBarTitleText: '璁惧', }, } </route> <template> - <view - class="bg-white overflow-hidden pt-2 px-4" - :style="{ marginTop: safeAreaInsets?.top + 'px' }" - > - <view class="text-center text-3xl mt-8"> - 楦藉弸浠ソ锛屾垜鏄� - <text class="text-red-500">鑿查附</text> - </view> - <RequestComp /> - <UploadComp /> + <view class="bg-base" :style="{ marginTop: safeAreaInsets?.top + 'px' }"> + <wd-cell-group border> + <wd-cell + title="璁惧鍒楄〃" + is-link + to="/pages/equ/equ-list" + icon="list" + custom-icon-class="icon-color-base" + /> + <wd-cell + title="閲嶇偣璁惧" + is-link + icon="keywords" + custom-icon-class="icon-color-base" + @click="handleInfo" + /> + <wd-cell + title="娣诲姞璁惧" + is-link + icon="add" + custom-icon-class="icon-color-base" + @click="handleInfo" + /> + </wd-cell-group> + <wd-cell-group border class="mt-2"> + <wd-cell + title="璁惧鐩樼偣" + is-link + icon="filter" + custom-icon-class="icon-color-base" + @click="handleInfo" + /> + </wd-cell-group> </view> </template> <script lang="ts" setup> -import RequestComp from './components/request.vue' -import UploadComp from './components/upload.vue' - // 鑾峰彇灞忓箷杈圭晫鍒板畨鍏ㄥ尯鍩熻窛绂� const { safeAreaInsets } = uni.getSystemInfoSync() + +function handleInfo() { + uni.showToast({ + title: '鍔熻兘寮�鍙戜腑', + icon: 'none', + }) +} </script> <style lang="scss" scoped> -- Gitblit v1.9.3