工单列表

This commit is contained in:
zhang zhuo 2025-03-06 14:41:26 +08:00
parent 80ffde7014
commit 8b67ac8731
3 changed files with 12 additions and 6 deletions

View File

@ -84,7 +84,7 @@
},{
"path": "task_hall/detail",
"style": {
"enablePullDownRefresh": true,
"enablePullDownRefresh": false,
"navigationBarTextStyle": "black",
"navigationStyle": "custom",
"navigationBarTitleText": "工单详情"

View File

@ -102,7 +102,7 @@
import {
ref
} from 'vue'
import { onLoad, onReachBottom, Uni } from "@dcloudio/uni-app"
import { onLoad, onReachBottom, Uni, onPullDownRefresh } from "@dcloudio/uni-app"
// import SafeAreaTop from '@/components/SafeAreaTop/index.vue'
// import SafeAreaBottom from '@/components/SafeAreaBottom/index.vue'
declare const uni : Uni
@ -270,7 +270,6 @@
const getBannerList = () => {
const res = bannerList({ position: 2 })
}
@ -296,6 +295,13 @@
onLoad(() => {
loadData()
})
onPullDownRefresh(() => {
loadData()
setTimeout(() => {
uni.stopPullDownRefresh()
}, 300)
})
</script>
<style lang="scss">

View File

@ -110,14 +110,14 @@
const query = ref({
page: 1,
limit: 10,
type: '',
type: 'ALL',
timeRange: 0
})
const finish = ref<boolean>(false)
const option1 = ref([
{ label: '全部类型', value: '' },
{ label: '全部类型', value: 'ALL' },
{ label: '商品工单', value: 'F2' },
{ label: '维修工单', value: 'F6' },
{ label: '量房工单', value: 'F4' }
@ -145,7 +145,7 @@
break;
case 'detail':
uni.navigateTo({
url: '/pagesA/task_hall/detail'
url: '/pagesA/task_hall/detail?ticket_id='+item.value.ticket_id
})
break;
default: