This commit is contained in:
hayu 2025-09-17 18:27:55 +08:00
parent afe021d167
commit 0fdc5c75b5
2 changed files with 9 additions and 1 deletions

View File

@ -101,7 +101,7 @@
<script setup>
import { computed, ref } from 'vue'
import { auditRepairPass } from '@/services/repair/repair.js'
import { onLoad } from '@dcloudio/uni-app'
import {onLoad, onShow} from '@dcloudio/uni-app'
const queryParams = ref({})
const allChecked = ref(false)
@ -112,6 +112,11 @@ const selectableItems = computed(() => {
return repairDeviceList.value.filter(item => item.status === '0' || item.status==='3').map(item => item.code)
})
onShow(() => {
selectedItems.value = []
allChecked.value = false
})
onLoad((options) => {
queryParams.value = JSON.parse(options.queryParams)
console.log(queryParams.value)

View File

@ -111,6 +111,9 @@ const selectableItems = computed(() => {
})
onShow(() => {
getRepairDetailsData()
selectedItems.value = []
ids.value = []
allChecked.value = false
})
onLoad((options) => {