diff --git a/api/institutionalStructure/institutionalStructure.js b/api/institutionalStructure/institutionalStructure.js index 462adac..a37e8ca 100644 --- a/api/institutionalStructure/institutionalStructure.js +++ b/api/institutionalStructure/institutionalStructure.js @@ -19,3 +19,14 @@ export function getInstitutionalList(params = {}) { }; return get("/app/formed/listFormed", { ...defaultParams, ...params }); } + +export function getFutureList(params = {}) { + const defaultParams = { + pageNum: 1, + pageSize: 10, + orderByColumn: "createTime", + isAsc: "desc", + states: [1, 2], // 关键:直接传递数组 + }; + return get("/app/formed/listFormed", { ...defaultParams, ...params }); +} diff --git a/pages/future/future.vue b/pages/future/future.vue index 514d069..280b81d 100644 --- a/pages/future/future.vue +++ b/pages/future/future.vue @@ -138,46 +138,7 @@ export default { createTime: "2025-07-09 13:50:57", coverUrl: "https://api.ccttiot.com/IMG01-1751968117197.jpg", }, - { - id: "17", - templeId: "12", - title: "施工情况02", - content: "

施工情况02施工情况02...

", - status: "1", - templeName: "寒山寺", - createTime: "2025-07-09 13:50:57", - coverUrl: "https://api.ccttiot.com/IMG01-1751968117197.jpg", - }, - { - id: "19", - templeId: "12", - title: "施工情况01232", - content: "

施工情况02施工情况02...

", - status: "1", - templeName: "寒山寺", - createTime: "2025-07-09 13:50:57", - coverUrl: "https://api.ccttiot.com/IMG01-1751968117197.jpg", - }, - { - id: "19", - templeId: "12", - title: "施工情况01232", - content: "

施工情况02施工情况02...

", - status: "1", - templeName: "寒山寺", - createTime: "2025-07-09 13:50:57", - coverUrl: "https://api.ccttiot.com/IMG01-1751968117197.jpg", - }, - { - id: "19", - templeId: "12", - title: "施工情况01232", - content: "

施工情况02施工情况02...

", - status: "1", - templeName: "寒山寺", - createTime: "2025-07-09 13:50:57", - coverUrl: "https://api.ccttiot.com/IMG01-1751968117197.jpg", - }, + { id: "19", templeId: "12", diff --git a/pages/institutionalStructure/institutionalStructure.vue b/pages/institutionalStructure/institutionalStructure.vue index 73832e7..d36ecc7 100644 --- a/pages/institutionalStructure/institutionalStructure.vue +++ b/pages/institutionalStructure/institutionalStructure.vue @@ -1,6 +1,6 @@