This commit is contained in:
parent
d7971a3b1c
commit
d75d79f031
|
|
@ -398,7 +398,7 @@ const handleItem = (item) => {
|
|||
const finish = computed(() => {
|
||||
if (total.value === tableList.value.length) return true
|
||||
})
|
||||
onShow(() => {
|
||||
onLoad(() => {
|
||||
tableList.value = []
|
||||
total.value = 0
|
||||
getTableList(true)
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@
|
|||
submitTask
|
||||
} from '@/services/fieldMaintenance/fieldMaintenance.js'
|
||||
import {
|
||||
onShow
|
||||
onLoad
|
||||
} from '@dcloudio/uni-app'
|
||||
import {
|
||||
debounce
|
||||
|
|
@ -249,7 +249,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
onShow(() => {
|
||||
onLoad(() => {
|
||||
tableList.value = []
|
||||
total.value = 0
|
||||
getTableList(true)
|
||||
|
|
|
|||
|
|
@ -60,8 +60,8 @@
|
|||
<uni-swipe-action-item @click="onClick($event, item)" :right-options="options"> -->
|
||||
<div class="title">
|
||||
<div class="title-left">
|
||||
<span class="code">{{ item.repairCode }}</span>
|
||||
<span class="sub-code">{{ `${item.backCode}-${item.level}` }}</span>
|
||||
<span class="code">{{ `${item.backCode}-${item.level}` }}</span>
|
||||
<span class="sub-code">{{ item.repairCode }}</span>
|
||||
</div>
|
||||
<div class="title-right">
|
||||
<uni-tag v-if="item.num !== 0" text="定损单" type="warning" style="margin-right: 5px" custom-style="warningStyle"/>
|
||||
|
|
@ -120,7 +120,7 @@
|
|||
<script setup>
|
||||
import { ref, computed } from 'vue'
|
||||
import { getRepairListAPI, repairSubmitAPI, repairRejectAPI } from '@/services/repair/repair.js'
|
||||
import { onShow } from '@dcloudio/uni-app'
|
||||
import { onLoad } from '@dcloudio/uni-app'
|
||||
import { debounce } from 'lodash-es'
|
||||
|
||||
const total = ref(0) // 数据总<EFBFBD><EFBFBD>
|
||||
|
|
@ -241,7 +241,7 @@ const getTableList = async (isTap = false) => {
|
|||
// getTableList()
|
||||
// })
|
||||
|
||||
onShow(() => {
|
||||
onLoad(() => {
|
||||
tableList.value = []
|
||||
total.value = 0
|
||||
getTableList(true)
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@
|
|||
import { ref, computed } from 'vue'
|
||||
import { getListScrapExamineApply } from '@/services/repair/scrapExamine.js'
|
||||
|
||||
import { onShow } from '@dcloudio/uni-app'
|
||||
import { onLoad } from '@dcloudio/uni-app'
|
||||
import { debounce } from 'lodash-es'
|
||||
|
||||
const total = ref(0) // 数据总量
|
||||
|
|
@ -237,7 +237,7 @@ const getTableList = async (isTap = false) => {
|
|||
// getTableList()
|
||||
// })
|
||||
|
||||
onShow(() => {
|
||||
onLoad(() => {
|
||||
tableList.value = []
|
||||
total.value = 0
|
||||
getTableList()
|
||||
|
|
|
|||
|
|
@ -154,7 +154,7 @@
|
|||
<script setup>
|
||||
import { ref, computed } from 'vue'
|
||||
import { getRepairedList } from '@/services/repair/testedInBound.js'
|
||||
import { onShow } from '@dcloudio/uni-app'
|
||||
import { onShow, onLoad } from '@dcloudio/uni-app'
|
||||
import { debounce } from 'lodash-es'
|
||||
|
||||
const total = ref(0) // 数据总量
|
||||
|
|
@ -270,17 +270,19 @@ const getTableList = async (isTap = false) => {
|
|||
}
|
||||
}
|
||||
|
||||
// // 页面加载完毕
|
||||
// onLoad(() => {
|
||||
// getTableList()
|
||||
// })
|
||||
|
||||
onShow(() => {
|
||||
tableList.value = []
|
||||
total.value = 0
|
||||
// 页面加载完毕
|
||||
onLoad(() => {
|
||||
// tableList.value = []
|
||||
// total.value = 0
|
||||
getTableList()
|
||||
})
|
||||
|
||||
// onShow(() => {
|
||||
// tableList.value = []
|
||||
// total.value = 0
|
||||
// getTableList()
|
||||
// })
|
||||
|
||||
// 滚动触底事件
|
||||
const onScrollTolower = debounce(() => {
|
||||
console.log('触底事件')
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@
|
|||
|
||||
<script setup>
|
||||
import { ref,computed } from 'vue'
|
||||
import { onLoad, onShow } from '@dcloudio/uni-app'
|
||||
import { onLoad, onSLoad} from '@dcloudio/uni-app'
|
||||
import { debounce } from 'lodash-es'
|
||||
import { getPurchaseList } from '@/services/purchase.js'
|
||||
import { getQrCodeBoxListApi,getTransferKeepsListApi,appTransferApi } from '@/services/standard.js'
|
||||
|
|
@ -360,7 +360,7 @@ const maskClick = () => {}
|
|||
// getTableList()
|
||||
// })
|
||||
|
||||
onShow(() => {
|
||||
onLoad(() => {
|
||||
tableList.value = []
|
||||
getTableList(true)
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue