出诊计划

This commit is contained in:
XiuYun CHEN 2025-07-25 14:03:18 +08:00
parent 67c2c35841
commit 7c2db724a5
2 changed files with 21 additions and 2 deletions

View File

@ -20,7 +20,7 @@ export struct StopNoticeComp {
@State data:StopOutPatientList[]=[];
@State isEmptyViewVisible: boolean = false; // 控制显隐的状态变量
@State empty:string='暂无数据'
@Link stopnum:number
@State stopnum:number=0
aboutToAppear() {
this.getList();

View File

@ -9,6 +9,7 @@ import { BusinessError } from '@kit.BasicServicesKit'
import { PatientNoticeModel } from '../model/PatientNoticeModel'
import { promptAction } from '@kit.ArkUI'
import { ArrangementsComp } from './ArrangementsComp'
import { StopOutPatientListModel } from '../model/StopOutPatientListModel'
@Component
export struct TabBarOutComp {
@ -22,6 +23,7 @@ export struct TabBarOutComp {
@State stopnum: number = 0
aboutToAppear() {
this.mailanNoticeGet()
this.stopOutPatientList()
}
@ -56,7 +58,7 @@ export struct TabBarOutComp {
if (index==0)
{
StopNoticeComp({stopnum:this.stopnum})
StopNoticeComp()
}
else if(index==1)
@ -161,6 +163,23 @@ export struct TabBarOutComp {
}
stopOutPatientList() {
const hashMap: HashMap<string, string> = new HashMap();
hdHttp.httpReq<string>(BasicConstant.stopOutPatientList,hashMap).then(async (res: HdResponse<string>) => {
let json:StopOutPatientListModel = JSON.parse(res+'') as StopOutPatientListModel;
if(json.code == '200') {
if(json.data!=null)
{
this.stopnum=json.data.length
}
}
}).catch((err: BusinessError) => {
console.info(`Response fails: ${err}`);
})
}
}
export const TabBarItems: TabBarCompModel[] = [