diff --git a/packages/mobile/src/views/Rebuild/Rebuild.vue b/packages/mobile/src/views/Rebuild/Rebuild.vue index ce40740..8b2b6f3 100644 --- a/packages/mobile/src/views/Rebuild/Rebuild.vue +++ b/packages/mobile/src/views/Rebuild/Rebuild.vue @@ -5,20 +5,21 @@
-
-
起止桩号:{{ item.stationNumber }}
-
路况位置:{{ item.position }}
-
提交日期:{{ item.publishTime }}
+
起止桩号:{{ `${item.startStakeNo} - + ${item.endStakeNo}`}} +
+
路况位置:{{ item.roadLocation }}
+
提交日期:{{ item.submitTime }}
@@ -44,6 +45,7 @@ import SearchInput from '@/components/SearchInput.vue' import CurrentSite from '@/components/CurrentSite.vue' import CardItem from '@/components/CardItem.vue' import EmptyBox from '@/components/EmptyBox.vue' +import { request } from "../../../../shared/utils/request"; const router = useRouter() @@ -52,44 +54,28 @@ onMounted(() => { }) const getData = async () => { + const params = { + pageNum: 1, + pageSize: 999, + } + if (searchValue.value) { + params.districtName = searchValue.value + } + const res = await request({ + url: '/snow-ops-platform/recovery/list', + method: 'GET', + params + }) + if (res.code === '00000') { + list.value = res.data.records + } } // 搜索关键词 const searchValue = ref('') // 预警列表数据 -const list = ref([ - { - id: 1, - area: '彭水', - rNumber: 'G211', - type: '发生水毁道路崩塌恢复重建', - stationNumber: 'K1674.16-1678.84', - position: '徐家镇村口南分叉路口', - publishTime: '2025-05-20', - status: '审批通过' - }, - { - id: 2, - area: '巴南', - rNumber: 'S303', - type: '道路发生边坡坍塌', - stationNumber: 'K1674.16-1678.84', - position: '徐家镇村口南分叉路口', - publishTime: '2025-05-20', - status: '审批驳回' - }, - { - id: 3, - area: '彭水', - rNumber: 'G211', - type: '道路崩塌改造工程', - stationNumber: 'K1674.16-1678.84', - position: '徐家镇村口南分叉路口', - publishTime: '2025-05-20', - status: '审批通过' - }, -]) +const list = ref([]) const handleClickBack = () => { @@ -115,6 +101,10 @@ const handleAddDevice = () => { // }); } +watch(() => searchValue.value, () => { + getData() +}) + diff --git a/packages/mobile/src/views/Rebuild/RebuildAdd.vue b/packages/mobile/src/views/Rebuild/RebuildAdd.vue index cc0295e..09b0923 100644 --- a/packages/mobile/src/views/Rebuild/RebuildAdd.vue +++ b/packages/mobile/src/views/Rebuild/RebuildAdd.vue @@ -2,34 +2,32 @@
- - + - - - - - + - - - - - -