From 56e3eb64827981004e06fcc595e996d1b5f1d4fc Mon Sep 17 00:00:00 2001
From: zhuguifei <zhuguifei@zhuguifeideiMac.local>
Date: 星期二, 06 五月 2025 11:33:15 +0800
Subject: [PATCH] .
---
eims-ui-mobile/src/pages/equ/equ-list.vue | 28 ++++++++++++++++++++++------
1 files changed, 22 insertions(+), 6 deletions(-)
diff --git a/eims-ui-mobile/src/pages/equ/equ-list.vue b/eims-ui-mobile/src/pages/equ/equ-list.vue
index 0e6ff84..693e6c2 100644
--- a/eims-ui-mobile/src/pages/equ/equ-list.vue
+++ b/eims-ui-mobile/src/pages/equ/equ-list.vue
@@ -31,9 +31,9 @@
</view>
</view>
</template>
- <view class="flex h-[80rpx]" @click.stop="itemClick(item)">
+ <view class="flex h-[80rpx] items-center" @click.stop="itemClick(item)">
<image class="slot-img text-center" src="/static/images/camera.png" />
- <view>
+ <view class="flex-1">
<view class="text-color-base">
{{ item.equName }}
<text class="text-color-gray ml-2 text-mini">{{ item.modelNo }}</text>
@@ -41,6 +41,15 @@
<view class="text-color-gray text-xs mt-1">
{{ item.location }} | {{ item.madeIn }}
</view>
+ </view>
+ <view v-if="isSelectEqu">
+ <wd-button
+ size="small"
+ icon="edit-outline"
+ @click.stop="handleSelectEqu(item)"
+ >
+ 閫変腑
+ </wd-button>
</view>
</view>
</wd-card>
@@ -78,8 +87,7 @@
getEquList({ pageNum, pageSize })
.then((res: any) => {
// 璇峰嬁鍦ㄧ綉缁滆姹傚洖璋冧腑缁檇ataList璧嬪�硷紒锛佸彧闇�瑕佽皟鐢╟omplete灏卞彲浠ヤ簡
- console.log(res)
- paging.value.complete(res.rows)
+ paging.value.completeByTotal(res.rows, res.total)
})
.catch((res) => {
// 濡傛灉璇锋眰澶辫触鍐檖aging.value.complete(false)锛屼細鑷姩灞曠ず閿欒椤甸潰
@@ -94,6 +102,14 @@
* @param item
*/
function itemClick(item: any) {
+
+}
+
+/**
+ * 鍏跺畠椤甸潰閫夋嫨璁惧
+ * @param item
+ */
+function handleSelectEqu(item: any) {
if (isSelectEqu.value) {
emitSelectEqu(item)
uni.navigateBack()
@@ -116,9 +132,9 @@
const instance: any = getCurrentInstance().proxy
const event = instance.getOpenerEventChannel()
eventChannel.value = event
- event.on('handleSelectEqu', function (data) {
+ event.on('OnSelectEqu', function (data) {
isSelectEqu.value = true
- console.log('handleSelectEqu', data)
+ console.log('OnSelectEqu', data)
})
})
</script>
--
Gitblit v1.9.3