出诊计划
This commit is contained in:
parent
67c2c35841
commit
7c2db724a5
@ -20,7 +20,7 @@ export struct StopNoticeComp {
|
|||||||
@State data:StopOutPatientList[]=[];
|
@State data:StopOutPatientList[]=[];
|
||||||
@State isEmptyViewVisible: boolean = false; // 控制显隐的状态变量
|
@State isEmptyViewVisible: boolean = false; // 控制显隐的状态变量
|
||||||
@State empty:string='暂无数据'
|
@State empty:string='暂无数据'
|
||||||
@Link stopnum:number
|
@State stopnum:number=0
|
||||||
aboutToAppear() {
|
aboutToAppear() {
|
||||||
|
|
||||||
this.getList();
|
this.getList();
|
||||||
|
|||||||
@ -9,6 +9,7 @@ import { BusinessError } from '@kit.BasicServicesKit'
|
|||||||
import { PatientNoticeModel } from '../model/PatientNoticeModel'
|
import { PatientNoticeModel } from '../model/PatientNoticeModel'
|
||||||
import { promptAction } from '@kit.ArkUI'
|
import { promptAction } from '@kit.ArkUI'
|
||||||
import { ArrangementsComp } from './ArrangementsComp'
|
import { ArrangementsComp } from './ArrangementsComp'
|
||||||
|
import { StopOutPatientListModel } from '../model/StopOutPatientListModel'
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
export struct TabBarOutComp {
|
export struct TabBarOutComp {
|
||||||
@ -22,6 +23,7 @@ export struct TabBarOutComp {
|
|||||||
@State stopnum: number = 0
|
@State stopnum: number = 0
|
||||||
aboutToAppear() {
|
aboutToAppear() {
|
||||||
this.mailanNoticeGet()
|
this.mailanNoticeGet()
|
||||||
|
this.stopOutPatientList()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -56,7 +58,7 @@ export struct TabBarOutComp {
|
|||||||
if (index==0)
|
if (index==0)
|
||||||
{
|
{
|
||||||
|
|
||||||
StopNoticeComp({stopnum:this.stopnum})
|
StopNoticeComp()
|
||||||
|
|
||||||
}
|
}
|
||||||
else if(index==1)
|
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[] = [
|
export const TabBarItems: TabBarCompModel[] = [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user