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