工单分配,维修人员,报修详情

This commit is contained in:
Zy
2026-05-21 10:55:27 +08:00
parent 5d0819183e
commit ac9379ab8a
14 changed files with 333 additions and 182 deletions

View File

@@ -56,6 +56,7 @@
<script setup>
import { ref, getCurrentInstance, onMounted } from 'vue'
import { getVillageHouseList_keyword } from '@/api/common.js'
import { onShow } from '@dcloudio/uni-app'
const Searching = ref(true)
const queryParmas = ref({
@@ -139,7 +140,10 @@ function getlist() {
uni.hideLoading()
})
}
getlist()
onShow(() => {
resetList()
})
// 重置list
function resetList() {

View File

@@ -5,7 +5,11 @@
<view class="line"></view>
<text class="title">仪表换新记录</text>
</view>
<TabsComponents :tabslist="tabslist" @update="handleChangeTabs"></TabsComponents>
<TabsComponents
:activeValue="activeValue"
:tabslist="tabslist"
@update="handleChangeTabs"
></TabsComponents>
<view class="instrument_body flex-1 flex">
<scroll-view scroll-y lower-threshold="160" @scrolltolower="scrolltolower">
<view
@@ -75,10 +79,11 @@ const tabslist = [
value: 1
}
]
const activeValue = ref(0)
// 切换tabs
function handleChangeTabs(val: number) {
queryParmas.value.deviceType = val
activeValue.value = val
if (val === 0) {
queryParmas.value.deviceType = undefined
}
@@ -132,9 +137,7 @@ function getlist() {
})
}
onShow(() => {
infolist.value = []
hasMore.value = true
getlist()
resetList()
})
// 重置