实现未来规划跳转到建制(仅规划的)
This commit is contained in:
parent
8f1d5ff473
commit
24170c8d0b
|
|
@ -52,14 +52,19 @@ export default {
|
||||||
pageStatus: "",
|
pageStatus: "",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
|
if (options) {
|
||||||
|
console.log("接收到的参数:", options.pageStatus);
|
||||||
|
this.pageStatus = options.pageStatus;
|
||||||
|
}
|
||||||
|
|
||||||
// 页面加载时获取数据
|
// 页面加载时获取数据
|
||||||
this.getInstitutionalData();
|
this.getInstitutionalData();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 获取建制数据
|
// 获取建制数据
|
||||||
async getInstitutionalData() {
|
async getInstitutionalData() {
|
||||||
const res = await getInstitutionalList(this.pageStatus);
|
const res = await getInstitutionalList({ states: this.pageStatus });
|
||||||
const rawData = res.rows;
|
const rawData = res.rows;
|
||||||
this.institutionalData =
|
this.institutionalData =
|
||||||
InstitutionalDataFormatter.transformData(rawData);
|
InstitutionalDataFormatter.transformData(rawData);
|
||||||
|
|
|
||||||
|
|
@ -14,13 +14,13 @@ export const PAGE_ROUTES = {
|
||||||
ACTIVITY: "/pages/activity/activity",
|
ACTIVITY: "/pages/activity/activity",
|
||||||
PRAY: "/pages/pray/pray",
|
PRAY: "/pages/pray/pray",
|
||||||
PC: "/pages/personalCenter/personalCenter",
|
PC: "/pages/personalCenter/personalCenter",
|
||||||
|
FUTURE: "/pages/institutionalStructure/institutionalStructure?pageStatus=1",
|
||||||
|
|
||||||
// 待开发页面
|
// 待开发页面
|
||||||
|
|
||||||
NEWS: "/pages/news/news",
|
NEWS: "/pages/news/news",
|
||||||
ABBOT: "/pages/abbot/abbot",
|
ABBOT: "/pages/abbot/abbot",
|
||||||
ANCIENT: "/pages/ancient/ancient",
|
ANCIENT: "/pages/ancient/ancient",
|
||||||
FUTURE: "/pages/future/future",
|
|
||||||
|
|
||||||
// 其他页面
|
// 其他页面
|
||||||
LOGIN: "/pages/login/login",
|
LOGIN: "/pages/login/login",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user