HMRouter主入口
This commit is contained in:
parent
1bee90d673
commit
f7408f7cbc
@ -166,11 +166,7 @@ export struct PatientDetailsComp {
|
||||
HMRouterMgr.pop()
|
||||
},
|
||||
rightItemAction: () => {
|
||||
HMRouterMgr.push({pageUrl: 'BuildOrEditGroupPage',param:{"title": "新建分组"}})
|
||||
// router.pushUrl({
|
||||
// url: 'pages/PatientsPage/BuildOrEditGroupPage',
|
||||
// params: { "title": "新建分组" }
|
||||
// })
|
||||
HMRouterMgr.push({pageUrl: 'PatientCommonSettingComp',param:{"title":"患者详情","patient_uuid":this.params.patient_uuid}})
|
||||
}
|
||||
})
|
||||
Scroll(this.scroller) {
|
||||
|
||||
@ -29,7 +29,8 @@ export struct PatientsGroup {
|
||||
})
|
||||
|
||||
aboutToAppear(): void {
|
||||
this.getIsMaiLanData();
|
||||
this.getGroupData()
|
||||
this.getIsMaiLanData()
|
||||
this.groupSortList = [{"name":"按首字母","isSeleted":false} as sortModel,{"name":"分组人数","isSeleted":false} as sortModel]
|
||||
this.innerSortList = [{"name":"按首字母","isSeleted":false} as sortModel,{"name":"随访时间","isSeleted":false} as sortModel]
|
||||
}
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
import { PatientsGroup } from 'patient'
|
||||
import { HMDefaultGlobalAnimator, HMNavigation } from '@hadss/hmrouter'
|
||||
import { AttributeUpdater } from '@kit.ArkUI'
|
||||
import { TabBarComp } from 'netease'
|
||||
import { HMDefaultGlobalAnimator, HMNavigation } from '@hadss/hmrouter';
|
||||
import { AttributeUpdater } from '@kit.ArkUI';
|
||||
|
||||
class NavModifier extends AttributeUpdater<NavigationAttribute> {
|
||||
initializeModifier(instance: NavigationAttribute): void {
|
||||
@ -16,9 +15,7 @@ class NavModifier extends AttributeUpdater<NavigationAttribute> {
|
||||
@Component
|
||||
struct PatientsGroupPage {
|
||||
@Provide refreshFlag:boolean = false;
|
||||
modifier: NavModifier = new NavModifier()
|
||||
@State
|
||||
activeIndex: number = 0
|
||||
modifier: NavModifier = new NavModifier();
|
||||
|
||||
onPageShow(): void {
|
||||
this.refreshFlag = !this.refreshFlag;
|
||||
@ -35,8 +32,7 @@ struct PatientsGroupPage {
|
||||
modifier:this.modifier
|
||||
}
|
||||
}) {
|
||||
// PatientsGroup()
|
||||
TabBarComp({ activeIndex: this.activeIndex})
|
||||
PatientsGroup()
|
||||
}
|
||||
}
|
||||
.height('100%')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user