工单列表

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", "path": "task_hall/detail",
"style": { "style": {
"enablePullDownRefresh": true, "enablePullDownRefresh": false,
"navigationBarTextStyle": "black", "navigationBarTextStyle": "black",
"navigationStyle": "custom", "navigationStyle": "custom",
"navigationBarTitleText": "工单详情" "navigationBarTitleText": "工单详情"

View File

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

View File

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