HMRouter主入口

This commit is contained in:
xiaoxiao 2025-07-16 11:16:38 +08:00
parent 1bee90d673
commit f7408f7cbc
3 changed files with 7 additions and 14 deletions

View File

@ -166,11 +166,7 @@ export struct PatientDetailsComp {
HMRouterMgr.pop() HMRouterMgr.pop()
}, },
rightItemAction: () => { rightItemAction: () => {
HMRouterMgr.push({pageUrl: 'BuildOrEditGroupPage',param:{"title": "新建分组"}}) HMRouterMgr.push({pageUrl: 'PatientCommonSettingComp',param:{"title":"患者详情","patient_uuid":this.params.patient_uuid}})
// router.pushUrl({
// url: 'pages/PatientsPage/BuildOrEditGroupPage',
// params: { "title": "新建分组" }
// })
} }
}) })
Scroll(this.scroller) { Scroll(this.scroller) {

View File

@ -29,7 +29,8 @@ export struct PatientsGroup {
}) })
aboutToAppear(): void { aboutToAppear(): void {
this.getIsMaiLanData(); this.getGroupData()
this.getIsMaiLanData()
this.groupSortList = [{"name":"按首字母","isSeleted":false} as sortModel,{"name":"分组人数","isSeleted":false} as sortModel] this.groupSortList = [{"name":"按首字母","isSeleted":false} as sortModel,{"name":"分组人数","isSeleted":false} as sortModel]
this.innerSortList = [{"name":"按首字母","isSeleted":false} as sortModel,{"name":"随访时间","isSeleted":false} as sortModel] this.innerSortList = [{"name":"按首字母","isSeleted":false} as sortModel,{"name":"随访时间","isSeleted":false} as sortModel]
} }

View File

@ -1,7 +1,6 @@
import { PatientsGroup } from 'patient' import { PatientsGroup } from 'patient'
import { HMDefaultGlobalAnimator, HMNavigation } from '@hadss/hmrouter' import { HMDefaultGlobalAnimator, HMNavigation } from '@hadss/hmrouter';
import { AttributeUpdater } from '@kit.ArkUI' import { AttributeUpdater } from '@kit.ArkUI';
import { TabBarComp } from 'netease'
class NavModifier extends AttributeUpdater<NavigationAttribute> { class NavModifier extends AttributeUpdater<NavigationAttribute> {
initializeModifier(instance: NavigationAttribute): void { initializeModifier(instance: NavigationAttribute): void {
@ -16,9 +15,7 @@ class NavModifier extends AttributeUpdater<NavigationAttribute> {
@Component @Component
struct PatientsGroupPage { struct PatientsGroupPage {
@Provide refreshFlag:boolean = false; @Provide refreshFlag:boolean = false;
modifier: NavModifier = new NavModifier() modifier: NavModifier = new NavModifier();
@State
activeIndex: number = 0
onPageShow(): void { onPageShow(): void {
this.refreshFlag = !this.refreshFlag; this.refreshFlag = !this.refreshFlag;
@ -35,8 +32,7 @@ struct PatientsGroupPage {
modifier:this.modifier modifier:this.modifier
} }
}) { }) {
// PatientsGroup() PatientsGroup()
TabBarComp({ activeIndex: this.activeIndex})
} }
} }
.height('100%') .height('100%')