From 453f63fd6cd6466222304df619e62b3a5667ca68 Mon Sep 17 00:00:00 2001 From: zhuguifei <zhuguifei@zhuguifeideiMac.local> Date: 星期二, 05 八月 2025 13:56:47 +0800 Subject: [PATCH] 修复0730测试问题 --- eims-ui-mobile/src/pages/inspect/insp-st.vue | 31 ++++++++++++++++++++++++------- 1 files changed, 24 insertions(+), 7 deletions(-) diff --git a/eims-ui-mobile/src/pages/inspect/insp-st.vue b/eims-ui-mobile/src/pages/inspect/insp-st.vue index 85c1cda..6678fb5 100644 --- a/eims-ui-mobile/src/pages/inspect/insp-st.vue +++ b/eims-ui-mobile/src/pages/inspect/insp-st.vue @@ -11,6 +11,8 @@ <template> <z-paging ref="paging" v-model="dataList" @query="queryList" show-refresher-update-time> <template #top> + <!-- 澧炲姞涓�涓悳绱㈡爮 --> + <wd-search v-model="searchValue" @search="handleSearch"></wd-search> <wd-tabs v-model="activeTab" @change="handleTabChange"> <wd-tab title="寰呯偣妫�"></wd-tab> <wd-tab title="寰呯‘璁�"></wd-tab> @@ -42,9 +44,15 @@ <view class="text-color-gray text-sm mt-1 flex"> <text class="mr-3">鎬绘暟: {{ item.recordCount }}</text> | + <template v-if="activeTab === 0"> + <text class="mx-3">鏈偣妫�: {{ item.unCheckCount }}</text> + | + </template> + <template v-else> + <text class="mx-3">寰呯‘璁�: {{ item.dqrCount }}</text> + | + </template> <text class="mx-3">宸茬偣妫�: {{ item.checkCount }}</text> - | - <text class="ml-3">鏈偣妫�: {{ item.unCheckCount }}</text> </view> <view class="text-color-gray text-sm mt-2 flex"> <text class="mr-3">姝e父: {{ item.normalNum }}</text> @@ -54,12 +62,12 @@ <view class="text-color-gray text-sm mt-2 flex"> <text>鐘舵�侊細</text> <template v-if="item.status === '1'"> - <wd-icon class="icon-color-success" name="check-outline" size="34rpx"></wd-icon> - <text class="ml-1">宸插畬鎴�</text> + <wd-icon class="icon-color-warning" name="check-outline" size="34rpx"></wd-icon> + <text class="ml-1">寰呯‘璁�</text> </template> <template v-else-if="item.status === '2'"> - <wd-icon class="icon-color-warning" name="check-outline" size="34rpx"></wd-icon> - <text class="ml-1">宸茬‘璁�</text> + <wd-icon class="icon-color-success" name="check-outline" size="34rpx"></wd-icon> + <text class="ml-1">宸插畬鎴�</text> </template> <template v-else> <wd-icon class="icon-color-base" name="detection" size="40rpx"></wd-icon> @@ -79,7 +87,7 @@ import { getInspStList } from '@/service/inspect' import dayjs from 'dayjs' import { useUserStore, useAccessStore, useSystemConfigStore } from '@/store' -import { isLeader, isLineOrRepair, isOperator } from "@/utils/RoleUtils"; +import { isLeader, isLineOrRepair, isOperator } from '@/utils/RoleUtils' // 鏍囩椤电浉鍏� const activeTab = ref(0) // 榛樿閫変腑绗竴涓爣绛鹃〉锛堝緟鐐规锛� @@ -88,6 +96,7 @@ const equName = ref<string>('鎵�鏈夎澶�') const filterDate = ref<string>('1') const status = ref<string>('0') // 榛樿涓哄緟鐐规鐘舵�� +const searchValue = ref<string>('') const viewModeList = ref<Record<string, any>[]>([ { label: '鏃ヨ鍥�', value: 'Day' }, @@ -137,6 +146,9 @@ pageSize, viewMode: viewMode.value, status: status.value, // 娣诲姞鐘舵�佺瓫閫� + params: { + searchValue: searchValue.value, + }, } if (filterDate.value === '1') { params.planTime = dayjs().format('YYYY-MM-DD') @@ -172,6 +184,11 @@ }) } +function handleSearch() { + console.log('handleSearch') + paging.value.reload() +} + function reloadData() { paging.value.reload() } -- Gitblit v1.9.3