From f571cf0182abd65176fb1512c5cb5ddaea49c4a3 Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期二, 24 六月 2025 09:00:14 +0800 Subject: [PATCH] feat(eims): 设备状态变更记录功能 --- eims-ui-mobile/src/pages/maint/maint-st.vue | 26 +++++++++++++++++++------- 1 files changed, 19 insertions(+), 7 deletions(-) diff --git a/eims-ui-mobile/src/pages/maint/maint-st.vue b/eims-ui-mobile/src/pages/maint/maint-st.vue index 836d79d..6a61c61 100644 --- a/eims-ui-mobile/src/pages/maint/maint-st.vue +++ b/eims-ui-mobile/src/pages/maint/maint-st.vue @@ -11,6 +11,12 @@ <template> <z-paging ref="paging" v-model="dataList" @query="queryList" show-refresher-update-time> <template #top> + <!-- 澧炲姞涓�涓悳绱㈡爮 --> + <wd-search v-model="searchValue" @search="handleSearch"> + <template #right-icon> + <wd-icon name="scan" size="34rpx"></wd-icon> + </template> + </wd-search> <wd-tabs v-model="activeTab" @change="handleTabChange"> <wd-tab title="寰呬繚鍏�"></wd-tab> <wd-tab title="寰呯‘璁�"></wd-tab> @@ -61,12 +67,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> @@ -86,7 +92,7 @@ import { ref, computed } from 'vue' import { getMaintStList } from '@/service/maint' import dayjs from 'dayjs' - +const searchValue = ref<string>('') /** * 鍏朵粬椤甸潰浼犺繃鏉ョ殑鏁版嵁 * assetNo: 璧勪骇缂栧彿 @@ -191,6 +197,7 @@ pageSize, equName: equName.value, status: status.value, + params: {}, } if (filterDate.value === '1') { // 鑾峰彇褰撳墠鏃ユ湡 @@ -200,7 +207,7 @@ endPlanTime: now.endOf('month').format('YYYY-MM-DD 23:59:59'), } } else { - delete queryParams.params + queryParams.params = {} } if (equName.value === '-1') { @@ -213,7 +220,7 @@ if (option?.from === 'scan') { queryParams.assetNo = option.assetNo } - + queryParams.params.searchValue = searchValue.value getMaintStList(queryParams) .then((res: any) => { // 璇峰嬁鍦ㄧ綉缁滆姹傚洖璋冧腑缁檇ataList璧嬪�硷紒锛佸彧闇�瑕佽皟鐢╟omplete灏卞彲浠ヤ簡 @@ -233,6 +240,11 @@ }) } +function handleSearch () { + console.log('handleSearch') + paging.value.reload() +} + function reloadData() { paging.value.reload() } -- Gitblit v1.9.3